Emistry 145 Posted April 10, 2015 erm, I need some help regarding the GDB. http://herc.ws/wiki/index.php?title=GDB#Using_gdb_with_Hercules I have read the guide here many times, yet I still cant make it work. I am not sure which steps I have missing, or did wrongly. My steps to use GDB : navigate to the Hercules trunk folder type this command ulimit -u unlimited./athena-start restart // startup server Wait until the crash happened, then type this command gdb map-server map-server.core // assume it's map-server crashed. I get this output once I enter the command above. then I type the command and it show "No Stack" Can you guys correct me ? I also did compile the server using this commands before I start using the GDB. ./configure --enable-debug=gdb --disable-ltomake cleanmake sql and lastly, if the GDB ever success to record the dump, where can I find the dump file that contain the crash information ?? Quote Share this post Link to post Share on other sites
0 malufett 247 Posted April 10, 2015 type > gdb ./map-server(gdb) r< wait until it crash >(gdb) bt full 1 Emistry reacted to this Quote Share this post Link to post Share on other sites
0 Emistry 145 Posted April 10, 2015 oh I see. thx for the guide. normally where would the file stored? would it still work if I type the command while the map-server is still running ? Quote Share this post Link to post Share on other sites
0 Conflicts 10 Posted April 10, 2015 It would just be named "core", and it'll be on the trunk directory. So your previous command should've worked, but instead of gdb map-server map-server.core you'll just have to type gdb map-server core. 1 Emistry reacted to this Quote Share this post Link to post Share on other sites
0 Emistry 145 Posted April 10, 2015 thank for the tips =D Quote Share this post Link to post Share on other sites
0 Kong 9 Posted April 13, 2015 thank for the tips =D Hi Emistry, I'm having the same problem, could you share how you were able to see the core dumps using their tips? I can't seem to locate where the map-server logs is stored. Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted April 13, 2015 @@Kong http://herc.ws/wiki/index.php?title=GDB&diff=970&oldid=969#Example 1 Kong reacted to this Quote Share this post Link to post Share on other sites
0 Kong 9 Posted April 13, 2015 @@Dastgir Thank you! Quote Share this post Link to post Share on other sites
erm, I need some help regarding the GDB.
http://herc.ws/wiki/index.php?title=GDB#Using_gdb_with_Hercules
I have read the guide here many times, yet I still cant make it work.
I am not sure which steps I have missing, or did wrongly.
My steps to use GDB :
Can you guys correct me ?
I also did compile the server using this commands before I start using the GDB.
and lastly, if the GDB ever success to record the dump, where can I find the dump file that contain the crash information ??
Share this post
Link to post
Share on other sites