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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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