Segfault in drizzle_con_uds/drizzle_con_host

Bug #818622 reported by Piotr Przybylski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle PHP Extension
New
Undecided
Unassigned

Bug Description

The following PHP code causes segmentation fault:

$drizzle = drizzle_create();
$con = drizzle_con_add_tcp($drizzle, '127.0.0.1', 4427, 'root', 'x', false, DRIZZLE_CON_NONE);
var_dump(drizzle_con_uds($con));

The same goes for drizzle_con_host() when connection was created with drizzle_con_add_uds().

Using bzr code with latest libdrizzle and Ubuntu Server 11.04 x86_64.

Piotr Przybylski (crack)
summary: - Segfault in drizzle_con_add_uds
+ Segfault in drizzle_con_uds/drizzle_con_host
Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

looks like the PHP module isn't handling the NULL const char* return from the libdrizzle functions correctly.

Revision history for this message
Piotr Przybylski (crack) wrote :

I remember there were two warnings during build, but can't remember whether it was in these functions or somewhere else.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.