Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ Running the server ➜ Smaug core dump =P

Smaug core dump =P

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Dace K   Canada  (169 posts)  Bio
Date Fri 14 May 2004 08:16 PM (UTC)
Message
Hey.. I have a minor problem in that I can't find the core dump for my smaug mud =P.

The closest thing I can find is a SMAUG.EXE.stackdump file that appears in my area folder.. however, when I try to run gdb on it, I get the message ....../SMAUG.EXE.stackdump" is not a coredump: File format not recognized.

The sigsev handler's commented out.. not sure what else to do. Any help'd be appreciated. Ty!

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Fri 14 May 2004 08:24 PM (UTC)
Message
How big is your .stackdump file? What system are you running on?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #2 on Sat 15 May 2004 04:34 AM (UTC)
Message
Have you set your OS to actually produce a core? If you haven't, are you using a startup file that might do it for you?

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Dace K   Canada  (169 posts)  Bio
Date Reply #3 on Sat 05 Jun 2004 11:45 PM (UTC)
Message
Ah, sorry.. forgot about this thread.

I've figured out core dumps, but.. I was wondering
if anyone could help me out with something different.

For some reason, my game seems to freeze at odd occasions.
And since it merely freezes, not crashes, I have to kill the process manually and there's no stackdump.

Anyone have any ideas on how to debug this?

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 06 Jun 2004 12:30 AM (UTC)
Message
Read my write-up on using gdb (one level up in the forum), namely:

http://www.gammon.com.au/forum/?bbsubject_id=3653

Start up gdb with the process-ID of the process in question.

eg.

gdb ../src/smaug.exe 12345

Press Ctrl+C to break into the execution.

Then type "bt" to see where in the program you are. Sounds like you are in a CPU loop. For example, you might be looping through an inventory with a "looped" list, where the last item points back to the first item, so it never gets to the end of the list.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Riftek   (1 post)  Bio
Date Reply #5 on Thu 01 Jul 2004 01:55 PM (UTC)
Message
Hi,
I know you said you figured out core already, but I thought I'd post the answer for anyone else with the question.
For core dumps on cygwin, you can only use GDB for live debugging. Use awk to read the .EXE.stackdump files.
I'm using circlemud and this is the line I use:
awk '/^[0-9]/{print $2}' lib/circlemud.exe.stackdump | addr2line -f -e bin/circle.exe
Hope this helps anyone who needs the help.
-Kpz
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


17,365 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.