kallisti5/sheepshear — pull request #7 by amade (2012-06-18 15:23:39+00:00)
Title: Fix SDL crashing emulator

Only tested on 64bit linux

When I do ./configure --enable-sdl-video --enable-sdl-audio SheepShaver
crashes sooner or later after being started (usually before even ending
booting). I narrowed it down to be caused by changing cursors.

Some example of crashes:

SheepShaver V2.3 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/alsa audio output
Detected CPU features: MMX SSE SSE2 SSE3 SSSE3
PowerPC CPU emulator by Gwenole Beauchesne
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)
SheepShaver: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Illegal instruction at 00002400, opcode = 000108c4
zsh: abort ./SheepShaver

SheepShaver V2.3 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/alsa audio output
Detected CPU features: MMX SSE SSE2 SSE3 SSSE3
PowerPC CPU emulator by Gwenole Beauchesne
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)
SheepShaver: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
SIGSEGV
pc 0x45fc36
ea 0x3dbc
r0 03e00000 r1 01bffe00 r2 00000000 r3 00000000
r4 41a67ab6 r5 00000000 r6 00000028 r7 000000b8
r8 00000020 r9 00000000 r10 00000000 r11 00000001
r12 0000e38e r13 0000ffff r14 00000000 r15 499a0000
r16 419c54ea r17 4d997082 r18 4d997082 r19 41ab9cbc
r20 4d997028 r21 4d9a2190 r22 41ab9cac r23 00000000
r24 41a67ab6 r25 00000000 r26 fffffffe r27 000021ee
r28 41b3df34 r29 51ed1170 r30 51e60000 r31 68fff000
f0 0.00000 f1 0.00000 f2 0.00000 f3 0.00000
f4 0.00000 f5 0.00000 f6 0.00000 f7 0.00000
f8 0.00000 f9 0.00000 f10 0.00000 f11 0.00000
f12 0.00000 f13 0.00000 f14 0.00000 f15 0.00000
f16 0.00000 f17 0.00000 f18 0.00000 f19 0.00000
f20 0.00000 f21 0.00000 f22 0.00000 f23 0.00000
f24 0.00000 f25 0.00000 f26 0.00000 f27 0.00000
f28 0.00000 f29 0.00000 f30 0.00000 f31 0.00000
lr 51e6d6e0 ctr 00000000 cr 40000088 xer 00000000
pc 00003dbc fpscr 00000000
0x 3d9c: zsh: segmentation fault ./SheepShaver

Configured with is a bit more informative
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf

SheepShaver V2.3 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/alsa audio output
Detected CPU features: MMX SSE SSE2 SSE3 SSSE3
PowerPC CPU emulator by Gwenole Beauchesne
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)
WARNING: Unknown DiskStatus(6)
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been
+called
[xcb] Aborting, sorry about that.
SheepShaver:
+/var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/xcb_io.c:178:
+dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
zsh: abort ./SheepShaver