[comp.sources.bugs] Core dump in nethack..

flax@suadb.UUCP (Jonas Flygare) (08/18/87)

I get a bus error with the accompanying core dump every time I 
teleport out of a shop. Before I try to find what went wrong..
Anyone out there got a fix?
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| "Go to the Huntington Gallery and hold a razor blade a quarter of     |
|  an inch away from "The Blue Boy" and shout "Ding dong, ding dong...""|
|  flax@suadb.UUCP (Jonas Flygare)					|
|  jonasf@kuling.UUCP							|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

eeh@mitisft.Convergent.COM (Ed Hall) (08/21/87)

In article <286@suadb.UUCP>, flax@suadb.UUCP (Jonas Flygare) writes:
> 
> I get a bus error with the accompanying core dump every time I 
> teleport out of a shop. Before I try to find what went wrong..
> Anyone out there got a fix?
> -- 
The fix is in the file shk.c. There are 2 occurances of the line:

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

Change both lines to:

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

Other possible bugs I haven't looked at yet:
1) Sometimes when I start a game, my character(@) and the dog occupy the
same location on the screen.
2) When I was testing the above bug fix in WIZARD mode, I found a lot
of shops with several doors. I don't know if this happens in a regular game
or not (or if it is wrong).
3) If I remember right, monsters follow you down stairs. They don't do
that anymore. It makes it to easy to escape.

Ed Hall

tom@uw-warp.UUCP (F. Thomas May) (08/24/87)

In article <228@mitisft.Convergent.COM> eeh@mitisft.Convergent.COM (Ed Hall)
writes:

>Other possible bugs I haven't looked at yet:
>1) Sometimes when I start a game, my character(@) and the dog occupy the
>same location on the screen.
>2) When I was testing the above bug fix in WIZARD mode, I found a lot
>of shops with several doors. I don't know if this happens in a regular game
>or not (or if it is wrong).

In wizard mode, a shop (or other interesting room) is made on each level
regardless of whether a suitable room (one having only one door) is available
or not.

>3) If I remember right, monsters follow you down stairs. They don't do
>that anymore. It makes it to easy to escape.

Only a small set of monsters follow you up/down stairs in both hack 1.0.3 and
Nethack.

>Ed Hall

I've sent in about 10 minor bug fixes to Mike.  Hopefully they'll appear when
he gets back.  They include some spelling errors, "you" not being capitalized
in a few places, using xputs in cornline and pager to handle delays correctly,
etc.  If anybody wants them sooner, I can post.

-- 
Tom May
uw-nsr!uw-warp!tom@beaver.cs.washington.edu
uw-beaver!uw-nsr!uw-warp!tom