Odd Core Dump

Posted by NixonInnes on Tue 11 Mar 2008 01:58 PM — 2 posts, 12,860 views.

#0
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
Amended on Tue 11 Mar 2008 02:38 PM by NixonInnes
USA #1
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.