[comp.sources.bugs] Nethack 1.4

nerd@percival.UUCP (Michael Galassi) (10/10/87)

Howdy,
	I just found a problem in 1.4 nethack which I have not seen
posted yet.  I was in one of the shops (level 6 or so) and picked up
some plate mail and a spell-book.  I then cast a spell of digging
to get out as I was broke and got a buss error.  More specificaly
it told me I had gotten away with 995 (price units, whatever they are)
then it said --more--, then bus error.  Has anyone gotten this one?
Does anyone have a fix for it?
-michael
-- 
If my employer knew my opinions he would probably look for another engineer.

	Michael Galassi, Frye Electronics, Tigard, OR
		...!tektronix!reed!percival!nerd

crash@jc3b21.UUCP (Frank (Crash) Edwards) (10/11/87)

This particular fix has been posted a few times, but I know how it is
to miss them -- it's happened to me!

On my machine it generated a "memory fault" which can be caused by the
same thing.  The fix is in the calling procedure for 'enexto'.  In the
Nethack version, the function is defined something like

	enexto(cc, x, y)

But in the source file "shk.c" it is called twice as

	mm = enexto(mm.x, mm.y)

If you change these two calls to

	enexto(&mm, mm.x, mm.y)

you may find that the problem goes away.  If you have already applied this
fix, well, I have no idea what the problem is :-(.  And if the problem
doesn't go away, post again and I'll search a little for ya'.

Frank.