[Mongrel] Mongrels stop responding

Michael Kinney lists at ruby-forum.com
Tue Apr 1 09:55:53 EDT 2008


Evan Weaver wrote:
> Gdb the stuck mongrel and force it to raise a backtrace.

I had to wait for one of them to hang again. This time, no CLOSE_WAIT. 
Also note, I've never used gdb before. I googled up how to attach to a 
PID and hit the "backtrace" command. If there's anything else I need to 
do, the GDB session is still available to me for a limited time (until 
enough people complain about the app being down).

GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "i486-linux-gnu".
Attaching to process 31635
Reading symbols from /usr/bin/ruby1.8...(no debugging symbols 
found)...done.
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Reading symbols from /usr/lib/libruby1.8.so.1.8...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libruby1.8.so.1.8
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging 
symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1211282784 (LWP 31635)]
[New Thread -1262781520 (LWP 31645)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging 
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging 
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging 
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/ruby/1.8/i486-linux/etc.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/etc.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/stringio.so...(no 
debugging symbols found)...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/stringio.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/syck.so...(no 
debugging symbols found)...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/syck.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/socket.so...(no 
debugging symbols found)...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/socket.so
Reading symbols from 
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/http11.so...done.
Loaded symbols for 
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/http11.so
Reading symbols from 
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/lib/fastthread.so...done.
Loaded symbols for 
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/lib/fastthread.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/zlib.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/zlib.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/ruby/1.8/i486-linux/strscan.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/strscan.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/bigdecimal.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/bigdecimal.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/nkf.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/nkf.so
Reading symbols from 
/usr/local/lib/site_ruby/1.8/i486-linux/oci8lib.so...done.
Loaded symbols for /usr/local/lib/site_ruby/1.8/i486-linux/oci8lib.so
Reading symbols from 
/usr/lib/oracle/11.1.0.1/client/lib/libclntsh.so.11.1...done.
Loaded symbols for /usr/lib/oracle/11.1.0.1/client/lib/libclntsh.so.11.1
Reading symbols from 
/usr/lib/oracle/11.1.0.1/client/lib/libnnz11.so...done.
Loaded symbols for /usr/lib/oracle/11.1.0.1/client/lib/libnnz11.so
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from 
/usr/lib/oracle/11.1.0.1/client/lib/libociicus.so...done.
Loaded symbols for /usr/lib/oracle/11.1.0.1/client/lib/libociicus.so
Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /usr/lib/ruby/1.8/i486-linux/fcntl.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/fcntl.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/digest/md5.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/digest/md5.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/digest.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/digest.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/racc/cparse.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/racc/cparse.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/iconv.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/iconv.so
Reading symbols from /usr/lib/ruby/1.8/i486-linux/openssl.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i486-linux/openssl.so
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Failed to read a valid object file image from memory.
0xb7f45410 in ?? ()
(gdb) backtrace
#0  0xb7f45410 in ?? ()
#1  0xbf9f0fa8 in ?? ()
#2  0xbf9f0e90 in ?? ()
#3  0xbf9f0f10 in ?? ()
#4  0xb7d99131 in select () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7e99f91 in rb_thread_schedule () from /usr/lib/libruby1.8.so.1.8
#6  0xb7e9ac80 in rb_thread_wait_for () from /usr/lib/libruby1.8.so.1.8
#7  0xb7ee750b in Init_process () from /usr/lib/libruby1.8.so.1.8
#8  0xb7e94653 in rb_provide () from /usr/lib/libruby1.8.so.1.8
#9  0xb7e9bdc2 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#10 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#11 0xb7ea4997 in rb_apply () from /usr/lib/libruby1.8.so.1.8
#12 0xb7ea75be in rb_apply () from /usr/lib/libruby1.8.so.1.8
#13 0xb7ea88bb in rb_apply () from /usr/lib/libruby1.8.so.1.8
#14 0xb7e9463e in rb_provide () from /usr/lib/libruby1.8.so.1.8
#15 0xb7e9bdc2 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#16 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#17 0xb7ea4997 in rb_apply () from /usr/lib/libruby1.8.so.1.8
#18 0xb7ea5d0c in rb_apply () from /usr/lib/libruby1.8.so.1.8
#19 0xb7ea75be in rb_apply () from /usr/lib/libruby1.8.so.1.8
#20 0xb7e9faf4 in ruby_stop () from /usr/lib/libruby1.8.so.1.8
#21 0xb7e94247 in rb_provide () from /usr/lib/libruby1.8.so.1.8
#22 0xb7e9bdc2 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#23 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#24 0xb7e9ce47 in rb_obj_call_init () from /usr/lib/libruby1.8.so.1.8
#25 0xb7e9cea2 in rb_obj_call_init () from /usr/lib/libruby1.8.so.1.8
#26 0xb7e94653 in rb_provide () from /usr/lib/libruby1.8.so.1.8
#27 0xb7e9bdc2 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#28 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#29 0xb7ea486c in rb_apply () from /usr/lib/libruby1.8.so.1.8
#30 0xb7ea5d0c in rb_apply () from /usr/lib/libruby1.8.so.1.8
#31 0xb7ea2e39 in rb_apply () from /usr/lib/libruby1.8.so.1.8
#32 0xb7e9c6e1 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#33 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#34 0xb7ea486c in rb_apply () from /usr/lib/libruby1.8.so.1.8
#35 0xb7e9c6e1 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#36 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#37 0xb7ea486c in rb_apply () from /usr/lib/libruby1.8.so.1.8
#38 0xb7e9c6e1 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#39 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#40 0xb7ea486c in rb_apply () from /usr/lib/libruby1.8.so.1.8
#41 0xb7ea4d31 in rb_apply () from /usr/lib/libruby1.8.so.1.8
#42 0xb7ea9baa in rb_load () from /usr/lib/libruby1.8.so.1.8
#43 0xb7eaa487 in rb_f_require () from /usr/lib/libruby1.8.so.1.8
#44 0xb7e94653 in rb_provide () from /usr/lib/libruby1.8.so.1.8
#45 0xb7e9bdc2 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#46 0xb7e9cb38 in rb_iter_break () from /usr/lib/libruby1.8.so.1.8
#47 0xb7ea4997 in rb_apply () from /usr/lib/libruby1.8.so.1.8
---Type <return> to continue, or q <return> to quit---
#48 0xb7eaa618 in rb_load_protect () from /usr/lib/libruby1.8.so.1.8
#49 0xb7eaa662 in ruby_exec () from /usr/lib/libruby1.8.so.1.8
#50 0xb7eaa69f in ruby_run () from /usr/lib/libruby1.8.so.1.8
#51 0x08048612 in main ()
(gdb)
-- 
Posted via http://www.ruby-forum.com/.


More information about the Mongrel-users mailing list