Bug#740860: zsnes is randomly frozen

Cedric Dourneau cedric.dourneau at gmail.com
Sat Apr 26 19:20:18 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20140426/2b39ab35/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get_ticks_conversion.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20140426/2b39ab35/attachment.bin>


More information about the Pkg-games-devel mailing list