Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Zsnes freezing midgame

  1. #11
    Join Date
    Feb 2014
    Beans
    2

    Re: Zsnes freezing midgame

    I'm running into this problem too. I ran strace on the hung process; looks like it's hung up in some sort of deadlock:

    Code:
    futex(0x9851848, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x9851848, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x9851848, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
    futex(0x9851848, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x9851848, FUTEX_WAKE_PRIVATE, 1) = 0
    futex(0x9851848, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
    ...
    I'm not really familiar with that system call nor how ZSNES uses it but hopefully a package maintainer can help.

  2. #12
    Join Date
    Feb 2014
    Beans
    2

    Re: Zsnes freezing midgame

    I've kept this hung process alive for a while to do a little more testing. In case you're coming in from a search engine, there's a bug report for this on LaunchPad at:

    https://bugs.launchpad.net/ubuntu/+s...s/+bug/1214241

    I don't know that they provide a zsnes package with debug symbols in it, and I didn't have debug symbols for SDL at the time of execution, but nonetheless through GDB I can see that zsnes is hung up in a call to SDL_SemPost():

    Code:
    (gdb) bt
    #0  0xf76daec4 in SDL_ThreadID () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
    #1  0xf7696290 in ?? () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
    #2  0xf768d46b in SDL_SetError () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
    #3  0xf76db26a in SDL_SemPost () from /usr/lib/i386-linux-gnu/libSDL-1.2.so.0
    #4  0x08303862 in ?? ()
    #5  0x08303ae6 in ?? ()
    #6  0x083006d1 in ?? ()
    I checked out the zsnes source code from that project on SourceForge, and there's only two entry points in that code for SDL_SemPost() in `src/linux/sdllink.c`. I don't know if that helps anyone working on the problem, but maybe it will. That code hasn't changed in years officially (maybe 2007? -- I can't remember), so I wonder if it's changes in the sdl1.2 packages or if Debian/Ubuntu introduced a patch for zsnes since 12.04 -- by the responses on this post between 2.2ubuntu5 and bz2-5ubuntu2. I couldn't find Ubuntu's patches for this so I can't elaborate much.

    I think SDL is zsnes's preferred method of software rendering so I wonder if switching to alternate means of rendering will avoid the problem.

    EDIT:

    Well, at least according to ZSNES's video config I was using OpenGL. I guess maybe they are still using SDL's thread management for cross-compatibility.
    Last edited by paulkilgo; February 24th, 2014 at 03:17 PM. Reason: update

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •