Segmentation fault help

Posted by Krono on Fri 25 Jul 2003 01:39 AM — 2 posts, 13,268 views.

#0
Hi I just recently noticed that no one on the mud is able to kill a monster. It seems to crash right before someone kills the monster or during the fight. When I check to see what happened all I see is this:
[1]+ Segmentation fault ./rom 4000

I was wondering if anyone knows what that may mean. Sorry if this seems like an easy problem. I am just learning and could use some help thank you =)
Amended on Fri 25 Jul 2003 01:41 AM by Krono
Australia Forum Administrator #1
A segmentation fault could be almost anything, one possibility is dereferencing a nil pointer.

If you can't guess by looking at the code, I would use gdb and do a backtrace to see what it was doing when it crashed.

This post shows the general idea ...


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