From:             jp at 2fast dot nl
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     Apache2 related
Bug description:  child pid $pid exit signal Segmentation fault (11)

On apache 2.0.46 with PHP 4.3.2 i get the following errors in my
error_log:

[Wed Jun 04 09:09:24 2003] [notice] child pid 4713 exit signal
Segmentation fault (11)
[Wed Jun 04 09:09:39 2003] [notice] child pid 4800 exit signal
Segmentation fault (11)
[Wed Jun 04 09:09:45 2003] [notice] child pid 4856 exit signal
Segmentation fault (11)
[Wed Jun 04 09:09:58 2003] [notice] child pid 4895 exit signal
Segmentation fault (11)
[Wed Jun 04 09:10:00 2003] [notice] child pid 4937 exit signal
Segmentation fault (11)

steps i've taken to eliminate hardware failures and other factors:

1. build a new kernel on that machine, previous kernel had a memory mngt.
patch: segmentation faults kept coming.

2. build httpd with an other gcc compiler (2.95 instead of 3.3):
segmentation faults didn't disappear

3. Compiled it on a whole different machine (AMD Atlhon instead of Intel
P4) with the same PHP scripts: It's raining segmentation faults

4. I also compiled php4-STABLE-200306032130 but it makes no difference.

I use debian and on both machines runs Linux 2.4.20 without any patches.
My PHP version is 4.3.2 and is build with apxs2. The MPM on apache is
worker.

It has also come to my attention that if I use the following MPM settings
(ServerLimit 20, TreadsPerChild 35, MaxClients 700) the webserver has a
maximum output of 4 mbit/s while with apache 1.3.27 9 mbit/s could been
reached. And with the settings (ServerLimit 50, TreadsPerChild 15,
MaxClients 750) my webserver died within a few minutes by a segmentation
fault on the parent proccess:

[Mon Jun 02 15:59:31 2003] [notice] child pid 11105 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11122 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11121 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11120 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11119 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11118 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11117 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11116 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:32 2003] [notice] child pid 11115 exit signal
Segmentation fault (11)
[Mon Jun 02 15:59:33 2003] [notice] seg fault or similar nasty error
detected in the parent process

I don't get apache coredumps.

When i comment out the loading of the PHP module and the webserver only
servers static images i don't get any segmentation faults.
-- 
Edit bug report at http://bugs.php.net/?id=24012&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24012&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24012&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24012&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24012&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24012&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24012&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24012&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24012&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24012&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24012&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24012&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24012&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24012&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24012&r=gnused

Reply via email to