Bug 77032 - adventure from bsd-games-2.13 segfaults on amd64 when saving the game
Bug#: 77032 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: levertond@googlemail.com
Component: Games
URL: 
Summary: adventure from bsd-games-2.13 segfaults on amd64 when saving the game
Keywords:  
Status Whiteboard: 
Opened: 2005-01-07 08:18 0000
Description:   Opened: 2005-01-07 08:18 0000
The 'adventure' game from the games-misc/bsd-games-2.13 package crashes when
saving the game on AMD64 (and probably other 64-bit systems, but I haven't
checked).

Reproducible: Always
Steps to Reproduce:
1. Start a game of adventure on an AMD64 system.
2. Type "no" in response to the question about instructions.
3. Type "save".
4. Enter a filename.

Actual Results:  
The game crashes with a segmentation fault.

Expected Results:  
The game saves and exits normally.

Patch coming....

------- Comment #1 From David Leverton 2005-01-07 08:20:02 0000 -------
Created an attachment (id=47855) [details]
Patch for the game itself
(games-misc/bsd-games/files/bsdgames-2.13-64bit-gentoo.diff)

------- Comment #2 From David Leverton 2005-01-07 08:23:12 0000 -------
Created an attachment (id=47856) [details]
Patch for the ebuild (bsd-games-2.13.ebuild -> bsd-games-2.13-r1.ebuild)

Some comments:
1) The patch for the game is only applied on AMD64 systems - it shouldn't hurt
others, but just to be safe....
2) KEYWORDS only contains "~amd64", since it doesn't change anything on other
arches, so no need to make them upgrade.

------- Comment #3 From SpanKY 2005-01-09 21:19:05 0000 -------
patch seemed to work fine on x86 too so ive added 2.13-r1 with it

thanks !