Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Bug#447164: /etc/init.d/apache2 stop leaves processes around

From: Stefan V?l <bd(at)bc-bd.org>
Date: Thu Oct 18 2007 - 10:49:20 EDT


Package: apache2
Version: 2.2.6-1
Severity: normal

My machine was keeping tons of apache2 processes around (I suspect due to the daily logrotate restart), see attached images.

$ ps fax | grep apache2

 4204 ?        Ss     0:00 /usr/sbin/apache2 -k start
  4210 ?        S      0:00  \_ /usr/sbin/apache2 -k start
  

$ sudo strace -p 4210
Process 4210 attached - interrupt to quit epoll_wait(13, <unfinished ...>
Process 4210 detached

Stracing the father process 4204 reveals a loop of this:

waitpid(4210, 0xbfd03878, WNOHANG|WSTOPPED) = 0
getpgid(0x1072)                         = 4204
getpgrp()                               = 4204
kill(4210, SIG_0)                       = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0
waitpid(4210, 0xbfd03878, WNOHANG|WSTOPPED) = 0
getpgid(0x1072)                         = 4204
getpgrp()                               = 4204
kill(4210, SIG_0)                       = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, <unfinished ...>

gdb did not reveal any additional information.

  • System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash

Versions of packages apache2 depends on: ii apache2-mpm-prefork 2.2.6-1 Traditional model for Apache HTTPD

Do you need help?X

apache2 recommends no packages.

  • no debconf information

-- 
To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
processes_month.png swap_month.png
Received on Thu Oct 18 10:58:48 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:58:29 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library