httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject SIGPIPE and timeout on Solaris
Date Sun, 31 Mar 1996 14:45:31 GMT
I've got a problem on this new Solaris machine I just brought up.
Not sure it 1.1x would show the same problems on other systems or
not. It does *not* happen on my NetBSD machine.

The scenario is...

Child is handling request.
Press the stop button on your browser.
Child goes into loop on the timeout value.

The truss below shows the life of this child. The one SIGPIPE
seems to be ignored or unrelated to the write that gets EPIPE
and drops into the alarm loop. This behavior happens regardless
of whether keepalive is set or not. Any hints would be welcome.

7186:   fork()                                          = 7190
7190:   fork()          (returning as child ...)        = 7186
7190:   sigaction(SIGHUP, 0xEFFFFA30, 0xEFFFFB30)       = 0
7190:   sigaction(SIGTERM, 0xEFFFFA30, 0xEFFFFB30)      = 0
7190:   getpid()                                        = 7190 [7186]
7190:   time()                                          = 828281834
7190:   getuid()                                        = 0 [0]
7190:   setuid(59999)                                   = 0
7190:   getcontext(0xEFFFF898)
7190:   sigaction(SIGURG, 0xEFFFF918, 0xEFFFFA18)       = 0
7190:   alarm(0)                                        = 0
7190:   sigaction(SIGPIPE, 0xEFFFF918, 0xEFFFFA18)      = 0
7190:   getpid()                                        = 7190 [7186]
7190:   time()                                          = 828281834
7190:   fcntl(9, F_SETLKW, 0x000487B8)  (sleeping...)
7190:   fcntl(9, F_SETLKW, 0x000487B8)                  = 0
7190:   getmsg(10, 0xEFFFF998, 0xEFFFF98C, 0xEFFFF9A4) (sleeping...)
7190:   getmsg(10, 0xEFFFF998, 0xEFFFF98C, 0xEFFFF9A4)  = 0
7190:   sigprocmask(SIG_BLOCK, 0xEFFFF750, 0xEFFFF848)  = 0
7190:   open("/dev/tcp", O_RDWR)                        = 11
7190:   ioctl(11, I_PUSH, "sockmod")                    = 0
7190:   ioctl(11, I_STR, 0xEFFFF698)                    = 0
7190:   ioctl(11, I_SETCLTIME, 0xEFFFF74C)              = 0
7190:   ioctl(11, I_SWROPT, 0x00000002)                 = 0
7190:   sigprocmask(SIG_SETMASK, 0xEFFFF73C, 0xEFFFF72C) = 0
7190:   ioctl(11, I_STR, 0xEFFFF5B0)                    = 0
7190:   sigprocmask(SIG_SETMASK, 0xEFFFF72C, 0xEFFFF708) = 0
7190:   ioctl(10, I_FDINSERT, 0xEFFFF7F4)               = 0
7190:   fcntl(10, F_GETFL, 0x00000000)                  = 2
7190:   getmsg(10, 0xEFFFF998, 0x00000000, 0xEFFFF75C)  = 0
7190:   sigprocmask(SIG_SETMASK, 0xEFFFF848, 0x00000000) = 0
7190:   fcntl(9, F_SETLKW, 0x000487DC)                  = 0
7190:   ioctl(11, TI_GETMYNAME, 0xEFFFF9AC)             = 0
7190:   getpid()                                        = 7190 [7186]
7190:   time()                                          = 828281855
7190:   sigaction(SIGALRM, 0xEFFFF838, 0xEFFFF938)      = 0
7190:   alarm(1200)                                     = 0
7190:   read(11, " G E T   / i m a g e s /".., 4096)    = 236
7190:   alarm(0)                                        = 1200
7190:   getpid()                                        = 7190 [7186]
7190:   time()                                          = 828281855
7190:   stat("/docroot/global/zyzzyva.com/images/z-router.gif", 0x00065698) = 0
7190:   open("/.wwwacl", O_RDONLY)                      Err#2 ENOENT
7190:   open("/docroot/.wwwacl", O_RDONLY)              Err#2 ENOENT
7190:   open("/docroot/global/.wwwacl", O_RDONLY)       Err#2 ENOENT
7190:   open("/docroot/global/zyzzyva.com/.wwwacl", O_RDONLY) Err#2 ENOENT
7190:   open("/docroot/global/zyzzyva.com/images/.wwwacl", O_RDONLY) Err#2 ENOEN
T
7190:   stat("/docroot/global/zyzzyva.com/images/.web/z-router.gif.meta",
F800) Err#2 ENOENT
7190:   open("/docroot/global/zyzzyva.com/images/z-router.gif", O_RDONLY) = 12
7190:   sigaction(SIGALRM, 0xEFFFF6E8, 0xEFFFF7E8)      = 0
7190:   alarm(1200)                                     = 0
7190:   time()                                          = 828281855
7190:   fstat(12, 0xEFFFD6E0)                           = 0
7190:   ioctl(12, TCGETA, 0xEFFFD66C)                   Err#25 ENOTTY
7190:   read(12, " G I F 8 9 a h01D2\0F7FF".., 8192)    = 8192
7190:   write(11, " H T T P / 1 . 0   2 0 0".., 4096)   = 4096
7190:   write(11, "03 C100416989582B1 TA9 $".., 4270)   = 4270
7190:   alarm(1200)                                     = 1200
7190:   read(12, " xB898 dDC 9A9F30E o9DED".., 8192)    = 8192
7190:   write(11, " xB898 dDC 9A9F30E o9DED".., 8192) (sleeping...)
7190:   write(11, " xB898 dDC 9A9F30E o9DED".., 8192)   Err#32 EPIPE
7190:   alarm(1200)                                     = 1189
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
7190:   alarm(1200)                                     = 1200
......



Mime
View raw message