Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xemu all versions crashes on Monterey 12.7.1 #1565

Closed
h4xx97 opened this issue Nov 28, 2023 · 1 comment
Closed

xemu all versions crashes on Monterey 12.7.1 #1565

h4xx97 opened this issue Nov 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@h4xx97
Copy link

h4xx97 commented Nov 28, 2023

Bug Description

Instant crash at launch

Expected Behavior

normal launch with a menu

xemu Version

0.7.117

System Information

MacOS 12.7.1 Monterey
MacPro 5.1 [2010]
2x XEON 5690 @ 3,46Ghz
96Go 1333Mhz DDR3
AMD RADEON VII

Additional Context

INSTANT crash at launch, I ve tried many versions, same thing happen...the older was 0.7.3

i m putting here console error...hope it help
thank you for help

Translated Report (Full Report Below)

Process: xemu [12476]
Path: /private/var/folders/*/xemu.app/Contents/MacOS/xemu
Identifier: xemu.app.0
Version: 0.7.117 (0.7.117)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-11-28 01:53:58.6286 -0400
OS Version: macOS 12.7.1 (21G920)
Report Version: 12
Anonymous UUID: 9C3BD71D-33D6-7216-3EB9-6AFA315C9D8A

Time Awake Since Boot: 33000 seconds

System Integrity Protection: disabled

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

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process: exc handler [12476]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 xemu 0x10d3c7672 CNode::CNode(CNode const&) + 322
1 xemu 0x10d3c751d CNode::CNode(CNode const&) + 29
2 xemu 0x10d3c8a21 void std::__1::allocator::construct<CNode, CNode const&>(CNode*, CNode const&) + 49
3 xemu 0x10d3c89cd void std::__1::allocator_traits<std::__1::allocator >::construct<CNode, CNode const&, void>(std::__1::allocator&, CNode*, CNode const&) + 61
4 xemu 0x10d3c99ba void std::__1::__construct_range_forward<std::__1::allocator, CNode const*, CNode*>(std::__1::allocator&, CNode const*, CNode const*, CNode*&) + 74
5 xemu 0x10d3c98d8 std::__1::enable_if<__is_cpp17_forward_iterator<CNode const*>::value, void>::type std::__1::vector<CNode, std::__1::allocator >::__construct_at_end<CNode const*>(CNode const*, CNode const*, unsigned long) + 88
6 xemu 0x10d3c9807 std::__1::vector<CNode, std::__1::allocator >::vector(std::initializer_list) + 151
7 xemu 0x10d3bb565 std::__1::vector<CNode, std::__1::allocator >::vector(std::initializer_list) + 37
8 xemu 0x10d3cab49 __cxx_global_var_init + 377
9 xemu 0x10d3d1f79 _GLOBAL__sub_I_xemu_settings.cc + 9
10 dyld 0x11482de4f invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 182
11 dyld 0x114854911 invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 129
12 dyld 0x11484be26 invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 557
13 dyld 0x11481adb3 dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 129
14 dyld 0x11484bbb7 dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 179
15 dyld 0x114854342 dyld3::MachOAnalyzer::forEachInitializerPointerSection(Diagnostics&, void (unsigned int, unsigned int, unsigned char const*, bool&) block_pointer) const + 118
16 dyld 0x1148545b4 dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 386
17 dyld 0x11482dd82 dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 144
18 dyld 0x11482df0e dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 178
19 dyld 0x11482dfb2 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 108
20 dyld 0x114841826 dyld4::APIs::runAllInitializersForMain() + 222
21 dyld 0x11481f38d dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3443
22 dyld 0x11481e4e4 start + 388

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007ff7b2b60e40 rbx: 0x00007ff7b2b61930 rcx: 0x0000000000000000 rdx: 0x00007ff7b2b5a888
rdi: 0x00007fbcca7116e0 rsi: 0x0000000000000000 rbp: 0x00007ff7b2b5a9b0 rsp: 0x00007ff7b2b5a900
r8: 0x0000000000000000 r9: 0x0000000000000d72 r10: 0x00000000fffc007f r11: 0x00007ff6a4b00057
r12: 0x00007ff7b2b61e10 r13: 0x000000010d39b7d8 r14: 0x000000010d3d1f70 r15: 0x000000010f4ab060
rip: 0x000000010d3c7672 rfl: 0x0000000000010206 cr2: 0x0000000000000000

Logical CPU: 16
Error Code: 0x00000000
Trap Number: 6

Thread 0 instruction stream:
c7 20 48 8d 75 c8 48 89-b5 60 ff ff ff e8 2c 01 . H.u.H......,. 00 00 48 8b bd 60 ff ff-ff e8 80 33 ff ff 48 8b ..H.......3..H.
75 b0 48 83 c6 78 48 8d-7d c0 e8 2d 86 c8 00 e9 u.H..xH.}..-....
00 00 00 00 48 8b 7d 98-48 83 c7 78 48 8d 75 c0 ....H.}.H..xH.u.
48 89 b5 58 ff ff ff e8-92 35 ff ff 48 8b bd 58 H..X.....5..H..X
ff ff ff e8 e6 35 ff ff-48 8b 7d 98 48 8b 45 b0 .....5..H.}.H.E.
[c5]fa 6f 40 38 c5 fa 7f-47 38 48 8b 75 b0 48 83 ..o@8...G8H.u.H. <==
ee 80 48 83 ef 80 e8 c7-8d c8 00 e9 00 00 00 00 ..H.............
48 8b 7d 98 48 8b 75 b0-48 83 c6 48 48 83 c7 48 H.}.H.u.H..HH..H
e8 a7 8d c8 00 e9 00 00-00 00 48 8b 45 98 48 8b ..........H.E.H.
4d b0 48 8b 91 a0 00 00-00 48 89 90 a0 00 00 00 M.H......H......
48 8b 91 a8 00 00 00 48-89 90 a8 00 00 00 48 8b H......H......H.

Binary Images:
0x10d39b000 - 0x10e326fff xemu.app.0 (0.7.117) /private/var/folders//xemu.app/Contents/MacOS/xemu
0x114819000 - 0x114884fff dyld (
) <771e1916-3a62-34cd-8488-c1021053c7fa> /usr/lib/dyld

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=873.4M resident=0K(0%) swapped_out_or_unallocated=873.4M(100%)
Writable regions: Total=18.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=18.4M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 8K 1
MALLOC 9376K 8
MALLOC guard page 24K 5
STACK GUARD 56.0M 1
Stack 8192K 1
VM_ALLOCATE 8K 2
__DATA 17.8M 259
__DATA_CONST 11.0M 149
__DATA_DIRTY 485K 85
__FONT_DATA 4K 1
__LINKEDIT 663.8M 20
__OBJC_RO 82.9M 1
__OBJC_RW 3200K 2
__TEXT 209.6M 273
__UNICODE 592K 1
dyld private memory 1024K 1
shared memory 8K 1
=========== ======= =======
TOTAL 1.0G 811


Full Report

{"app_name":"xemu","timestamp":"2023-11-28 01:53:58.00 -0400","app_version":"0.7.117","slice_uuid":"ce189cae-bd41-3e99-a7f8-0987b8a6d148","build_version":"0.7.117","platform":1,"bundleID":"xemu.app.0","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.7.1 (21G920)","incident_id":"DD455232-7F44-4895-9F6D-A6D300A642CE","name":"xemu"}
{
"uptime" : 33000,
"procLaunch" : "2023-11-28 01:53:58.5270 -0400",
"procRole" : "Background",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacPro5,1",
"procStartAbsTime" : 33453037464065,
"coalitionID" : 3822,
"osVersion" : {
"train" : "macOS 12.7.1",
"build" : "21G920",
"releaseType" : "User"
},
"captureTime" : "2023-11-28 01:53:58.6286 -0400",
"incident" : "DD455232-7F44-4895-9F6D-A6D300A642CE",
"bug_type" : "309",
"pid" : 12476,
"procExitAbsTime" : 33453138272953,
"cpuType" : "X86-64",
"procName" : "xemu",
"procPath" : "/private/var/folders//xemu.app/Contents/MacOS/xemu",
"bundleInfo" : {"CFBundleShortVersionString":"0.7.117","CFBundleVersion":"0.7.117","CFBundleIdentifier":"xemu.app.0"},
"storeInfo" : {"deviceIdentifierForVendor":"D2EEB19E-DE89-5CE8-9167-9A8C9D259FF1","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "xemu.app.0",
"crashReporterKey" : "9C3BD71D-33D6-7216-3EB9-6AFA315C9D8A",
"sip" : "disabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_INSTRUCTION","signal":"SIGILL"},
"termination" : {"flags":0,"code":4,"namespace":"SIGNAL","indicator":"Illegal instruction: 4","byProc":"exc handler","byPid":12476},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":433764,"instructionState":{"instructionStream":{"bytes":[199,32,72,141,117,200,72,137,181,96,255,255,255,232,44,1,0,0,72,139,189,96,255,255,255,232,128,51,255,255,72,139,117,176,72,131,198,120,72,141,125,192,232,45,134,200,0,233,0,0,0,0,72,139,125,152,72,131,199,120,72,141,117,192,72,137,181,88,255,255,255,232,146,53,255,255,72,139,189,88,255,255,255,232,230,53,255,255,72,139,125,152,72,139,69,176,197,250,111,64,56,197,250,127,71,56,72,139,117,176,72,131,238,128,72,131,239,128,232,199,141,200,0,233,0,0,0,0,72,139,125,152,72,139,117,176,72,131,198,72,72,131,199,72,232,167,141,200,0,233,0,0,0,0,72,139,69,152,72,139,77,176,72,139,145,160,0,0,0,72,137,144,160,0,0,0,72,139,145,168,0,0,0,72,137,144,168,0,0,0,72,139],"offset":96}},"threadState":{"r13":{"value":4516853720},"rax":{"value":140701831925312},"rflags":{"value":66054},"cpu":{"value":16},"r14":{"value":4517076848,"symbolLocation":0,"symbol":"_GLOBAL__sub_I_xemu_settings.cc"},"rsi":{"value":0},"r8":{"value":0},"cr2":{"value":0},"rdx":{"value":140701831899272},"r10":{"value":4294705279},"r9":{"value":3442},"r15":{"value":4551520352},"rbx":{"value":140701831928112},"trap":{"value":6},"err":{"value":0},"r11":{"value":140697301680215},"rip":{"value":4517033586,"matchesCrashFrame":1},"rbp":{"value":140701831899568},"rsp":{"value":140701831899392},"r12":{"value":140701831929360},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":140448826988256}},"queue":"com.apple.main-thread","frames":[{"imageOffset":181874,"symbol":"CNode::CNode(CNode const&)","symbolLocation":322,"imageIndex":0},{"imageOffset":181533,"symbol":"CNode::CNode(CNode const&)","symbolLocation":29,"imageIndex":0},{"imageOffset":186913,"symbol":"void std::__1::allocator::construct<CNode, CNode const&>(CNode
, CNode const&)","symbolLocation":49,"imageIndex":0},{"imageOffset":186829,"symbol":"void std::__1::allocator_traits<std::__1::allocator >::construct<CNode, CNode const&, void>(std::__1::allocator&, CNode*, CNode const&)","symbolLocation":61,"imageIndex":0},{"imageOffset":190906,"symbol":"void std::__1::__construct_range_forward<std::__1::allocator, CNode const*, CNode*>(std::__1::allocator&, CNode const*, CNode const*, CNode*&)","symbolLocation":74,"imageIndex":0},{"imageOffset":190680,"symbol":"std::__1::enable_if<__is_cpp17_forward_iterator<CNode const*>::value, void>::type std::__1::vector<CNode, std::__1::allocator >::__construct_at_end<CNode const*>(CNode const*, CNode const*, unsigned long)","symbolLocation":88,"imageIndex":0},{"imageOffset":190471,"symbol":"std::__1::vector<CNode, std::__1::allocator >::vector(std::initializer_list)","symbolLocation":151,"imageIndex":0},{"imageOffset":132453,"symbol":"std::__1::vector<CNode, std::__1::allocator >::vector(std::initializer_list)","symbolLocation":37,"imageIndex":0},{"imageOffset":195401,"symbol":"__cxx_global_var_init","symbolLocation":377,"imageIndex":0},{"imageOffset":225145,"symbol":"_GLOBAL__sub_I_xemu_settings.cc","symbolLocation":9,"imageIndex":0},{"imageOffset":85583,"symbol":"invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const","symbolLocation":182,"imageIndex":1},{"imageOffset":243985,"symbol":"invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const","symbolLocation":129,"imageIndex":1},{"imageOffset":208422,"symbol":"invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const","symbolLocation":557,"imageIndex":1},{"imageOffset":7603,"symbol":"dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const","symbolLocation":129,"imageIndex":1},{"imageOffset":207799,"symbol":"dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const","symbolLocation":179,"imageIndex":1},{"imageOffset":242498,"symbol":"dyld3::MachOAnalyzer::forEachInitializerPointerSection(Diagnostics&, void (unsigned int, unsigned int, unsigned char const*, bool&) block_pointer) const","symbolLocation":118,"imageIndex":1},{"imageOffset":243124,"symbol":"dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const","symbolLocation":386,"imageIndex":1},{"imageOffset":85378,"symbol":"dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const","symbolLocation":144,"imageIndex":1},{"imageOffset":85774,"symbol":"dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const","symbolLocation":178,"imageIndex":1},{"imageOffset":85938,"symbol":"dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const","symbolLocation":108,"imageIndex":1},{"imageOffset":165926,"symbol":"dyld4::APIs::runAllInitializersForMain()","symbolLocation":222,"imageIndex":1},{"imageOffset":25485,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3443,"imageIndex":1},{"imageOffset":21732,"symbol":"start","symbolLocation":388,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 4516851712,
"CFBundleShortVersionString" : "0.7.117",
"CFBundleIdentifier" : "xemu.app.0",
"size" : 16302080,
"uuid" : "ce189cae-bd41-3e99-a7f8-0987b8a6d148",
"path" : "/private/var/folders/*/xemu.app/Contents/MacOS/xemu",
"name" : "xemu",
"CFBundleVersion" : "0.7.117"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4639002624,
"size" : 442368,
"uuid" : "771e1916-3a62-34cd-8488-c1021053c7fa",
"path" : "/usr/lib/dyld",
"name" : "dyld"
}
],
"sharedCache" : {
"base" : 140703515910144,
"size" : 19331678208,
"uuid" : "fa8f4c4d-c8a4-327d-aced-bc00b7fda3ea"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=873.4M resident=0K(0%) swapped_out_or_unallocated=873.4M(100%)\nWritable regions: Total=18.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=18.4M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nKernel Alloc Once 8K 1 \nMALLOC 9376K 8 \nMALLOC guard page 24K 5 \nSTACK GUARD 56.0M 1 \nStack 8192K 1 \nVM_ALLOCATE 8K 2 \n__DATA 17.8M 259 \n__DATA_CONST 11.0M 149 \n__DATA_DIRTY 485K 85 \n__FONT_DATA 4K 1 \n__LINKEDIT 663.8M 20 \n__OBJC_RO 82.9M 1 \n__OBJC_RW 3200K 2 \n__TEXT 209.6M 273 \n__UNICODE 592K 1 \ndyld private memory 1024K 1 \nshared memory 8K 1 \n=========== ======= ======= \nTOTAL 1.0G 811 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "60186475825c62000ccf5450",
"factorPackIds" : {

  },
  "deploymentId" : 240000068
},
{
  "rolloutId" : "60f8ddccefea4203d95cbeef",
  "factorPackIds" : {

  },
  "deploymentId" : 240000025
}

],
"experiments" : [

]
}
}

@h4xx97 h4xx97 added the bug Something isn't working label Nov 28, 2023
@mborgerson
Copy link
Member

Based on the EXC_BAD_INSTRUCTION exception, I suspect the reason is because the xemu build for macOS on x86-64 is targeting IvyBridge or newer processor models, and your 2011 Xeon CPU doesn't support some of the instructions in the binary.

I'm guessing this is some kind of Hackintosh, so there is not going to be official support for it. But you can try compiling xemu from source, changing this line from ivybridge to native.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants