On Fri, May 05, 2006 at 12:06:24AM -0700, Philip M. Gollucci wrote:
> >If I kill and restart the Apache then it's fine but it'll freeze up in
> >a few days again. I'm perplexed.
> Start the server in -X or wait for it to happen and
> attach strace to the process.  If that doesn't help you could always 
> attach gdb to the process.

It happened again. I tried attaching gdb/strace to the main Apache
process that froze and got some data, but I don't know how to
interpret the results. Does anyone know how to interpret this?

Here's what gdb says:

(gdb) where
#0  0x557c19f8 in select () from /lib/tls/libc.so.6
#1  0x080a85fc in wait_or_timeout ()
#2  0x080aac5e in standalone_main ()
#3  0x080ab3d4 in main ()

And here's what strace says:

select(0, NULL, NULL, NULL, {0, 135000}) = 0 (Timeout)
time(NULL)                              = 1146842062
waitpid(-1, 0xffffda1c, WNOHANG)        = 0
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
time(NULL)                              = 1146842063
waitpid(-1, 0xffffda1c, WNOHANG)        = 0
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
time(NULL)                              = 1146842064
waitpid(-1, 0xffffda1c, WNOHANG)        = 0
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
time(NULL)                              = 1146842065
(keeps repeating same sequence of calls)

Also here's a gdb of one of the child processes:

(gdb) where
#0  0x556ea67e in __read_nocancel () from /lib/tls/libpthread.so.0
#1  0x556afa4d in PerlIOUnix_read () from /usr/lib/libperl.so.5.8
#2  0x556ae1d2 in Perl_PerlIO_read () from /usr/lib/libperl.so.5.8
#3  0x556b0f6d in PerlIOBuf_fill () from /usr/lib/libperl.so.5.8
#4  0x556ae583 in Perl_PerlIO_fill () from /usr/lib/libperl.so.5.8
#5  0x556af07b in PerlIOBase_read () from /usr/lib/libperl.so.5.8
#6  0x556b0fe9 in PerlIOBuf_read () from /usr/lib/libperl.so.5.8
#7  0x556ae1d2 in Perl_PerlIO_read () from /usr/lib/libperl.so.5.8
#8  0x556b2b93 in PerlIO_getc () from /usr/lib/libperl.so.5.8
#9  0x55657f75 in Perl_sv_gets () from /usr/lib/libperl.so.5.8
#10 0x55648f32 in Perl_do_readline () from /usr/lib/libperl.so.5.8
#11 0x55645920 in Perl_pp_readline () from /usr/lib/libperl.so.5.8
#12 0x55644ce9 in Perl_runops_standard () from /usr/lib/libperl.so.5.8
#13 0x555e7459 in Perl_call_sv () from /usr/lib/libperl.so.5.8
#14 0x555e723d in Perl_call_sv () from /usr/lib/libperl.so.5.8
#15 0x0805b8be in perl_call_handler ()
#16 0x0805ac03 in perl_run_stacked_handlers ()
#17 0x080589e4 in perl_handler ()
#18 0x0809d0b2 in ap_invoke_handler ()
#19 0x080b3aba in process_request_internal ()
#20 0x080b3b17 in ap_process_request ()
#21 0x080aa0d7 in child_main ()
#22 0x080aa368 in make_child ()
---Type <return> to continue, or q <return> to quit---
#23 0x080aa6d6 in perform_idle_server_maintenance ()
#24 0x080aad77 in standalone_main ()
#25 0x080ab3d4 in main ()

Reply via email to