Debian Bug report logs - #740860
zsnes is randomly frozen

version graph

Package: zsnes; Maintainer for zsnes is Debian Games Team <pkg-games-devel@lists.alioth.debian.org>; Source for zsnes is src:zsnes (PTS, buildd, popcon).

Reported by: diego <cuenta_chunga@hotmail.com>

Date: Wed, 5 Mar 2014 16:36:01 UTC

Severity: important

Found in version zsnes/1.510+bz2-6

Fixed in version zsnes/1.510+bz2-7

Done: Etienne Millon <me@emillon.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, cuenta_chunga@hotmail.com, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#740860; Package zsnes. (Wed, 05 Mar 2014 16:36:06 GMT) (full text, mbox, link).


Acknowledgement sent to diego <cuenta_chunga@hotmail.com>:
New Bug report received and forwarded. Copy sent to cuenta_chunga@hotmail.com, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Wed, 05 Mar 2014 16:36:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: diego <cuenta_chunga@hotmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: zsnes is randomly frozen
Date: Wed, 05 Mar 2014 17:32:25 +0100
Package: zsnes
Version: 1.510+bz2-6
Severity: important

Dear Maintainer,

        Playing "Chrono Trigger" (the only one game i have...) the image
freezes, and a part of about 200 miliseconds of the sound is played in a
infinite loop. I have to kill the emulator from a terminal, because neither the
emulator nor the window responds to any action.

        I guess that more information could be useful, but I don't know how to
obtain it. If you say me how to do, the next time the error appears I could
give you more information about it.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zsnes depends on:
ii  libc6                     2.17-97
ii  libgcc1                   1:4.8.2-16
ii  libgl1-mesa-glx [libgl1]  9.2.2-1
ii  libncurses5               5.9+20140118-1
ii  libpng12-0                1.2.50-1
ii  libsdl1.2debian           1.2.15-8
ii  libstdc++6                4.8.2-16
ii  libtinfo5                 5.9+20140118-1
ii  zlib1g                    1:1.2.8.dfsg-1

zsnes recommends no packages.

zsnes suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#740860; Package zsnes. (Wed, 05 Mar 2014 21:42:08 GMT) (full text, mbox, link).


Acknowledgement sent to Etienne Millon <me@emillon.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Wed, 05 Mar 2014 21:42:08 GMT) (full text, mbox, link).


Message #10 received at 740860@bugs.debian.org (full text, mbox, reply):

From: Etienne Millon <me@emillon.org>
To: diego <cuenta_chunga@hotmail.com>, 740860@bugs.debian.org
Subject: Re: Bug#740860: zsnes is randomly frozen
Date: Wed, 5 Mar 2014 22:38:59 +0100
Hi,

I suspect that this is the same as LP#1269676:

https://bugs.launchpad.net/ubuntu/+source/zsnes/+bug/1269676

I could reproduce this bug (with another game) and managed to get a
core dump, but did not investigate deeper.

The two causes I suspect are either a change in binary compatibility
due to hardening (see #727781), or a multiarch issue with SDL.

Thanks for this bug report!

-- 
Etienne Millon



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#740860; Package zsnes. (Sat, 26 Apr 2014 19:21:09 GMT) (full text, mbox, link).


Acknowledgement sent to Cedric Dourneau <cedric.dourneau@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Sat, 26 Apr 2014 19:21:09 GMT) (full text, mbox, link).


Message #15 received at 740860@bugs.debian.org (full text, mbox, reply):

From: Cedric Dourneau <cedric.dourneau@gmail.com>
To: 740860@bugs.debian.org
Subject: Bug#740860: zsnes is randomly frozen
Date: Sat, 26 Apr 2014 21:20:18 +0200
[Message part 1 (text/plain, inline)]
Hi,

It seems there is a type conversion issue in sem_GetTicks. tv_sec is only
"long", and on i386-linux the long arithmetic makes the function return a
very large value after ~2148 seconds.
After that it appears the frame rate limiting code just keeps calling
SDL_SemPost, until it gets to MAX_INT and hangs.

You can systematically add 2140 to now.tv_sec in sem_GetTicks to reproduce
the bug without waiting 35mn.

I generated a patch using the Ubuntu (14.04) package sources, as that's
what I have, but the issue comes from one of the debian patches, and I
think it should apply cleanly.

