httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42829] graceful restart with multiple listeners using prefork MPM can result in hung processes
Date Wed, 27 Aug 2008 13:12:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=42829


Raphael Wegmann <wegmann@psi.co.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wegmann@psi.co.at
             Status|NEEDINFO                    |ASSIGNED




--- Comment #26 from Raphael Wegmann <wegmann@psi.co.at>  2008-08-27 06:12:58 PST ---
I can confirm this bug for Apache 2.2.6 prefork on Solaris 10. 
Here is a trace of an unsuccessful SIGUSR1 call:

    Received signal #16, SIGUSR1, in fcntl() [caught]
      siginfo: SIGUSR1 pid=2185 uid=2002
fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510)         Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(7)                                        = 0
close(5)                                        = 0
close(3)                                        = 0
setcontext(0xFFFFFFFF7FFFE210)
fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510) (sleeping...)
fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510)         = 0
port_associate(22, 4, 0xFFFFFFFFFFFFFFFF, 0x00000001, 0x10039FE68) Err#81
EBADFD
port_getn(22, 0x10039FD40, 3, 1, 0x00000000) (sleeping...)

    Received signal #16, SIGUSR1, in port_getn() [caught]
      siginfo: SIGUSR1 pid=2185 uid=2002
port_getn(22, 0x10039FD40, 3, 1, 0x00000000)    Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(-1)                                       Err#9 EBADF
close(-1)                                       Err#9 EBADF
close(-1)                                       Err#9 EBADF
setcontext(0xFFFFFFFF7FFFE360)
write(13, " [ F r i   A u g   2 2  ".., 104)    = 104
close(22)                                       = 0
close(11)                                       = 0
close(10)                                       = 0
_exit(1)

error-log:
[Fri Aug 22 15:08:04 2008] [error] (70007)The timeout specified has expired:
apr_pollset_poll: (listen)

Even after sending a 2nd USR1-signal the child doesn't exit:

 3.6337 read(0, 0xFFFFFFFF7FFFEB78, 512)                = 0
 3.6338 close(0)                                        = 0
 3.6339 read(10, 0xFFFFFFFF7FFFED7F, 1)                 Err#11 EAGAIN
 4.4083     Received signal #16, SIGUSR1, in fcntl() [caught]
 4.4086 fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510)         Err#4 EINTR
 4.4087 lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF
[0x0000FFFF]
 4.4088 close(7)                                        = 0
 4.4089 close(5)                                        = 0
 4.4089 close(3)                                        = 0
 4.4090 setcontext(0xFFFFFFFF7FFFE2F0)
fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510) (sleeping...)
38.5953     Received signal #16, SIGUSR1, in fcntl() [caught]
38.5955 fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510)         Err#4 EINTR
38.5956 lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF
[0x0000FFFF]
38.5957 close(-1)                                       Err#9 EBADF
38.5957 close(-1)                                       Err#9 EBADF
38.5958 close(-1)                                       Err#9 EBADF
38.5969 setcontext(0xFFFFFFFF7FFFE2F0)
fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510) (sleeping...)
56.4129     Received signal #16, SIGUSR1, in fcntl() [caught]
56.4130 fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510)         Err#4 EINTR
56.4131 lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF
[0x0000FFFF]
56.4132 close(-1)                                       Err#9 EBADF
56.4133 close(-1)                                       Err#9 EBADF
56.4133 close(-1)                                       Err#9 EBADF
56.4134 setcontext(0xFFFFFFFF7FFFE2F0)
57.3615     Received signal #16, SIGUSR1, in fcntl() [caught]
57.3617 fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510)         Err#4 EINTR
57.3618 lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF
[0x0000FFFF]
57.3618 close(-1)                                       Err#9 EBADF
57.3619 close(-1)                                       Err#9 EBADF
57.3619 close(-1)                                       Err#9 EBADF
57.3620 setcontext(0xFFFFFFFF7FFFE2F0)
57.8297     Received signal #16, SIGUSR1, in fcntl() [caught]
57.8298 fcntl(20, F_SETLKW, 0xFFFFFFFF7D925510)         Err#4 EINTR
57.8299 lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF
[0x0000FFFF]
57.8301 close(-1)                                       Err#9 EBADF
57.8301 close(-1)                                       Err#9 EBADF
57.8302 close(-1)                                       Err#9 EBADF
57.8302 setcontext(0xFFFFFFFF7FFFE2F0)

This is what a successful USR1 handling looks like:

    Received signal #16, SIGUSR1, in pollsys() [caught]
pollsys(0xFFFFFFFF7FFFE928, 1, 0xFFFFFFFF7FFFE860, 0x00000000) Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00008000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(7)                                        = 0
close(5)                                        = 0
close(3)                                        = 0
setcontext(0xFFFFFFFF7FFFDF50)
pollsys(0xFFFFFFFF7FFFE928, 1, 0xFFFFFFFF7FFFE860, 0x00000000) = 1
read(0, 0xFFFFFFFF7FFFEAB8, 512)                = 0
close(0)                                        = 0
read(10, 0xFFFFFFFF7FFFECBF, 1)                 Err#11 EAGAIN
close(22)                                       = 0
close(11)                                       = 0
close(10)                                       = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON,
-1, 0) = 0xFFFFFFFF76F00000
munmap(0xFFFFFFFF76F00000, 8192)                = 0
_exit(0)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message