[php-maint] Bug#577784: backtrace for php5-cgi segfault

Raphael Geissert geissert at debian.org
Thu Apr 22 01:11:09 UTC 2010


Hi everyone,

On 21 April 2010 03:09, sean finney <seanius at debian.org> wrote:
> hi andy,
>
> interesting...   it's not clear to me whether this is the same problem, but
> as we haven't received any other follow up i'm happy to run with this
> backtrace and close the bug when we fix any segfault :)
>
> On Tue, Apr 20, 2010 at 08:58:29PM -0500, Andy Wettstein wrote:
>> I'm seeing segfault when attempting to authenticate to gallery2.
>> I'm running with lighttpd and was able generate a core file and backtrace:
>>
>> #0  0x00007f521b85c7c1 in strlen () from /lib/libc.so.6
>> #1  0x00007f52188dc2cd in my_strdup () from /usr/lib/libmysqlclient_r.so.16
>> #2  0x00007f52189071ab in mysql_options () from /usr/lib/libmysqlclient_r.so.16
>> #3  0x00007f521866cfae in zif_mysqli_options (ht=0, return_value=0x2383808,
>>     return_value_ptr=0x0, this_ptr=0xffffffff, return_value_used=0)

This is strange. The only call I can see to mysqli_options is in
AdoDB's mysqli driver right before connecting to the server.
This would mean that any page you try to open that connects to the
mysql server should lead to the segfault. Is that so?

Everything AdoDB does is:
mysqli_options($this->_connectionID,$arr[0],$arr[1]);

Where $arr comes from:
var $optionFlags = array(array(MYSQLI_READ_DEFAULT_GROUP,0));

But:
$ php -r '$l = mysqli_init();
var_dump(mysqli_options($l,MYSQLI_READ_DEFAULT_GROUP,0)); '
bool(true)

Even on an clean sid chroot, i686. Andy, what happens when you try to run that?



More information about the pkg-php-maint mailing list