Segmentation fault (11)

Segmentation fault (11)

am 11.04.2008 20:42:34 von surge

Hello everybody,

As of some time ago I started seeing "exit signal Segmentation fault
(11)" in /var/log/apache2/error.log. I'm running the current stable
Debian, php4 and Apache. We have quite a few users and usually hear
about any errors. But although I see a lot of these in the error log,
no one seems to be complaining.

Now, the child dies a couple of seconds later than the last access by
that child according to /var/log/apache2/access.log. So, the page must
be served completely and several seconds later, the child dies. What's
the best way to debug this one? I've enabled core dumping but no cores
are found under /tmp -- is this where they are supposed to appear? The
pages it happens to seem to be kind of random.

I've seen a lot of discussion about "Segmentation fault (11)" but I
didn't see what the resolution was. Sorry if this has been asked
before...

Best regards,
Sergei

Re: Segmentation fault (11)

am 13.04.2008 22:12:06 von colin.mckinnon

On 11 Apr, 19:42, surge wrote:
> Hello everybody,
>
> As of some time ago I started seeing "exit signal Segmentation fault
> (11)" in /var/log/apache2/error.log. I'm running the current stable
> Debian, php4 and Apache. We have quite a few users and usually hear
> about any errors. But although I see a lot of these in the error log,
> no one seems to be complaining.
>
> Now, the child dies a couple of seconds later than the last access by
> that child according to /var/log/apache2/access.log. So, the page must
> be served completely and several seconds later, the child dies. What's
> the best way to debug this one? I've enabled core dumping but no cores
> are found under /tmp -- is this where they are supposed to appear? The
> pages it happens to seem to be kind of random.
>
> I've seen a lot of discussion about "Segmentation fault (11)" but I
> didn't see what the resolution was. Sorry if this has been asked
> before...
>
> Best regards,
> Sergei

Read this:

http://aplawrence.com/Linux/limit_core_files.html

Check ulimit and permissions for webserver uid.

C.

Re: Segmentation fault (11)

am 14.04.2008 23:18:01 von surge

Thanks for the reply. I've read the article and tweaked my settings.
Now I'm waiting for a core dump, which, as luck would have it, hasn't
happened all day :)

Re: Segmentation fault (11)

am 15.04.2008 16:46:57 von surge

On Apr 14, 5:18 pm, surge wrote:
> Thanks for the reply. I've read the article and tweaked my settings.
> Now I'm waiting for a core dump, which, as luck would have it, hasn't
> happened all day :)


Hmm, the cores are still not dumped even though "kill -s SIGSEGV $$"
does create a core in the right directory. Any ideas?