Jump to content
  • 0
Sign in to follow this  
Igniz

Setup gdb on Fedora, Devian & Centos

Question

I'm very very VERY glad of see you again in action guys, maybe you can't remember me but i do you.... anyway, i'm back by now and i have a couple of troubles with my gdb (sadly it can't make debug info), so, in order to help you with the proyect, could you please give me a hand?

 

Well, this are my steps to set it (obviously after install, inside the folder):

 

 

./configure --enable-debug=gdbmake cleanmake sqlulimit -c unlimited  <----- -u?./athena-start start 

Thanks in advance /gawi

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

I've never really used --enable-debug=gdb (i dont even know whats that for) usually I just go with:

gdb ./map-server_sqlr<boom broken!>bt full<displays data>
not sure thats the result you're looking for

Share this post


Link to post
Share on other sites
  • 0

Well, long ago i used to set it in that way so, when it crashes it automatically drop a debug file for gdb for futher analysis, you don't need to run the map-server under gdb console (maybe your pc crashes and you was under gdb, the connection goes down and the whole server too, so, in this case, it's more useful set an auto debug file while you go to eat, or sleep or whtvr)

 

Useful links if you can't understand me

http://rathena.org/board/topic/73548-stackdump-gdbcoredump/

http://rathena.org/board/topic/63290-making-crash-dumps-with-cmake/

Share this post


Link to post
Share on other sites
  • 0

You can get core dumps which you can debug with GDB later on. Pretty neat when the server crashes for totally random reasons at totally random times. 

Also on a sidenote, unless I am totally off the linux-distro world, I think you meant Debian instead of Devian :P

Share this post


Link to post
Share on other sites
  • 0

How does one run the map server so that when it crashes, you can type "bt full" to get the crash dump, but also run the other servers?

 

Doing:

 

gdb ./map-server_sql
r

 

Runs the map server, but doesn't run anything else. :/

 

Edit:

 

I did the following:

 

./login-server & ./char-server & gdb ./map-server

[ENTER]

r

 

And it seems to have launched all three services. Now, my question is, when the map server crashes, I type "bt full" to get the crash dump?

Share this post


Link to post
Share on other sites
  • 0

How does one run the map server so that when it crashes, you can type "bt full" to get the crash dump, but also run the other servers?

 

Doing:

 

gdb ./map-server_sql

r

 

Runs the map server, but doesn't run anything else. :/

 

Edit:

 

I did the following:

 

./login-server & ./char-server & gdb ./map-server

[ENTER]

r

 

And it seems to have launched all three services. Now, my question is, when the map server crashes, I type "bt full" to get the crash dump?

you use screen to launch map server in a different virtual console, so you can keep it while not locking yourself
screen -S map
that creates a screen called map, then type
gdb ./map-serverr
it'll launch map server, now leave the screen so you can do anything else in the meantime. to leave current screen:
CTRL+A+D
leave it there o: now you can do anything else you like.

when you want to go back to the map server console/screen:

screen -r map
now you can type bt full or whatever else you like.


(when you're done using a screen e.g. have nothing else running in it and just want to delete it, type 'exit' while inside the screen)

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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