[FIXED] r279 - stop/restart doesn't work
#5
Here's some output from gdb on r279. I had to log output to a file (set logging on) which doesn't show the commands given. I hope you can use it anyways..

Code:
Id   Target Id         Frame
  5    Thread 0xb7411b40 (LWP 4032) "MCServer" 0xb7713424 in __kernel_vsyscall
    ()
  4    Thread 0xb6c10b40 (LWP 4033) "MCServer" 0xb7713424 in __kernel_vsyscall
    ()
  3    Thread 0xb640fb40 (LWP 4034) "MCServer" 0xb7713424 in __kernel_vsyscall
    ()
  2    Thread 0xb4ff3b40 (LWP 4036) "MCServer" 0xb7713424 in __kernel_vsyscall
    ()
* 1    Thread 0xb7413700 (LWP 4031) "MCServer" 0xb7713424 in __kernel_vsyscall
    ()
[Switching to thread 1 (Thread 0xb7413700 (LWP 4031))]
#0  0xb7713424 in __kernel_vsyscall ()
#0  0xb7713424 in __kernel_vsyscall ()
#1  0xb75c3c95 in sem_wait@@GLIBC_2.1 () from /lib/libpthread.so.0
#2  0x08144567 in cEvents::Wait (this=0xb5b00498) at WebServer/cEvents.cpp:99
#3  0x081471c4 in webserver::Stop (this=0xb5b00468)
    at WebServer/WebServer.cpp:402
#4  0x080d7b85 in cWebAdmin::~cWebAdmin (this=0x82fcdf0,
    __in_chrg=<optimized out>) at source/cWebAdmin.cpp:69
#5  0x080bc1cb in cRoot::Start (this=0xbf9c5a58) at source/cRoot.cpp:145
#6  0x080a8258 in main (argc=1, argv=0xbf9c5b84) at source/main.cpp:79
[Switching to thread 2 (Thread 0xb4ff3b40 (LWP 4036))]
#0  0xb7713424 in __kernel_vsyscall ()
#0  0xb7713424 in __kernel_vsyscall ()
#1  0xb75c4bd8 in accept () from /lib/libpthread.so.0
#2  0x081326cd in cSocket::Accept (this=0x82fcac8) at source/cSocket.cpp:240
#3  0x08134acc in cServer::StartListenClient (this=0x82fc758)
    at source/cServer.cpp:259
#4  0x0813411f in cServer::ServerListenThread (a_Args=0x82fc758)
    at source/cServer.cpp:95
#5  0x080a854d in cThread::MyThread (a_Param=0x82fd868)
    at source/cThread.cpp:114
#6  0xb75bdd4c in start_thread () from /lib/libpthread.so.0
#7  0xb74fd03e in clone () from /lib/libc.so.6
[Switching to thread 3 (Thread 0xb640fb40 (LWP 4034))]
#0  0xb7713424 in __kernel_vsyscall ()
#0  0xb7713424 in __kernel_vsyscall ()
#1  0xb75c3c95 in sem_wait@@GLIBC_2.1 () from /lib/libpthread.so.0
#2  0x080c1253 in cEvent::Wait (this=0x82fe74c) at source/cEvent.cpp:93
#3  0x080d7760 in cChunkGenerator::Execute (this=0x82fe720)
    at source/cChunkGenerator.cpp:120
#4  0x080dc27c in cIsThread::thrExecute (iParam=0x82fe720)
    at source/cIsThread.h:60
#5  0xb75bdd4c in start_thread () from /lib/libpthread.so.0
#6  0xb74fd03e in clone () from /lib/libc.so.6
[Switching to thread 4 (Thread 0xb6c10b40 (LWP 4033))]
#0  0xb7713424 in __kernel_vsyscall ()
#0  0xb7713424 in __kernel_vsyscall ()
#1  0xb75c3c95 in sem_wait@@GLIBC_2.1 () from /lib/libpthread.so.0
#2  0x080c1253 in cEvent::Wait (this=0x82fe6ac) at source/cEvent.cpp:93
#3  0x0809ce91 in cWorldStorage::Execute (this=0x82fe670)
    at source/WorldStorage.cpp:247
#4  0x080dc27c in cIsThread::thrExecute (iParam=0x82fe670)
    at source/cIsThread.h:60
#5  0xb75bdd4c in start_thread () from /lib/libpthread.so.0
#6  0xb74fd03e in clone () from /lib/libc.so.6
[Switching to thread 5 (Thread 0xb7411b40 (LWP 4032))]
#0  0xb7713424 in __kernel_vsyscall ()
#0  0xb7713424 in __kernel_vsyscall ()
#1  0xb75c4bd8 in accept () from /lib/libpthread.so.0
#2  0x081492d4 in SocketServer::Accept (this=0xb5b00478)
    at WebServer/Socket.cpp:228
#3  0x081471e2 in webserver::Begin (this=0xb5b00468)
    at WebServer/WebServer.cpp:410
#4  0x080d9879 in cWebAdmin::ListenThread (lpParam=0x82fcdf0)
    at source/cWebAdmin.cpp:322
#5  0xb75bdd4c in start_thread () from /lib/libpthread.so.0
#6  0xb74fd03e in clone () from /lib/libc.so.6

When the debug session ended MCS wrote the following (this wasn't shown earlier):

[...]
[11:55:06] TICK THREAD STOPPED
[11:56:10] Waiting for the world storage to finish saving
[11:56:10] --- Stopped Log ---
Reply
Thanks given by:


Messages In This Thread
RE: r279 - stop/restart doesn't work - by xoft - 02-17-2012, 05:21 AM
RE: r279 - stop/restart doesn't work - by tbar - 02-17-2012, 05:59 PM
RE: r279 - stop/restart doesn't work - by xoft - 02-17-2012, 06:51 PM
RE: r279 - stop/restart doesn't work - by tbar - 02-17-2012, 08:05 PM
RE: r279 - stop/restart doesn't work - by xoft - 02-17-2012, 09:01 PM
RE: r279 - stop/restart doesn't work - by xoft - 02-17-2012, 11:11 PM
RE: r279 - stop/restart doesn't work - by tbar - 02-18-2012, 08:41 PM



Users browsing this thread: 3 Guest(s)