From: php at pappert dot biz
Operating system: Debian 3.1 on AMD64
PHP version: 5.0.4
PHP Bug Type: MySQLi related
Bug description: apache child crash with "child pid xy exit signal
Segmentation fault (11)"
Description:
------------
System:
mysql-4.1.11
apache-2.0.53
debian-3.1 on AMD64
On every DB connect with $oObject = new mysqli('host', 'user', 'pass') the
apache child (only the child) will crash and the connection will broke
down. You can open any other side on this machine without any trouble, if
it doesn't contain mysqli calls (server is still available).
Phpinfo() shows the mysql part with the right configuration.
And if I start the script in the "code box below" on the cli it is
crashing with this message: "Segmentation fault"!
The Apache Error_log shows:
[XXX XXX XX XXXXX] [notice] child pid 32424 exit signal Segmentation fault
(11)
The php log is empty, the mysql log also.
This is my configure command:
./configure --with-config-file-path=/etc --prefix=/usr/local/php-5.0.4
--with-apxs2=/usr/local/apache-2.0.53/bin/apxs
--with-mysqli=/usr/local/mysql/bin/mysql_config
Reproduce code:
---------------
<?php
$o = new mysqli('localhost', 'root', '******', 'mysql');
$r = $o->query('select * from db');
echo $o->error;
while($aRow = $r->fetch_array(MYSQLI_ASSOC))
print_r($aRow);
?>
--
Edit bug report at http://bugs.php.net/?id=32672&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32672&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32672&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32672&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32672&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32672&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32672&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32672&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32672&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32672&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32672&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32672&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32672&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32672&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32672&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32672&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32672&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32672&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32672&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32672&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32672&r=mysqlcfg