Jump to content
  • 0
Emistry

About GDB setup.

Question

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 :

  1. navigate to the Hercules trunk folder
  2. type this command
    ulimit -u unlimited./athena-start restart    // startup server
  3. Wait until the crash happened, then type this command
    gdb map-server map-server.core        // assume it's map-server crashed.
  4. I get this output once I enter the command above.                  
  5. 6TuKWls.png
  6. then I type the command and it show "No Stack"  U9HcOfz.png

 

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 ??

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

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 ?

Share this post


Link to post
Share on other sites
  • 0

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.

 
 

Share this post


Link to post
Share on other sites
  • 0

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. :(

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.