Linux / apache web-server segmentation fault warnings

Solution 1:

OKay, a segmentation fault is an indication of a program bug; it's not a matter of having too little memory. It occurs when a program tries to access memory it's not allowed to access.

If it's happening in Apache, you need to enable core dumps and restart the httpd process. There's a guide to doing this in the Apache documentation.

Solution 2:

What can be causing these errors?

One thing that would be helpful in diagnosing the issue is if you try and find what pages/resources are being viewed when this error happens. If you are able check your access log to see what is happening at the same time the segfault happens.

It is possible that some php script or something else is doing something that is causing the crash. Once you figure out what page/file is causing the crash, then you can dig into figuring out what it is doing, or if there are an bug fixes available.


Solution 3:

Have observed "exit signal Segmentation fault (11)" error lot of times. This happens when some scripts dont complete while apache crashes.

If you are using PHP based website on apache this is very likely to happen.

If at all you are using PHP, check following config in php config in conf.d/php.conf:

<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
</Files>

Remove the LimitRequestBody line. and observe. The error should go away.

Also if you are using apache with php following versions work perfectly. apache 2.0.43 and php 4.3.0_RC1

Note: This answer is purely based on my past research on the error and issue faced by me. Let me know your current configuration and feedback.