Server terminating when reattaching to screen

"Einar S. Idsø" esi at itk.ntnu.no
Fri Jun 24 05:35:10 EDT 2005


We are currently running all our servers within screen sessions. This
enables us to enter the console at will to issue commands. However, it
seems that about 1 in 2 times when I try to reattach to a running
server, the server terminates. This makes running the server w/i a
screen simply too risky to be helpful.

The 32-bit server runs on a P4 with 1GB RAM and Gentoo Linux.
$ screen --version
Screen version 4.00.02 (FAU) 5-Dec-03

Does anyone else have this problem?

Einar

p.s. Here is a backtrace of the last time this happened:

(gdb) bt
#0  0x0811b2f9 in dice::hfe::CheckServerAliveThread::run ()
#1  0x0838b0c1 in dice::hfe::(anonymous
namespace)::pthreads_thread_trampoline ()
#2  0xb7bc8ef6 in pthread_start_thread () from /lib/libpthread.so.0
#3  0xb7cca23a in clone () from /lib/libc.so.6
(gdb) info threads
  6 process 23660  0xb7c9d046 in nanosleep () from /lib/libc.so.6
  5 process 23669  0xb7cc1faa in poll () from /lib/libc.so.6
  4 process 23671  0xb7c9d046 in nanosleep () from /lib/libc.so.6
  3 process 23672  0xb7cc3f71 in select () from /lib/libc.so.6
  2 process 23673  0xb7c9d046 in nanosleep () from /lib/libc.so.6
* 1 process 23670  0x0811b2f9 in dice::hfe::CheckServerAliveThread::run ()
(gdb) thread 2
[Switching to thread 2 (process 23673)]#0  0xb7c9d046 in nanosleep ()
   from /lib/libc.so.6
(gdb) bt
#0  0xb7c9d046 in nanosleep () from /lib/libc.so.6
#1  0x00000000 in ?? ()
#2  0x0838a7d1 in dice::hfe::System::sleep ()
#3  0x08116573 in dice::hfe::VoipServerInternalHookThread::run ()
#4  0x0838b0c1 in dice::hfe::(anonymous
namespace)::pthreads_thread_trampoline ()
#5  0xb7bc8ef6 in pthread_start_thread () from /lib/libpthread.so.0
#6  0xb7cca23a in clone () from /lib/libc.so.6
(gdb) thread 3
[Switching to thread 3 (process 23672)]#0  0xb7cc3f71 in select () from
/lib/libc.so.6
(gdb) bt
#0  0xb7cc3f71 in select () from /lib/libc.so.6
#1  0x00000009 in ?? ()
#2  0xb4e65c84 in ?? ()
#3  0xb4e65d04 in ?? ()
#4  0x00000000 in ?? ()
#5  0x0843451c in dice::hfe::io::SocketManager::sleep ()
#6  0x0842f85f in dice::hfe::io::NetServerThread::run ()
#7  0x0838b0c1 in dice::hfe::(anonymous
namespace)::pthreads_thread_trampoline ()
#8  0xb7bc8ef6 in pthread_start_thread () from /lib/libpthread.so.0
#9  0xb7cca23a in clone () from /lib/libc.so.6
(gdb) thread 4
[Switching to thread 4 (process 23671)]#0  0xb7c9d046 in nanosleep ()
   from /lib/libc.so.6
(gdb) bt
#0  0xb7c9d046 in nanosleep () from /lib/libc.so.6
#1  0x00000000 in ?? ()
#2  0x0838a7d1 in dice::hfe::System::sleep ()
#3  0x08099449 in dice::hfe::AutoRecorderHookThread::run ()
#4  0x0838b0c1 in dice::hfe::(anonymous
namespace)::pthreads_thread_trampoline ()
#5  0xb7bc8ef6 in pthread_start_thread () from /lib/libpthread.so.0
#6  0xb7cca23a in clone () from /lib/libc.so.6
(gdb) thread 5
[Switching to thread 5 (process 23669)]#0  0xb7cc1faa in poll () from
/lib/libc.so.6
(gdb) bt
#0  0xb7cc1faa in poll () from /lib/libc.so.6
#1  0xb7bc8a03 in __pthread_manager () from /lib/libpthread.so.0
#2  0xb7cca23a in clone () from /lib/libc.so.6
(gdb) thread 6
[Switching to thread 6 (process 23660)]#0  0xb7c9d046 in nanosleep ()
   from /lib/libc.so.6
(gdb) bt
#0  0xb7c9d046 in nanosleep () from /lib/libc.so.6
#1  0x00000000 in ?? ()
#2  0x0838a7d1 in dice::hfe::System::sleep ()
#3  0x08123511 in dice::hfe::BF2Engine::mainLoop ()
#4  0x080528ae in dice::hfe::BF2::run ()
#5  0x08052bd8 in main ()

d.s



More information about the Bf1942 mailing list