Reload kills apache

Reload kills apache

am 04.04.2010 16:05:13 von Alex S Kurilo

Apache's processes disappear after `apache2ctl graceful` with the
following lines in errorlog:

[Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
failed
[Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
failed
[Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
failed
[Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
failed
[Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
failed
[Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
failed
[Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
failed

I have no experience in debugging so I hope to get some help here :)
What should I do to get more detailed information about the reason of fails?


# apache2 -v
Server version: Apache/2.2.9 (Debian)
Server built: Nov 15 2009 11:32:50

# apache2 -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_itk_module (static) # <- (!)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
include_module (shared)
mime_module (shared)
negotiation_module (shared)
php5_module (shared)
rewrite_module (shared)
setenvif_module (shared)


There is a one more weird thing with Linux kernel. I use Debian Lenny,
but uname shows 2.6.33 kernel.

# uname -a
Linux (hostname here) 2.6.33 #1 SMP Thu Feb 25 21:13:55 MSK 2010 x86_64
GNU/Linux

# dpkg -l | grep linux-image
ii linux-image-2.6-amd64 2.6.26+17+lenny1 Linux
2.6 image on AMD64
ii linux-image-2.6.26-2-amd64 2.6.26-21lenny4 Linux
2.6.26 image on AMD64

I think hosting company rebuilt a kernel and installed their custom one
on my server so that could be the reason of waitpid() fails and a dozen
of segmentation faults, but this thesis should be proven before blaming
them :)

Thanks in advance.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Reload kills apache

am 05.04.2010 15:53:46 von Jeff Trawick

On Sun, Apr 4, 2010 at 10:05 AM, Alex S Kurilo wrote:
> Apache's processes disappear after `apache2ctl graceful` with the followi=
ng
> lines in errorlog:
>
> [Sun Apr 04 17:38:25 2010] [error] (4)Interrupted system call: waitpid()
> failed

> # apache2 -v
> Server version: Apache/2.2.9 (Debian)
> Server built: =A0 Nov 15 2009 11:32:50
>
> # apache2 -t -D DUMP_MODULES
> Loaded Modules:
....
> =A0mpm_itk_module (static) # <- (!)
....
> I think hosting company rebuilt a kernel and installed their custom one o=
n
> my server so that could be the reason of waitpid() fails and a dozen of
> segmentation faults, but this thesis should be proven before blaming them=
:)

Since 2.2.x sources don't seem to generate that particular message,
and waitpid() is a typical MPM operation and you're using a
third-party MPM, I claim that this itk MPM is the suspected cause of
that message :)

I can't say whether the exit of httpd is related to that handful of
waitpid() messages.

You probably want to strace the parent or attach to it with gdb and
see what calls exit/_exit (or segfaults).

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org