LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-29-2011, 09:58 AM   #1
Napsty
LQ Newbie
 
Registered: Jan 2011
Location: Switzerland
Posts: 4

Rep: Reputation: 0
Debian Lenny - How to enable Apache core dumps?


Hello,

I've been looking for a solution for the past days but still haven't found one which resolves this issue.
My Apache web server (respectively a child process) is crashing several times a day. I wanted to find the exact reason and activated the core dumps but even though the crashing-issues continue, the core dumps were never created.

I have found several howto's which basically point to the same steps:

- set "ulimit -c unlimited"
- add "CoreDumpDirectory" directive into apache2.conf (Debian's httpd.conf)

Another info I've found is that /proc/sys/fs/suid_dumpable shouldn't be 0 - so on one howto it said to echo 2 into it, on another one to echo 1 to /proc/sys/fs/suid_dumpable - didn't work with neither of them.

Any idea or personal experience on this one?

Thanks a lot in advance!
 
Old 01-29-2011, 10:26 AM   #2
barriehie
Member
 
Registered: Nov 2010
Distribution: Debian Lenny
Posts: 136
Blog Entries: 1

Rep: Reputation: 23
Anything useful in syslog?
 
Old 01-29-2011, 10:35 AM   #3
Napsty
LQ Newbie
 
Registered: Jan 2011
Location: Switzerland
Posts: 4

Original Poster
Rep: Reputation: 0
Nope, unfortunately nothing relevant. Only the crash itself:

Code:
kernel: [10041132.565684] apache2[5559]: segfault at 4c1325b0 ip 7f9b3524b7d7 sp 4c132590 error 6 in libphp5.so[7f9b34e68000+777000]
dmesg shows the same:
Code:
apache2[5559]: segfault at 4c1325b0 ip 7f9b3524b7d7 sp 4c132590 error 6 in libphp5.so[7f9b34e68000+777000]
But still, nothing which would show information about a core dump.
 
Old 01-29-2011, 06:22 PM   #4
Napsty
LQ Newbie
 
Registered: Jan 2011
Location: Switzerland
Posts: 4

Original Poster
Rep: Reputation: 0
By the way I could solve it - by chance. I compiled the newest version of PHP today and restarted Apache. From now on it works; core dumps are created in the given directory defined by the httpd directive.
 
Old 01-31-2011, 03:47 AM   #5
Napsty
LQ Newbie
 
Registered: Jan 2011
Location: Switzerland
Posts: 4

Original Poster
Rep: Reputation: 0
OK - this is strange and I don't have a solution for it.
Now no coredumps are created anymore.
From the log-output it looks like as soon as I logged out of the box, Apache stopped creating core dumps. This is just an idea but could it be that the ulimit -c value is only active as long as I am logged in?

Code:
[Sun Jan 30 00:03:48 2011] [notice] child pid 19585 exit signal Segmentation fault (11), possible coredump in /tmp
[Sun Jan 30 00:10:53 2011] [notice] child pid 19671 exit signal Segmentation fault (11), possible coredump in /tmp
[Sun Jan 30 00:15:49 2011] [notice] child pid 19557 exit signal Segmentation fault (11), possible coredump in /tmp
[Sun Jan 30 00:20:25 2011] [notice] child pid 20602 exit signal Segmentation fault (11), possible coredump in /tmp
[Sun Jan 30 01:12:29 2011] [notice] child pid 27803 exit signal Segmentation fault (11)
[Sun Jan 30 05:10:37 2011] [notice] child pid 27831 exit signal Segmentation fault (11)
[Sun Jan 30 06:18:13 2011] [notice] child pid 18554 exit signal Segmentation fault (11)
[Sun Jan 30 07:25:58 2011] [notice] child pid 22097 exit signal Segmentation fault (11)
[Sun Jan 30 08:34:43 2011] [notice] child pid 26104 exit signal Segmentation fault (11)
edit: Hmmm.. actually I doubt my own question because I've added "ulimit -c unlimited" into /etc/profile and manually checked it as www-data

Last edited by Napsty; 01-31-2011 at 03:51 AM. Reason: more info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache not running, after installing on debian lenny JudasIscariot1651 Linux - Newbie 2 07-10-2010 07:05 AM
trying to enable the sound in Debian Lenny htamayo Debian 2 06-30-2010 03:15 PM
Segmentation fault (11) with Debian Lenny and Apache dEM0nsTAr Linux - Server 1 11-15-2009 09:22 AM
Debug apache with core dumps RattleSn@ke Linux - Server 0 11-13-2009 04:07 AM
Apache, DynDns, WebHop with Debian (lenny) KrazyKanuk Linux - Software 0 05-02-2009 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration