DESCRIPTION
I made a C server mod for cube 2: Sauerbraten https://github.com/deathstar/QServCollect
all the code can be found at the link above
The IRC Bot eventually stops sending the ping/pong data on the opened socket. The process is threaded and since the main thread is joined through PTHREAD_CREATE_JOINABLE, it dies when the IRC bot dies. This causes the entire server to crash, and I am just trying to debug it. Any help would be appreciated.
KEY
Ircbot code: ircbot/ircbot.cpp, ircbot/ircbot.h
Main thread: engine/server.cpp
LLDB DEBUG REPORT
Process 7933 stopped
* thread #1: tid = 0xa4b8d, 0x00007fff83e4010a libsystem_kernel.dylib`__semwait_signal + 10, queue = 'com.apple.main-thread', stop reason = signal SIGPIPE
frame #0: 0x00007fff83e4010a libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
-> 0x7fff83e4010a <+10>: jae 0x7fff83e40114 ; <+20>
0x7fff83e4010c <+12>: movq %rax, %rdi
0x7fff83e4010f <+15>: jmp 0x7fff83e3a7f2 ; cerror
0x7fff83e40114 <+20>: retq
SERVER LOG
PING :NuclearFallout.WA.US.GameSurge.net
SENT: PONG :NuclearFallout.WA.US.GameSurge.net
PING :NuclearFallout.WA.US.GameSurge.net
SENT: PONG :NuclearFallout.WA.US.GameSurge.net
[ OK ] looking up sauerbraten.org...
master server registration failed: failed pinging server
[ OK ] looking up sauerbraten.org...