httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer M. Canavan" <rainer.cana...@sevenval.com>
Subject Re: [users@httpd] Segmentation fault in logs
Date Fri, 23 May 2014 10:40:31 GMT

On May 23, 2014, at 11:42 , Hugo Gomes <hugo@lip.pt> wrote:

> Hi Guys, 
> 
> 	I have httpd-2.2.3-85.el5.centos in CentOS release 5.10, i and see all
> days, more than 10 times, the error in httpd logs:
> 
> [Thu May 22 01:20:15 2014] [notice] child pid 561 exit signal
> Segmentation fault (11)
> 
> 
> 	I've investigated logs and don't see nothing wrong with any scripts,
> this happens in random times and in random hours each day!
> 
> 	I've google it and found something with some library
> ( https://issues.apache.org/bugzilla/show_bug.cgi?id=14692 ), does
> anybody can help me?
> 
> 	Thanks in advance,
> 	Hugo Gomes

You'll have to save core dumps and analyze them with gdb, since the 
process that segfaulted most likely didn't log the request that caused
the crash. There's documentation here:

http://httpd.apache.org/dev/debugging.html

The important first steps are setting CoreDumpDirectory and ulimit -c unlimited.
As soon as you have a core dump, grab a .gdbinit from the appropriate apache
source (or package), install the debug info for apache and modules (in redhat-like
Linux distributions debuginfo-install may help), and check the request record. You
may want to print r->the_request and dump_table (r->headers_in) to see some info
that may help you reproduce the problem.

Segfaults may indicate a security relevant problem. If you've found that the 
problem is indeed in apache httpd and could exploited remotely, e.g. to crash
the server, you may want to read http://httpd.apache.org/security_report.html and
http://www.apache.org/security/

rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message