SheepShaver crashing on OS X 10.11.3 when JIT is disabled

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
MichaelKlaube
Inquisitive Elf
Posts: 29
Joined: Mon Nov 16, 2015 6:12 pm

SheepShaver crashing on OS X 10.11.3 when JIT is disabled

Post by MichaelKlaube »

When I delete the PRAM it starts once but not afterwards subsequently until I delete the PRAM again.

Note that all check boxes on the CPU Options are OFF!!!

I need this configuration to play Tie Fighter without hangs and freezes:)
MichaelKlaube
Inquisitive Elf
Posts: 29
Joined: Mon Nov 16, 2015 6:12 pm

Re: SheepShaver crashing on OS X 10.11.3 when JIT is disable

Post by MichaelKlaube »

Just rechecked: delete PRAM doesn't do anything on this bug.

Without the JIT SheepShaver stops on loading the Mac OS.

:(
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver crashing on OS X 10.11.3 when JIT is disable

Post by Ronald P. Regensburg »

You should at least have "Ignore Illegal Memory Accesses" enabled.

CPU Options (in latest SheepShaver build):

"Enable JIT Compiler"
Not sure if disabling this one solves the freezes. With JIT Compiler disabled, SheepShaver becomes very slow.

"Allow Emulated CPU to Idle"
Can be disabled.

"Enable buit-in 68k DR Emulator"
Should be kept disabled.

"Ignore Illegal Instructions"
You can try if enabling/disabling makes a difference. Some report SheepShaver to be more stable when enabled, but I myself see no negative effects when this option is disabled.

"Ignore Illegal Memory Accesses"
This one needs to be enabled! When disabled, SheepShaver becomes very unstable.
MichaelKlaube
Inquisitive Elf
Posts: 29
Joined: Mon Nov 16, 2015 6:12 pm

Re: SheepShaver crashing on OS X 10.11.3 when JIT is disable

Post by MichaelKlaube »

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000db000000
Exception Note: EXC_CORPSE_NOTIFY

VM Regions Near 0xdb000000:
Stack 00000000bf800000-00000000c0000000 [ 8192K] rw-/rwx SM=PRV
-->
Submap 00000000ffff0000-00000000ffff1000 [ 4K] r--/r-- SM=PRV process-only VM submap

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 SheepShaver 0x780d1c49 powerpc_cpu::execute(unsigned int) + 361
1 SheepShaver 0x780d4efa emul_ppc(unsigned int) + 26
2 SheepShaver 0x7808ab4a SDL_main + 2954
3 SheepShaver 0x78072fa2 -[SDLMain applicationDidFinishLaunching:] + 66
4 com.apple.Foundation 0x968712f2 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_2 + 50
5 com.apple.CoreFoundation 0x910d0d14 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
6 com.apple.CoreFoundation 0x910d0c5b ___CFXRegistrationPost_block_invoke + 75
7 com.apple.CoreFoundation 0x910d022c _CFXRegistrationPost + 460
8 com.apple.CoreFoundation 0x910cff66 ___CFXNotificationPost_block_invoke + 54
9 com.apple.CoreFoundation 0x910c99f3 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1715
10 com.apple.CoreFoundation 0x90fa5e22 _CFXNotificationPost + 626
11 com.apple.Foundation 0x966ec1c5 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
12 com.apple.AppKit 0x9df58574 -[NSApplication _postDidFinishNotification] + 436
13 com.apple.AppKit 0x9df5822e -[NSApplication _sendFinishLaunchingNotification] + 249
14 com.apple.AppKit 0x9df55146 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 783
15 com.apple.AppKit 0x9df54a9b -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 291
16 libobjc.A.dylib 0x98919db2 -[NSObject performSelector:withObject:withObject:] + 84
17 com.apple.Foundation 0x96720e78 __76-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke + 118
18 com.apple.Foundation 0x967209dd -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 451
19 com.apple.Foundation 0x967207d8 _NSAppleEventManagerGenericHandler + 211
20 com.apple.AE 0x9766b251 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 595
21 com.apple.AE 0x9763cc75 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
22 com.apple.AE 0x9763cb88 aeProcessAppleEvent + 299
23 com.apple.HIToolbox 0x9b58b85a AEProcessAppleEvent + 55
24 com.apple.AppKit 0x9df4ea64 _DPSNextEvent + 2415
25 com.apple.AppKit 0x9e3590b0 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1057
26 com.apple.AppKit 0x9df4df8b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 121
27 com.apple.AppKit 0x9df4312f -[NSApplication run] + 1063
28 SheepShaver 0x7807368c main + 1436
29 SheepShaver 0x78055686 _start + 216
30 SheepShaver 0x780555ad start + 41
MichaelKlaube
Inquisitive Elf
Posts: 29
Joined: Mon Nov 16, 2015 6:12 pm

Re: SheepShaver crashing on OS X 10.11.3 when JIT is disable

Post by MichaelKlaube »

Posted the crash report.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver crashing on OS X 10.11.3 when JIT is disable

Post by Ronald P. Regensburg »

This is a known issue with the way SheepShaver uses memory.

From the "Known issues" section of our setup manual:
Crash at startup
On some host machines and/or with some configurations in the installed Mac OS system, SheepShaver will crash during Mac OS startup. In Console log you will then typically find, among the lines that refer to SheepShaver, a line that ends with “SIGSEGV”. (View the log with Console application in /Applications/Utilities/)

The exact cause of the crash is not known, but in most cases it can be prevented by checking “Ignore Illegal Memory Accesses” in Miscellaneous tab in SheepShaver preferences as advised in the configuration directions above. When it is impossible to start SheepShaver because of the crash, you can change preferences settings with the stand-alone preferences editor:

Download: http://www.xs4all.nl/~ronaldpr/sheepsha ... rPrefs.zip
MichaelKlaube
Inquisitive Elf
Posts: 29
Joined: Mon Nov 16, 2015 6:12 pm

Re: SheepShaver crashing on OS X 10.11.3 when JIT is disable

Post by MichaelKlaube »

Thanks for insight, and sorry to stress well known things just because of inability to read :)
Greets!
Post Reply