php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at pappert dot biz
New email:
PHP Version: OS:

 

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

?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-11 16:54 UTC] tony2001@php.net
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
http://bugs.php.net/bugs-generating-backtrace.php

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] jorton@php.net
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 snaps.php.net.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 16 10:01:24 2021 UTC