Discussion:
adventure - save game - segmentation fault
(too old to reply)
slacker
2017-12-02 21:12:41 UTC
Permalink
Raw Message
Slackware 14.2

Colossal Cave Adventures
/usr/games/adventures

I can play, after I save it says "segmentation-fault".
Any suggestions?
Doug713705
2017-12-02 21:50:55 UTC
Permalink
Raw Message
Le 02-12-2017, slacker nous expliquait dans
alt.os.linux.slackware
Post by slacker
Slackware 14.2
Colossal Cave Adventures
/usr/games/adventures
I can play, after I save it says "segmentation-fault".
Any suggestions?
Same here, It looks like a bug.
strace and gdb tell nothing but I'm not a specialist.
--
Nous vivions nos vertiges dans des vibrations folles
Et gerbions nos enzymes en nous gueulant : moteur !
Mais entre deux voyages, entre deux verres d'alcool,
Nous n'avions pas le temps de décompter nos heures.
-- H.F. Thiéfaine, Exil Sur planète fantôme
Arkadiusz Drabczyk
2017-12-03 09:40:22 UTC
Permalink
Raw Message
Post by slacker
Slackware 14.2
Colossal Cave Adventures
/usr/games/adventures
I can play, after I save it says "segmentation-fault".
Any suggestions?
Did you mean /usr/games/adventure? It works well for me.

$ /usr/games/adventure

Welcome to Adventure!! Would you like instructions?

$ cat /etc/slackware-version
Slackware 14.2

$ uname -a
Linux comp 4.4.38 #2 SMP Sun Dec 11 16:18:36 CST 2016 x86_64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz GenuineIntel GNU/Linux
--
Arkadiusz Drabczyk
Arkadiusz Drabczyk
2017-12-03 09:41:58 UTC
Permalink
Raw Message
Post by Arkadiusz Drabczyk
Post by slacker
Slackware 14.2
Colossal Cave Adventures
/usr/games/adventures
I can play, after I save it says "segmentation-fault".
Any suggestions?
Did you mean /usr/games/adventure? It works well for me.
Sorry, I didn't notice you said it crashes during saving.
--
Arkadiusz Drabczyk
Arkadiusz Drabczyk
2017-12-03 09:59:38 UTC
Permalink
Raw Message
It looks like a known problem. I downloaded bsd-games Slackbuild and
source code from source/y, applied patch from Message #12 from
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477768, rebuilt and
was able to save the game:

$ ./adventure/adventure

Welcome to Adventure!! Would you like instructions?
y

Somewhere nearby is Colossal Cave, where others have found fortunes in
treasure and gold, though it is rumored that some who enter are never
seen again. Magic is said to work in the cave. I will be your eyes
and hands. Direct me with commands of 1 or 2 words. I should warn
you that I look at only the first five letters of each word, so you'll
have to enter "northeast" as "ne" to distinguish it from "north".
(Should you get stuck, type "help" for some general hints. For
information on how to end your adventure, etc., type "info".)
- - -
This program was originally developed by
Will Crowther. Most of the
features of the current program were
added by Don Woods. Address
complaints about the UNIX version to Jim
Gillogly (***@rand.org).

You are standing at the end of a road before a small brick building.
Around you is a forest. A small stream flows out of the building and
down a gully.
save
I can suspend your adventure for you so you can resume later, but
you will have to wait at least 45 minutes before continuing.
Is this acceptable?
y

OK
What would you like to call the saved version?
n
To resume, say "adventure n".
"With these rooms I might now have been familiarly acquainted."
--
Arkadiusz Drabczyk
slacker
2017-12-03 19:01:00 UTC
Permalink
Raw Message
Post by Arkadiusz Drabczyk
It looks like a known problem. I downloaded bsd-games Slackbuild and
source code from source/y, applied patch from Message #12 from
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477768, rebuilt and
$ ./adventure/adventure
Welcome to Adventure!! Would you like instructions?
y
Somewhere nearby is Colossal Cave, where others have found fortunes in
treasure and gold, though it is rumored that some who enter are never
seen again. Magic is said to work in the cave. I will be your eyes and
hands. Direct me with commands of 1 or 2 words. I should warn you that
I look at only the first five letters of each word, so you'll have to
enter "northeast" as "ne" to distinguish it from "north". (Should you
get stuck, type "help" for some general hints. For information on how
to end your adventure, etc., type "info".)
- - -
This program was originally developed by
Will Crowther. Most
Post by Arkadiusz Drabczyk
of the features of the current program were
added by Don Woods.
Post by Arkadiusz Drabczyk
Address complaints about the UNIX version
to Jim Gillogly
Post by Arkadiusz Drabczyk
You are standing at the end of a road before a small brick building.
Around you is a forest. A small stream flows out of the building and
down a gully.
save I can suspend your adventure for you so you can resume later, but
you will have to wait at least 45 minutes before continuing.
Is this acceptable?
y
OK What would you like to call the saved version?
n
To resume, say "adventure n".
"With these rooms I might now have been familiarly acquainted."
Great! Your suggestion of applying the patch to adventure/crc.c in bsd-
games-2.13.tar.bz2 from source/y worked for me.

Looks like it's a bug exclusive to 64 bits systems.

save
I can suspend your adventure for you so you can resume later, but
you will have to wait at least 45 minutes before continuing.
Is this acceptable?
yes

OK
What would you like to call the saved version?
game1
To resume, say "adventure game1".
"With these rooms I might now have been familiarly acquainted."


Thanks again!

Loading...