php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37793 child pid xxx exit signal Segmentation fault (11)
Submitted: 2006-06-13 10:45 UTC Modified: 2006-06-21 01:00 UTC
Votes:32
Avg. Score:4.2 ± 0.9
Reproduced:22 of 24 (91.7%)
Same Version:4 (18.2%)
Same OS:3 (13.6%)
From: niklas dot meyerson at natverkstan dot net Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.1.4 OS: Debian 2.6
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-06-13 10:45 UTC] niklas dot meyerson at natverkstan dot net
Description:
------------
A couple of weeks ago I installed apache2 and php5.1.4 on our 
server. Every night since apache has crashed. In the errorlog 
for apache I see a couple of notices like this one:

child pid 25354 exit signal Segmentation fault (11)

And when I restarts apache the errorlog sais gives me lots of 
warnings:
[warn] child process 4246 still did not exit, sending a 
SIGTERM 

And then errors:                                                                                                                                   
[error] child process 4246 still did not exit, sending a 
SIGKILL                                                                 


Reproduce code:
---------------
I don't know what's causing it.

Expected result:
----------------
No crash.

Actual result:
--------------
Error log:
[Mon Jun 12 19:14:31 2006] [notice] child pid 5264 exit 
signal Segmentation fault (11)                                                                      
[Mon Jun 12 19:25:51 2006] [notice] child pid 5569 exit 
signal Segmentation fault (11)                                                                      
[Mon Jun 12 22:20:34 2006] [notice] child pid 6161 exit 
signal Segmentation fault (11)                                                                      
[Mon Jun 12 22:36:26 2006] [error] server reached MaxClients 
setting, consider raising the MaxClients setting                                               
[Tue Jun 13 02:07:36 2006] [notice] child pid 4845 exit 
signal Segmentation fault (11)                                                                      
[Tue Jun 13 02:50:37 2006] [notice] child pid 6989 exit 
signal Segmentation fault (11)                                                                      
[Tue Jun 13 03:03:58 2006] [notice] child pid 7067 exit 
signal Segmentation fault (11)                                                                      
[Tue Jun 13 03:09:16 2006] [notice] child pid 6451 exit 
signal Segmentation fault (11) 

