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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Odd Core Dump

Odd Core Dump

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


Posted by NixonInnes   (4 posts)  Bio
Date Tue 11 Mar 2008 01:58 PM (UTC)

Amended on Tue 11 Mar 2008 02:38 PM (UTC) by NixonInnes

Message
Server says:

Segmentation fault (core dumped)

warning: Can't read pathname for load map: Input/output error.


GDB:

GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `/home/james/mud/src/last 4000'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7e5855b in strlen () from /lib/tls/i686/cmov/libc.so.6


The base is a modded ResortMUD v4. I'm compiling under a Ubuntu Gutsy Gibbon 7.10 OS.

I'm not sure where to even start with this one. Boggled.

- Atami
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Tue 11 Mar 2008 05:17 PM (UTC)
Message
I would suggest reading Nick's excellent guide to debugging with gdb (http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3653); in particular you should look at how to examine backtraces, how to print the value of variables, etc. For instance, you'd need to at least see the line of code from your program at which it's failing.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
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.


12,250 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.