Apache Error Log Segmentation Fault
Contents |
on your server can drive you crazy trying to solve it… So, I'm gonna explain you how I figured out what was causing the last apache segfault I had. My server apache php segmentation fault was running under Debian Squeeze, with Apache 2.2 and PHP 5.3, and I got randomly
Apache Segmentation Fault (core Dumped)
segmentation faults: [Jun 08 17:38:07 2012] [notice] child pid 5646 exit signal Segmentation fault (11) [Jun 08 18:21:34 2012] [notice] child pid
Apache Segmentation Fault (11)
8278 exit signal Segmentation fault (11) [Jun 08 18:44:59 2012] [notice] child pid 5665 exit signal Segmentation fault (11) 123 [Jun 08 17:38:07 2012] [notice] child pid 5646 exit signal Segmentation fault (11)[Jun 08 18:21:34 2012]
Apache Signal Segmentation Fault
[notice] child pid 8278 exit signal Segmentation fault (11)[Jun 08 18:44:59 2012] [notice] child pid 5665 exit signal Segmentation fault (11) I supposed the problem was on some php extension, so I deactivated some of them…but the problem was still there :( After spending a lot of time looking for what was causing it, I decided to debug apache with gdb. I installed it through backports because I needed an upper version mysql segmentation fault than gdb 7.0 (7.0.1-2 is the current version on squeeze stable repository) otherwise I got this: "warning: The current binary is a PIE (Position Independent Executable), which GDB does NOT currently support. Most debugger features will fail if used in this session." when I was trying to debug apache: $ echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list && apt-get update $ apt-get -t squeeze-backports install gdb 12 $ echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list && apt-get update$ apt-get -t squeeze-backports install gdb Well, I had the debugger installed, but I also needed the php and apache debug symbols: $ apt-get install apache2-dbg php5-dbg 1 $ apt-get install apache2-dbg php5-dbg Once I had installed all I needed, I configured apache to create a core dump file every time it had a segfault by adding in /etc/apache2/httpd.conf the following line: CoreDumpDirectory /tmp/apache-coredumps 1 CoreDumpDirectory /tmp/apache-coredumps Previously, I had created the /tmp/apache-coredumps directory By default, my system core file size was 0, so I had to change it through ulimit: $ ulimit -c unlimited $ ulimit -a core file size (blocks, -c) unlimited [...] 1234 $ ulimit -c unlimited$ ulimit -acore file size(blocks, -c) unlimited[...] I restarted apache, and I only had to wait for the next Segmentation fault… and I didn't have to wait too much R
First Last Prev Next This bug is not in your last search results. Bug14692 - apache child pid exit signal Segmentation fault (11) Summary: apache child pid exit signal apache coredumpdirectory Segmentation fault (11) Status: CLOSED FIXED Product: Apache httpd-2 Classification: Unclassified Component: All Version: ah00052: child pid exit signal segmentation fault 2.0.40 Hardware: PC Linux Importance: P3 normal (vote) TargetMilestone: --- Assigned To: Apache HTTPD Bugs Mailing List URL: Keywords: Depends on: apache 2.4 "segmentation fault" Blocks: Show dependency tree Reported: 2002-11-19 19:21 UTC by Flavio Caetano Modified: 2013-12-05 14:19 UTC (History) CC List: 1 user (show) sivasankar.manu Attachments Add an attachment (proposed patch, testcase, etc.) Note You need http://sysadmin.carlusgg.com/?p=197 to log in before you can comment on or make changes to this bug. Description Flavio Caetano 2002-11-19 19:21:19 UTC after I upgrade my linux to redhat 8.0 I got this error: [root@beta proc]# tail -f /var/log/httpd/error_log [Tue Nov 19 17:01:38 2002] [notice] child pid 3654 exit signal Segmentation fault (11) [Tue Nov 19 17:01:38 2002] [notice] child pid 3637 exit signal Segmentation fault (11) [Tue Nov 19 17:01:39 2002] [notice] https://bz.apache.org/bugzilla/show_bug.cgi?id=14692 child pid 3651 exit signal Segmentation fault (11) [Tue Nov 19 17:01:39 2002] [notice] child pid 3631 exit signal Segmentation fault (11) [Tue Nov 19 17:01:40 2002] [notice] child pid 3657 exit signal Segmentation fault (11) [Tue Nov 19 17:01:40 2002] [notice] child pid 3652 exit signal Segmentation fault (11) [Tue Nov 19 17:01:40 2002] [notice] child pid 3647 exit signal Segmentation fault (11) [Tue Nov 19 17:01:41 2002] [notice] child pid 3698 exit signal Segmentation fault (11) [Tue Nov 19 17:01:41 2002] [notice] child pid 3655 exit signal Segmentation fault (11) [Tue Nov 19 17:01:42 2002] [notice] child pid 3656 exit signal Segmentation fault (11) this happens all of the time.. when I run the 'top' command, sometimes I can see the httpd processes using 99% of CPU time (less than 5 second) and after that more one error line... Comment 1 Jeff Trawick 2002-11-19 19:38:11 UTC Please post a backtrace from a core dump created by one of the segfaulting child processes. Thanks! Comment 2 Flavio Caetano 2002-11-19 19:44:31 UTC the Segmentation fault doesn't generate a core dumped file... can I force it to make one? Comment 3 Jeff Trawick 2002-11-19 23:32:32 UTC Use the CoreDumpDirectory directive and specify a directory that is writable by the Apache chi
I am using piwik 1.2.1 on a drupal squeeze server. I noticed something strange:Sometimes, the realtime widget is not working (I can only see the title “Visitor in Real Time” and nothing under https://forum.piwik.org/t/child-pid-exit-signal-segmentation-fault-11-errors/3793 it). Other times it is working correctly. Everytime the “Visitor in Real Time” - widget is not showing any results, I see some of the following errors in my /var/log/apache2/error.log:[Mon Apr 04 http://forum.directadmin.com/showthread.php?t=43572 00:36:01 2011] [notice] child pid 4201 exit signal Segmentation fault (11) [Mon Apr 04 00:36:04 2011] [notice] child pid 4862 exit signal Segmentation fault (11)[Mon Apr 04 00:36:05 2011] [notice] child pid 4495 segmentation fault exit signal Segmentation fault (11)[Mon Apr 04 00:36:06 2011] [notice] child pid 4199 exit signal Segmentation fault (11)[Mon Apr 04 00:36:07 2011] [notice] child pid 4858 exit signal Segmentation fault (11) I looked at the apache server-status – page (apache module “status”) and all the pids from above handle piwik request:1-4 4201 6/17/45435 W 2.01 5 0 8.8 0.02 145.46 91.8.176.216 www.example.com GET /piwik/index.php?module=Live&action=widget&idSite=1&period=3-4 4199 2/13/44131 apache segmentation fault K 0.98 0 11 1.7 0.03 139.16 91.8.176.216 www.example.com GET /piwik/plugins/SEO/templates/rank.js?cb=d257e5be9602ba080dc5-4 4495 0/4/43707 W 0.22 5 0 0.0 0.00 138.24 91.8.176.216 www.example.com GET /piwik/index.php?module=Referers&action=getKeywords&idSite=6-4 4858 4/11/41613 W 1.70 0 0 3.7 0.01 130.41 91.8.176.216 www.example.com GET /piwik/index.php?module=VisitsSummary&action=getEvolutionGr11-4 4862 0/1/35251 W 0.00 5 0 0.0 0.00 107.79 91.8.176.216 www.example.com GET /piwik/index.php?module=UserCountry&action=getCountry&idSit I checked my apache error logs and everytime there is a [notice] child pid XXX exit signal Segmentation fault (11)the pids belonged to piwik requests I deactivated the “Visitor in Real Time” - widget for some hours and there were no new errors. Then I activated the “Visitor in Real Time” – widget again and there where new errors. Has someone an idea what might cause these errors? Is this a problem with piwik or the apache server of Debian Squeeze, or ...? vipsoft 2011-04-04 12:17:01 UTC #2 Any segfault in php would be a bug in php (not Piwik). Try disabling any third party php mods/extensions like suhosin and eaccelerator. You could also try recompiling php with --enable-debug, and enable core dumps. From there, you could use a debugger (eg gdb) to get a backtrace and then report it to the php devs. MH201
2.4 segmentation fault errors If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 7 of 7 Thread: Apache 2.4 segmentation fault errors Thread Tools Show Printable Version Email this Page… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 05-08-2012,02:10 AM #1 Suurbier View Profile View Forum Posts Verified User Join Date Apr 2007 Posts 243 Apache 2.4 segmentation fault errors I am getting a lot of segmentation errors on Apache 2.4 so i switched back to 2.2 and I am not getting segmentation faults in the Apache error logs anymore. Does anyone know what the problem might be? Sometimes sites randomly go offline with the error 324 empty response (when I visit in Chrome). Code: [Tue May 01 21:56:09.914061 2012] [core:notice] [pid 29523] AH00052: child pid 21314 exit signal Segmentation fault (11) [Tue May 01 21:56:16.907475 2012] [core:notice] [pid 29523] AH00052: child pid 21303 exit signal Segmentation fault (11) [Tue May 01 21:56:54.069676 2012] [core:notice] [pid 29523] AH00052: child pid 21340 exit signal Segmentation fault (11) [Tue May 01 21:57:14.260285 2012] [core:notice] [pid 29523] AH00052: child pid 21347 exit signal Segmentation fault (11) [Tue May 01 21:57:24.272561 2012] [core:notice] [pid 29523] AH00052: child pid 21356 exit signal Segmentation fault (11) [Tue May 01 21:57:25.282934 2012] [core:notice] [pid 29523] AH00052: child pid 21348 exit signal Segmentation fault (11) [Tue May 01 21:57:27.376112 2012] [core:notice] [pid 29523] AH00052: child pid 21382 exit signal Segmentation fault (11) [Tue May 01 21:57:33.422070 2012] [core:notice] [pid 29523] AH00052: child pid 21380 exit signal Segmentation fault (11) [Tue May 01 21:57:34.474543 2012] [core:notice] [pid 29523] AH00052: child pid 21376 exit signal Segmentation fault (11) [Tue May 01 21:57:37.482198 2012] [core:notice] [pid 29523] AH00052: child pid 21229 exit signal Segmentation fault (11) [Tue May 01 21:57:39.482097 2012] [core:notice] [pid 29523] AH00052: child pid 21381 exit signal Segmentation fault (11) [Tue May 01 21:57:43.486233 2012] [core:notice] [pid 29523] AH00052: child pid 21387 exit signal Segmentation fault (11) [Tue May 01 21:57:50.546476 2012] [core:notice] [pid 29523] AH00052: child pid 21373 exit signal Segmentation fault (11) [Tue May 01 21:57:52.546768 2012] [core:notice] [pid 29523] AH00052: child pid 21394 exit signal Segment