root@someserver:~# gdb GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". (gdb) attach 18568 Attaching to process 18568 Reading symbols from /home/dcbouncer/bin/DCBouncer...done. Reading symbols from /lib/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread 0xb7b718e0 (LWP 18568)] Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/i686/cmov/libssl.so.0.9.8...done. Loaded symbols for /lib/i686/cmov/libssl.so.0.9.8 Reading symbols from /lib/i686/cmov/libcrypto.so.0.9.8...done. Loaded symbols for /lib/i686/cmov/libcrypto.so.0.9.8 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libstdc++.so.6...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libz.so.1...done. Loaded symbols for /lib/libz.so.1 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 0xb7c52fc8 in select () from /lib/libc.so.6 (gdb) bt #0 0xb7c52fc8 in select () from /lib/libc.so.6 #1 0x0806f3b2 in sockets::SocketHandler::Select (this=0xbf8c773c, tsel=0xbf8c7708) at SocketHandler.cpp:404 #2 0x080642e5 in sockets::EventHandler::EventLoop (this=0xbf8c773c) at EventHandler.cpp:167 #3 0x0805da1c in run (config=@0xbf8c7c34) at main.cpp:169 #4 0x0805e207 in main (argc=, argv=0x0) at main.cpp:189 (gdb) bt full #0 0xb7c52fc8 in select () from /lib/libc.so.6 No symbol table info available. #1 0x0806f3b2 in sockets::SocketHandler::Select (this=0xbf8c773c, tsel=0xbf8c7708) at SocketHandler.cpp:404 rfds = {fds_bits = {3145712, 0 }} wfds = {fds_bits = {0 }} efds = {fds_bits = {3145712, 0 }} n = check_max_fd = #2 0x080642e5 in sockets::EventHandler::EventLoop (this=0xbf8c773c) at EventHandler.cpp:167 tv = {tv_sec = 1912, tv_usec = 728000} #3 0x0805da1c in run (config=@0xbf8c7c34) at main.cpp:169 handler = { = { = { = { = { _vptr.IBase = 0x8080228}, }, m_sockets = {_M_t = { _M_impl = { > >> = {<__gnu_cxx::new_allocator > >> = {}, }, _M_key_compare = {> = {}, }, _M_header = {_M_color = std::_S_red, _M_parent = 0x8b44c10, _M_left = 0x8b35e18, _M_right = 0x8cd6c08}, _M_node_count = 17}}}, m_add = {_M_t = { _M_impl = { > >> = {<__gnu_cxx::new_allocator > >> = {}, }, _M_key_compare = {> = {}, }, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0xbf8c775c, _M_right = 0xbf8c775c}, _M_node_count = 0}}}, m_delete = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0xbf8c7770, _M_prev = 0xbf8c7770}}}, }, m_stdlog = 0x0, m_mutex = @0x74543517, m_b_use_mutex = false, m_maxsock = 21, m_rfds = {fds_bits = {3145712, 0 }}, m_wfds = {fds_bits = {0 }}, m_efds = { fds_bits = {3145712, 0 }}, m_preverror = -1, m_errcnt = 0, m_tlast = 1270391498, m_fds = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0x8b75948, _M_prev = 0x8cfa220}}}, }, m_fds_erase = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0xbf8c791c, _M_prev = 0xbf8c791c}}}, }, m_fds_callonconnect = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0xbf8c7924, _M_prev = 0xbf8c7924}}}, }, m_fds_timeout = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0xbf8c792c, _M_prev = 0xbf8c792c}}}, }, m_fds_retry = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0xbf8c7934, _M_prev = 0xbf8c7934}}}, }, m_fds_close = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0xbf8c793c, _M_prev = 0xbf8c793c}}}, }}, = {_vptr.IEventHandler = 0x808028c}, m_events = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = {_M_next = 0x8cfd0a0, _M_prev = 0x8cfd0a0}}}, }, m_quit = false, m_socket = 0x8b512e0, m_port = 35232}, initializers = {_M_t = { _M_impl = { > >> = {<__gnu_cxx::new_allocator > >> = {}, }, _M_key_compare = {> = {}, }, _M_header = { _M_color = std::_S_red, _M_parent = 0x8b35de0, _M_left = 0x8b5d4b0, _M_right = 0x8b69740}, _M_node_count = 5}}}} #4 0x0805e207 in main (argc=, argv=0x0) at main.cpp:189 res = 0 config = {static npos = 4294967295, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x8b356dc "../etc/DCBouncer"}} (gdb)