[comp.sources.games.bugs] Segmentation Violation

kwthomas@uokmax.UUCP (Kevin Thomas) (04/26/88)

Anyone having problem with "segmentation violations"?   One user reported it
after trying to pick up a ring.  I had it after dying, and answer 'y' to "do
you wish to have everything identified".  Adb shows the program in "xprname()"
[in invent.c], but can't get any further.  By the way, I'm running this on a
Sun.  I had no problems, other than all the known ones, with 2.2.

	Kevin W. Thomas

rossm@orcrist.uucp (Ross McCammon) (05/06/88)

I'm getting a Segmentation fault on a Sun everytime I try to "rub" a lamp.
Anyone else?

blm@spec0.UUCP (Bharat Lal Madhyani) (05/07/88)

In article <33528@orcrist.uucp>, rossm@orcrist.uucp (Ross McCammon) writes:
> 
> I'm getting a Segmentation fault on a Sun everytime I try to "rub" a lamp.
> Anyone else?

Try using sdb, to locate the error. Basically, somehow , one of the pointers
has an illegal address, which is pointing outside your address space.

May the source be with you :-)