At apache restart:
[Tue Jun 13 11:05:25 2006] [warn] child process 4246 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 7104 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 7044 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 5450 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 4250 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 7058 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 6331 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 4708 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 4939 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 6332 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 5263 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 5731 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 5980 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 7133 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 5733 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 6545 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 7137 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 6162 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 6323 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:25 2006] [warn] child process 6311 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 4246 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 7104 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 7044 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 5450 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 4250 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 7058 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 6331 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 4708 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 4939 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 6332 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 5263 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 5731 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 5980 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 7133 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 5733 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 6545 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 7137 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 6162 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 6323 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:27 2006] [warn] child process 6311 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 4246 still 
did not exit, sending a SIGTERM
[Tue Jun 13 11:05:29 2006] [warn] child process 7104 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 7044 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 5450 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 4250 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 7058 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 6331 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 4708 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 4939 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 6332 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 5263 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 5731 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 5980 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 7133 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 5733 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 6545 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 7137 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 6162 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 6323 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:29 2006] [warn] child process 6311 still 
did not exit, sending a SIGTERM                                                                  
[Tue Jun 13 11:05:31 2006] [error] child process 4246 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 7104 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 7044 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 5450 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 4250 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 7058 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 6331 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 4708 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 4939 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 6332 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 5263 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 5731 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 5980 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 7133 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 5733 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 6545 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 7137 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 6162 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 6323 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:31 2006] [error] child process 6311 still 
did not exit, sending a SIGKILL                                                                 
[Tue Jun 13 11:05:32 2006] [notice] caught SIGTERM, shutting 
down                                                                                           
[Tue Jun 13 11:05:41 2006] [notice] Apache/2.0.54 (Debian 
GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e configured -- 
resuming normal operations

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-13 17:18 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 for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

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.


 [2006-06-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-10-29 20:43 UTC] jeffs dot linux at gmail dot com
I am having this same error, my error code is as follows:

[Wed Oct 29 16:29:36 2008] [notice] child pid 18880 exit signal Segmentation fault (11)

I traced it back to a preg_match function that opens up a file around 3.2KB and matches comment tags (its an html file).  I am certain that it has something to do with it because a die() function before it registers but after it gives me a white errorless screen.

I dont know if the preg_match is the same issue, but it is certainly my issue!  The thing is I dont know how to get around this on... I might need to change my approch.
 [2009-02-20 04:15 UTC] maddivenkatreddy at gmail dot com
Hi,

I am also getting the following error. Any one knows about this error what is the route cause of this problem? and how to resolve it?

[Mon Feb 09 10:57:49 2009] [error] READ_TIMEOUT [os error=0,  line 199 of ../nsapi/Reader.cpp]: no read after 3600 seconds
[Mon Feb 09 10:57:50 2009] [error] READ_TIMEOUT [os error=0,  line 199 of ../nsapi/Reader.cpp]: no read after 3600 seconds
[Mon Feb 09 10:57:51 2009] [error] READ_TIMEOUT [os error=0,  line 199 of ../nsapi/Reader.cpp]: no read after 3600 seconds
.
.
.
[Mon Feb 09 11:03:57 2009] [error] READ_TIMEOUT [os error=0,  line 199 of ../nsapi/Reader.cpp]: no read after 3600 seconds
[Mon Feb 09 11:04:00 2009] [warn] child process 28307 still did not exit, sending a SIGTERM
[Mon Feb 09 11:04:00 2009] [warn] child process 28308 still did not exit, sending a SIGTERM
[Mon Feb 09 11:04:00 2009] [warn] child process 28309 still did not exit, sending a SIGTERM
.
.
.
[Mon Feb 09 11:04:01 2009] [warn] child process 29235 still did not exit, sending a SIGTERM
[Mon Feb 09 11:04:06 2009] [error] child process 29235 still did not exit, sending a SIGKILL
[Mon Feb 09 11:04:22 2009] [notice] caught SIGTERM, shutting down
[Mon Feb 09 11:14:49 2009] [notice] Apache/2.0.52 (Unix) configured -- resuming normal operations


Thanks in Advance.
Venkat
 [2009-04-28 14:51 UTC] bugs dot php at cashers dot de
With regards to this bug report for preg_match which leads to segfault errors in some cases, the solution is pretty simple. Just split the string into smaller ones. E.g. with my xampp test server a length of 5000 is ok, but with 10000 chars it fails.
Just see the example which solves an encoding problem in adddition to the preg_match bug: http://mobile-website.mobi/php-utf8-vs-iso-8859-1-59
 [2009-06-22 15:15 UTC] garyb at ivesinc dot com
This problem may just be due to a stack overflow.  I suggest reading comments on the bug report at pcre.org: http://bugs.exim.org/show_bug.cgi?id=841.  Those comments also suggest reading the 'pcrestack' man page.
 [2009-08-24 08:43 UTC] g dot kunze at eyefi dot nl
Ran into this bug while using Dwoo (see forum thread http://forum.dwoo.org/viewtopic.php?pid=783). The fact that this bug makes PCRE functions fail silently (unless you happen to be looking at your server logs) makes this bug quite severe.
 [2010-02-16 06:19 UTC] jbd at pbptech dot com
Hi, 

I am running OpenBSD 4.6 and recently updated the php package to 5.2.10.

Since then i am also receiving the same errors as above.

All I have in my test file is

<?php

  session_start();
  echo "OK";

?>

After reloading the page several times, it will fail every now and then with a segfault in the Apache/1.3.29 server error_log.

PHP Info is here: http://pbp.no-ip.com/info.php
Test File is here: http://pbp.no-ip.com/segfault.php

Thank you.
 [2011-05-13 08:43 UTC] yasanthau at yahoo dot com
I'm also getting the same error. I installed torrentflux_2.4 on a fresh Centos 5.5 server with apache 2.2

The login screen appears on torrentflux. But when I login after putting username and password, "page cannot be displayed" error comes on browser and following errors on apache error log.

[Fri May 13 17:21:58 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 13 17:21:58 2011] [notice] Digest: generating secret for digest authentication ...
[Fri May 13 17:21:58 2011] [notice] Digest: done
[Fri May 13 17:21:58 2011] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Fri May 13 17:21:58 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Fri May 13 17:22:07 2011] [notice] child pid 25314 exit signal Segmentation fault (11)
[Fri May 13 17:22:10 2011] [notice] child pid 25316 exit signal Segmentation fault (11)

Googled so much and no fixes works for me

Thanks
 [2012-11-12 10:41 UTC] kevin at vanzonneveld dot net
This report says 'Apache related', but we ran into this running an old Horde 
version from CLI trying to import emails (some spam mails trigger the bug and 
crash the importer).

Horde 'solved' their problem like so: 
https://github.com/horde/horde/commit/7053f7ae

It puzzles me how a serious bug like this, causing Segmentation Faults, could have 
been in PHP since 2006 without any attempts to fix.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 10:02:06 2014 UTC