Apache Error Log Segmentation Fault 11
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business apache segmentation fault 11 php Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Apache Exit Signal Segmentation Fault 11
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like apache segmentation fault (core dumped) you, helping each other. Join them; it only takes a minute: Sign up “[notice] child pid XXXX exit signal Segmentation fault (11)” in apache error.log [closed] up vote 65 down vote favorite 14 I am using Apache/PHP/MySQL
Mysql Segmentation Fault
stack. Using as framework CakePHP. Every now and then I get a blank white page. I can't debug it through Cake, so I peek in the apache error.log and here's what I get: [Wed Oct 12 15:27:23 2011] [notice] child pid 3580 exit signal Segmentation fault (11) [Wed Oct 12 15:27:34 2011] [notice] child pid 3581 exit signal Segmentation fault (11) [Wed Oct 12 15:30:52 2011] [notice] child pid 3549 exit signal Segmentation fault (11) [Wed ah00051 child pid exit signal segmentation fault (11) possible coredump in /etc/apache2 Oct 12 16:04:27 2011] [notice] child pid 3579 exit signal Segmentation fault (11) zend_mm_heap corrupted [Wed Oct 12 16:26:24 2011] [notice] child pid 3625 exit signal Segmentation fault (11) [Wed Oct 12 17:57:24 2011] [notice] child pid 3577 exit signal Segmentation fault (11) [Wed Oct 12 17:58:54 2011] [notice] child pid 3550 exit signal Segmentation fault (11) [Wed Oct 12 17:59:52 2011] [notice] child pid 3578 exit signal Segmentation fault (11) [Wed Oct 12 18:01:38 2011] [notice] child pid 3683 exit signal Segmentation fault (11) [Wed Oct 12 22:20:53 2011] [notice] child pid 3778 exit signal Segmentation fault (11) [Wed Oct 12 22:29:51 2011] [notice] child pid 3777 exit signal Segmentation fault (11) [Wed Oct 12 22:33:42 2011] [notice] child pid 3774 exit signal Segmentation fault (11) What is this segmentation fault, how can I fix this, I have no clue and would be greatfully greatful. UPDATE: PHP Version 5.3.4, OSX local development Server version: Apache/2.2.17 (Unix) CakePhp: 1.3.10 php apache cakephp error-logging share|improve this question edited Feb 3 '13 at 17:20 Kuf 8,65522960 asked Oct 12 '11 at 19:38 mgPePe 2,13463261 closed as off topic by Jerry Coffin, codingbadger, Joe, bmargulies, Graviton Oct 15 '11 at 2:54 Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvem
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Ah00052: Child Pid Exit Signal Segmentation Fault (11)
and policies of this site About Us Learn more about Stack Overflow
Apache Coredumpdirectory
the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users apache 2.4 "segmentation fault" Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: http://stackoverflow.com/questions/7745578/notice-child-pid-xxxx-exit-signal-segmentation-fault-11-in-apache-error-lo Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Apache Seg fault (11) up vote 7 down vote favorite I have this in my apace error.log: [Fri Sep 18 08:10:54 2009] [notice] child pid 9178 exit signal Segmentation fault (11) [Fri Sep 18 08:11:41 2009] [notice] child pid 9187 exit signal http://serverfault.com/questions/66580/apache-seg-fault-11 Segmentation fault (11) [Fri Sep 18 08:12:12 2009] [notice] child pid 9204 exit signal Segmentation fault (11) [Fri Sep 18 08:12:13 2009] [notice] child pid 9202 exit signal Segmentation fault (11) [Fri Sep 18 08:14:45 2009] [notice] child pid 9251 exit signal Segmentation fault (11) It started the same day I made an addition to the vhost.conf file. So I reverted back to the original file did a apache2ctl restart. Unfortunately it's still occurring. Apache seems to be serving pages OK. Any ideas? Cheers, Nathan. apache-2.2 share|improve this question asked Sep 18 '09 at 8:11 Nathan Friend 339511 add a comment| 6 Answers 6 active oldest votes up vote 5 down vote Nathan, try stopping Apache, and starting it up in the forground (debug, non-threaded), that may leak more clues regarding what is making it segfault. Having said that, it should not segfault regardless, so it's a bug, nevertheless, it may be something you can fix if you know what's causing it. apache2 -X Also (unlikely to reveal the whole reason for this problem), any warnings/errors from... apache2ctl -t ...? Fin
(11) If you have, read on. At my day job I deal with both Apache and PHP a lot. If you have ever tried to http://www.omh.cc/blog/2008/mar/6/fixing-apache-segmentation-faults-caused-php/ figure out why your PHP code seems to cause Apache segmentation faults, https://forum.piwik.org/t/child-pid-exit-signal-segmentation-fault-11-errors/3793 you probably experienced the same as I did. Lots of pain, frustration and headaches. However all is not lost. There is a way to figure out what PHP code is making Apache act crazy. I'll try to explain how to debug Apache using gdb to locate that nasty bug segmentation fault that is causing you to lose your precious beautysleep. Before webegin Now, Apache does not dump core by default. We need to do some work before that happens. If you don't like to get your hands dirty compiling stuff manually, you should leave now, this is not foryou. Still here? Good! Before we start, make sure youhave: Root access to segmentation fault 11 your webserver Apache source code and everything needed to (re-)compileApache PHP source code (or just download the .gbdinit file) Make Apache dumpcore The first step is to make Apache not change user when it starts up and forks, so we will make it run as root the whole time. To accomplish this we need to compile Apache with -DBIG_SECURITY_HOLE. For obvious reasons, this is not recommended forproduction. 1 2 3make clean export EXTRA_CFLAGS="-DBIG_SECURITY_HOLE" ./configure && make && make install Now specify the "root" as the "User" in httpd.conf. While we're editing httpd.conf we'll add a setting to specify where Apache should put our coredump. 1 2 3User nobody [...] CoreDumpDirectory /tmp/apache Make sure /tmp/apacheexists 1mkdir -p /tmp/apache On most systems the core file size is set to zero by default. We'll go ahead and change it tounlimited. 1ulimit -c 0 You can check your current core dump file size limit byrunning 1ulimit -a RestartApache 1apachectl restart Next time Apache crashes with a Segmentation fault it should make us a core dump. If you did everything correctly you should see somet
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 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 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 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 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 aga