compile the server with the -g
options to enable symbols -ggdb
?
Run the server with gdb
if server crashes, get the stacktrace bt full
? to reveal more information.
Post that, and we should be able to figure out where in the source things went wrong.
bt full
#0 _int_free (av=0x7fffec000020, p=0x7fff343e5fe0, have_lock=0)
at malloc.c:3968
size = 72057594037927968
fb = <optimized out>
nextchunk = 0x1007fff343e6000
nextsize = <optimized out>
nextinuse = <optimized out>
prevsize = <optimized out>
bck = <optimized out>
fwd = <optimized out>
errstr = 0x0
locked = <optimized out>
#1 0x000000000061cfb2 in __gnu_cxx::new_allocator<unsigned char>::deallocate(unsigned char*, unsigned long) ()
No symbol table info available.
#2 0x000000000061b764 in std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_deallocate(unsigned char*, unsigned long) ()
No symbol table info available.
#3 0x00000000006196d9 in std::_Vector_base<unsigned char, std::allocator<unsigned char> >::~_Vector_base() ()
No symbol table info available.
#4 0x0000000000618669 in std::vector<unsigned char, std::allocator<unsigned char> >::~vector() ()
No symbol table info available.
#5 0x00000000007a28b0 in Player::~Player() ()
No symbol table info available.
#6 0x00000000007a2ab6 in Player::~Player() ()
No symbol table info available.
#7 0x00000000005ab9f4 in Creature::decrementReferenceCounter() ()
No symbol table info available.
#8 0x00000000005e3703 in Game::cleanup() ()
No symbol table info available.
#9 0x00000000005dcfaf in Game::checkCreatures(unsigned long) ()
No symbol table info available.
#10 0x000000000061115c in void std::_Mem_fn<void (Game::
)(unsigned long)>:
perator()<unsigned long&, void>(Game, unsigned long& const ()
No symbol table info available.
#11 0x000000000060cb4d in void std::_Bind<std::_Mem_fn<void (Game::
)(unsigned long)> (Game, unsigned long)>::__call<void, , 0ul, 1ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul> ()
No symbol table info available.
#12 0x00000000006059f8 in void std::_Bind<std::_Mem_fn<void (Game::*)(unsigned l---Type <return> to continue, or q <return> to quit---Quit