GDB Dump File

Kong

New member
Messages
224
Points
0
Emulator
Hi all,

I just want to ask about the dump file. Where is the gdb core dump being saved in Hercules? specifically for the map-server.

Because I've tried both guides in rAthena https://rathena.org/wiki/GDB  and Hercules http://herc.ws/wiki/GDB

and nothing worked. 

Any help would be greatly appreciated. Using debian here, with gdb already installed.

I've also set 

ulimit -u unlimited or ulimit -c 9999999
it now says unlimited when i check.

I've also enabled gdb debug already using this command 

Code:
./configure --enable-debug=gdb --disable-lto
 
Last edited by a moderator:
Generally, it would be saved as name "core"

Alternatively, open a new screen(don't turn this screen/session off) on putty, run map-server from command

gdb map-serverrunAnd upon crash, the same screen will show crashdump.Then type

bt full

Then copy all contents and paste

 
Hi @@Dastgir

What does this mean? 

[Error]: make_listen_bind: bind failed (socket #7, error 98: Address already in use)![Thread 0xb77acb70 (LWP 17683) exited]
thanks

 
Hi @@Dastgir

What does this mean? 

[Error]: make_listen_bind: bind failed (socket #7, error 98: Address already in use)![Thread 0xb77acb70 (LWP 17683) exited]thanks
Server is running in background..(The port is been used, thus cannot use that port), majorly caused by the reason server is running or using some common other ports.

 
@@Dastgir

So that means I can't run GDB when my map-server is already running? I need to start it manually using gdb so it can record the crash?

 
Back
Top