Regards,
--
Cédric
[Message part 2 (text/html, inline)]
[get_ticks_conversion.patch (text/x-patch, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#740860; Package zsnes. (Sun, 27 Apr 2014 17:33:09 GMT) (full text, mbox, link).


Acknowledgement sent to Etienne Millon <me@emillon.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Sun, 27 Apr 2014 17:33:09 GMT) (full text, mbox, link).


Message #20 received at 740860@bugs.debian.org (full text, mbox, reply):

From: Etienne Millon <me@emillon.org>
To: Cedric Dourneau <cedric.dourneau@gmail.com>, 740860@bugs.debian.org
Subject: Re: Bug#740860: zsnes is randomly frozen
Date: Sun, 27 Apr 2014 19:31:04 +0200
The patch looks good to me. Without the cast, the computation is done
on long arithmetic and the result is extended to unsigned long long.

I'll test it and release a new package if it's fine.

Thanks a lot for the debugging and the patch!

-- 
Etienne Millon



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#740860; Package zsnes. (Tue, 29 Apr 2014 05:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to Fabian Greffrath <fabian@greffrath.com>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Tue, 29 Apr 2014 05:27:05 GMT) (full text, mbox, link).


Message #25 received at 740860@bugs.debian.org (full text, mbox, reply):

From: Fabian Greffrath <fabian@greffrath.com>
To: Etienne Millon <me@emillon.org>, 740860@bugs.debian.org
Cc: Cedric Dourneau <cedric.dourneau@gmail.com>
Subject: Re: Bug#740860: zsnes is randomly frozen
Date: Tue, 29 Apr 2014 07:24:47 +0200
Am Sonntag, den 27.04.2014, 19:31 +0200 schrieb Etienne Millon: 
> The patch looks good to me. Without the cast, the computation is done
> on long arithmetic and the result is extended to unsigned long long.

Indeed, what a good catch!

- Fabian





Added tag(s) pending. Request was from Etienne Millon <me@emillon.org> to control@bugs.debian.org. (Tue, 06 May 2014 08:36:16 GMT) (full text, mbox, link).


Reply sent to Etienne Millon <me@emillon.org>:
You have taken responsibility. (Sat, 10 May 2014 10:04:05 GMT) (full text, mbox, link).


Notification sent to diego <cuenta_chunga@hotmail.com>:
Bug acknowledged by developer. (Sat, 10 May 2014 10:04:05 GMT) (full text, mbox, link).


Message #32 received at 740860-close@bugs.debian.org (full text, mbox, reply):

From: Etienne Millon <me@emillon.org>
To: 740860-close@bugs.debian.org
Subject: Bug#740860: fixed in zsnes 1.510+bz2-7
Date: Sat, 10 May 2014 10:00:18 +0000
Source: zsnes
Source-Version: 1.510+bz2-7

We believe that the bug you reported is fixed in the latest version of
zsnes, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 740860@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Etienne Millon <me@emillon.org> (supplier of updated zsnes package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 06 May 2014 10:15:30 +0200
Source: zsnes
Binary: zsnes zsnes-dbg
Architecture: source i386
Version: 1.510+bz2-7
Distribution: unstable
Urgency: low
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: Etienne Millon <me@emillon.org>
Description: 
 zsnes      - Emulator of the Super Nintendo Entertainment System
 zsnes-dbg  - Emulator of the Super Nintendo Entertainment System - debugging s
Closes: 720941 729969 740860
Changes: 
 zsnes (1.510+bz2-7) unstable; urgency=low
 .
   [ Eshat Cakar ]
   * Remove myself from uploaders.
 .
   [ Etienne Millon ]
   * New patch to fix FTBFS on hurd-i386, thanks to Svante Signell.
     (Closes: #720941)
   * Update my email address.
   * Add zsnes-dbg, a package containing the debugging symbols.
     (Closes: #729969)
   * zsnes-linux-resume-freeze-fix.patch: do arithmetic on unsigned long long.
     Thanks to Cedric Dourneau (Closes: #740860).
   * Fix lintian errors:
   - privacy-breach-w3c-valid (remove links)
   - privacy-breach-donation (replace by DEP12)
   - privacy-breach-logo (remove image tags)
Checksums-Sha1: 
 c4966bf7177e032a81afb0a6c0965c81d24ec013 1530 zsnes_1.510+bz2-7.dsc
 f8528b177acf9d4652c5d019ef5de4fd54721590 26416 zsnes_1.510+bz2-7.debian.tar.xz
 01db171453bccc5c544c058147ed2cb477135672 720052 zsnes_1.510+bz2-7_i386.deb
 b7e66985d77ba06e52aaf853402cc5168ab20c18 896838 zsnes-dbg_1.510+bz2-7_i386.deb
Checksums-Sha256: 
 cb51db9accc3c1b9dc57db0f5e38fa25a975a1f7a63d87376cbc79272107ef46 1530 zsnes_1.510+bz2-7.dsc
 70b4205e328b303183aa527d1e444d720a98473a203b4673e9217858d0096b99 26416 zsnes_1.510+bz2-7.debian.tar.xz
 0d397d0873b68098201bed9de42157102873c52076e9d9030c2b4ead2faa9163 720052 zsnes_1.510+bz2-7_i386.deb
 b7ef1357d5daba1b0cbb5ea9d153e51f96b39b8d10f53273904bcb6c41f6078a 896838 zsnes-dbg_1.510+bz2-7_i386.deb
Files: 
 03a675c429a6695f56ba2a99f1a13fed 720052 otherosfs optional zsnes_1.510+bz2-7_i386.deb
 838203b5ffd8cdf256a1e4922e2a54f0 896838 debug extra zsnes-dbg_1.510+bz2-7_i386.deb
 cbc510a11043d8a82a1636b39d3029bf 1530 otherosfs optional zsnes_1.510+bz2-7.dsc
 1ccb772d4e7362e90b9fe387885a617c 26416 otherosfs optional zsnes_1.510+bz2-7.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlNpa9YACgkQx/UhwSKygsolyACfdQY9ao/YvTfdu/3pyAY2Uf4/
ahkAoIWbLFGPA0eDX6XLNmVKpfdetalI
=lX0j
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 18 Jun 2014 07:32:08 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jan 3 20:33:34 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.