|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32672 apache child crash with "child pid xy exit signal Segmentation fault (11)"
Submitted: 2005-04-11 16:43 UTC Modified: 2005-04-11 22:31 UTC
From: php at pappert dot biz Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.0.4 OS: Debian 3.1 on AMD64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at pappert dot biz
New email:
PHP Version: OS:


 [2005-04-11 16:43 UTC] php at pappert dot biz
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:

$o = new mysqli('localhost', 'root', '******', 'mysql');
$r = $o->query('select * from db');
echo $o->error;
while($aRow = $r->fetch_array(MYSQLI_ASSOC))



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-11 16:54 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

 [2005-04-11 22:31 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

This is bug 32282, which was just fixed in CVS - try a snapshot from
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 12:01:26 2024 UTC