[email protected]
[Top] [All Lists]

Bug#477768: marked as forwarded (adventure: segfaults when saving)

Subject: Bug#477768: marked as forwarded adventure: segfaults when saving
From: Debian Bug Tracking System
Date: Fri, 25 Apr 2008 19:48:11 +0000
Your message dated Fri, 25 Apr 2008 15:43:52 -0400
with message-id <[email protected]>
has caused the   report #477768,
regarding adventure: segfaults when saving
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]

477768: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477768
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Subject: Re: Bug#477768: adventure: segfaults when saving
From: Joey Hess
Date: Fri, 25 Apr 2008 15:43:52 -0400
It fails on amd64 and probably other 64 bit architectures because
adventure's crc code does some bit banging that makes assumptions about
data type sizes. In particular, it assumes that a long is 32 bits wide,

                        if (!(i = crcval >> 24 ^ *p)) {

The right value for a 64 bit arch would be, I think, 56. (And with that
change the crash is vanquished on amd64.) John, the attached patch seems
to work, but bit banging is not exactly my specialty, and I'm not sure
if it will generate the same crcs on 64 bit systems as would be
generated on 32 bit.

Peter De Wachter wrote:
> Package: bsdgames
> Version: 2.17-14
> Severity: important
> Welcome to Adventure!!  Would you like instructions?
> > no
> 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?
> > yes
> OK
> What would you like to call the saved version?
> > adventure.save
> Segmentation fault
> -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core)
> Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Versions of packages bsdgames depends on:
> ii  libc6                     2.7-10         GNU C Library: Shared libraries
> ii  libgcc1                   1:4.3.0-3      GCC support library
> ii  libncurses5               5.6+20080419-1 Shared libraries for terminal 
> hand
> ii  libstdc++6                4.3.0-3        The GNU Standard C++ Library v3
> ii  wamerican [wordlist]      6-2.1          American English dictionary 
> words 
> ii  wdutch [wordlist]         1:1.00-2       list of Dutch words
> bsdgames recommends no packages.
> -- no debconf information

see shy jo

Attachment: 64-bit.patch
Description: Text Data

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#477768: marked as forwarded (adventure: segfaults when saving), Debian Bug Tracking System <=