Strange TMI2 SegFault

Posted by Terry on Fri 28 Nov 2008 08:22 PM — 2 posts, 12,950 views.

USA #0
I'm getting a rather strange segmentation fault when I try to configure the MUD, but I don't see any tracebacks anywhere that would explain why. Everything seems to have worked correctly in compilation, and it all seems to be installed, except for what I've logged below. Would anyone be able to tell me where I can find the tracebacks so I can figure out what's wrong? I looked in the various log dirs, and none seemed relevant.

~/tmi2/bin$ ls
addr_server config.tmi2 driver

~/tmi2/bin$ ./driver config.tmi2&
[3] 1800
~/tmi2/bin$ using config file: config.tmi2
Initializing internal tables....

At this point, it seems to lock up, so I hit ^C.
[code="I then get this:"] [3] Segmentation fault ./driver config.tmi2



Any help would be greatly appreciated, as I've never seen this error before.
Amended on Fri 28 Nov 2008 11:07 PM by Terry
Australia Forum Administrator #1
I am not familiar with this, however a "lock up" suggests a loop, in which case there will be no dump or traceback.

What you could do is this:


gdb ./driver


(Note no ampersand at the back, which stops it being a detached process).

Type "run config.tmi2" to start it up.

Then, if it loops, hit Ctrl+C. That takes you back into the debugger. Then type "bt" to get a backtrace. That might show what it thinks it is doing.


See: http://www.gammon.com.au/gdb for more info about using gdb.