crashes under MacOS Monterey 12.0.1

Issues related to VMProtect
Post Reply
gogo123
Posts: 2
Joined: Tue Oct 26, 2021 4:16 pm

crashes under MacOS Monterey 12.0.1

Post by gogo123 »

hi,
After software encryption, it crashes under MacOS Monterey 12.0.1


Version : demo V3.5.1 build 1343

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process: TestMain [17268]
Path: /Users/USER/Desktop/*/TestMain.app/Contents/MacOS/TestMain
Identifier: com.yourcompany.TestMain
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2021-10-27 00:14:39.8077 +0800
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Anonymous UUID: E7582AC1-7EC8-94D7-5950-A4E794FD6EDD

Sleep/Wake UUID: D7FDB5C8-2BD8-4850-9E72-1627DB5987E1

Time Awake Since Boot: 8800 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000100c2ac3a
Exception Codes: 0x0000000000000001, 0x0000000100c2ac3a
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [17268]

VM Region Info: 0x100c2ac3a is not in any region. Bytes before following region: 197952454
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 10c8f3000-10c8f9000 [ 24K] r-x/rwx SM=COW ...flReadingMain

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x100c2ac3a ???
1 ??? 0x206 ???

Thread 1:
0 libsystem_pthread.dylib 0x7ff81a40b00c start_wqthread + 0

Thread 2:
0 libsystem_pthread.dylib 0x7ff81a40b00c start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000010d594060 rbx: 0x00000000000000da rcx: 0x0000000100000000 rdx: 0x00007ff7b360cb98
rdi: 0x000000000c8f3000 rsi: 0x000000010d530980 rbp: 0x00007ff7b3609b30 rsp: 0x00007ff7b36099b0
r8: 0x00007ff85bbe34f0 r9: 0x0000000000000000 r10: 0x000000010c8f3000 r11: 0x000000010d47cec0
r12: 0x00007ff7b360a0b0 r13: 0x000000010c8f36c8 r14: 0x000000010c8f8d3b r15: 0x000000010d594060
rip: 0x0000000100c2ac3a rfl: 0x0000000000010206 cr2: 0x0000000100c2ac3a

Logical CPU: 1
Error Code: 0x00000014 (no mapping for user instruction read)
Trap Number: 14


Binary Images:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
0x7ff81a409000 - 0x7ff81a414fff libsystem_pthread.dylib (*) <29a2750e-f31b-3630-8761-242a6bc3e99e> /usr/lib/system/libsystem_pthread.dylib

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=841.1M resident=0K(0%) swapped_out_or_unallocated=841.1M(100%)
Writable regions: Total=550.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=550.5M(100%)

VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
. 28K 1
.>uQ 5240K 1
.??? 5800K 1
.g:" 1436K 1
Activity Tracing 256K 1
Kernel Alloc Once 8K 1
MALLOC 156.1M 15
MALLOC guard page 16K 4
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.0M 3
Stack 9232K 3
VM_ALLOCATE 8K 2
__DATA 16.0M 248
__DATA_CONST 10.8M 149
__DATA_DIRTY 484K 84
__FONT_DATA 4K 1
__LINKEDIT 640.5M 11
__OBJC_RO 81.6M 1
__OBJC_RW 3120K 2
__TEXT 200.7M 263
__UNICODE 588K 1
dyld private memory 1028K 2
mapped file 28.3M 2
shared memory 44K 4
=========== ======= =======
TOTAL 1.6G 802
TOTAL, minus reserved VM space 1.2G 802



-----------
Full Report
-----------

{"app_name":"TestMain","timestamp":"2021-10-27 00:14:39.00 +0800","app_version":"","slice_uuid":"b26c6be0-e0c0-3de5-8c6f-cda7e2b6e497","build_version":"","platform":1,"bundleID":"com.yourcompany.TestMain","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"6CCFEAA2-A9F5-4C4C-8E9E-80D95409CF7E","name":"TestMain"}
{
"uptime" : 8800,
"procLaunch" : "2021-10-27 00:14:39.7086 +0800",
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "VMware7,1",
"procStartAbsTime" : 8831291665921,
"coalitionID" : 8716,
"osVersion" : {
"train" : "macOS 12.0.1",
"build" : "21A559",
"releaseType" : "User"
},
"captureTime" : "2021-10-27 00:14:39.8077 +0800",
"incident" : "6CCFEAA2-A9F5-4C4C-8E9E-80D95409CF7E",
"bug_type" : "309",
"pid" : 17268,
"procExitAbsTime" : 8831390161290,
"cpuType" : "X86-64",
"procName" : "TestMain",
"procPath" : "\/Users\/USER\/Desktop\/*\/TestMain.app\/Contents\/MacOS\/TestMain",
"bundleInfo" : {"CFBundleIdentifier":"com.yourcompany.TestMain"},
"storeInfo" : {"deviceIdentifierForVendor":"BF032368-42A1-5820-BE90-4F65DC60FB6C","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.yourcompany.TestMain",
"crashReporterKey" : "E7582AC1-7EC8-94D7-5950-A4E794FD6EDD",
"sleepWakeUUID" : "D7FDB5C8-2BD8-4850-9E72-1627DB5987E1",
"sip" : "enabled",
"vmRegionInfo" : "0x100c2ac3a is not in any region. Bytes before following region: 197952454\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 10c8f3000-10c8f9000 [ 24K] r-x\/rwx SM=COW ...flReadingMain",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000001, 0x0000000100c2ac3a","rawCodes":[1,4307725370],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000100c2ac3a"},
"termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":17268},
"vmregioninfo" : "0x100c2ac3a is not in any region. Bytes before following region: 197952454\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 10c8f3000-10c8f9000 [ 24K] r-x\/rwx SM=COW ...flReadingMain",
"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":96675,"threadState":{"r13":{"value":4505679560},"rax":{"value":4518920288},"rflags":{"value":66054},"cpu":{"value":1},"r14":{"value":4505701691},"rsi":{"value":4518513024},"r8":{"value":140704667809008,"symbolLocation":16,"symbol":"dyld4::gDyld"},"cr2":{"value":4307725370},"rdx":{"value":140701843114904},"r10":{"value":4505677824},"r9":{"value":0},"r15":{"value":4518920288},"rbx":{"value":218},"trap":{"value":14,"description":"(no mapping for user instruction read)"},"err":{"value":20},"r11":{"value":4517777088},"rip":{"value":4307725370,"matchesCrashFrame":1},"rbp":{"value":140701843102512},"rsp":{"value":140701843102128},"r12":{"value":140701843103920},"rcx":{"value":4294967296},"flavor":"x86_THREAD_STATE","rdi":{"value":210710528}},"queue":"com.apple.main-thread","frames":[{"imageOffset":4307725370,"imageIndex":0},{"imageOffset":518,"imageIndex":0}]},{"id":96689,"frames":[{"imageOffset":8204,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":96690,"frames":[{"imageOffset":8204,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]}],
"usedImages" : [
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703569055744,
"size" : 49152,
"uuid" : "29a2750e-f31b-3630-8761-242a6bc3e99e",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
}
],
"sharedCache" : {
"base" : 140703565815808,
"size" : 15215640576,
"uuid" : "b5084610-afe4-3485-bade-628c4468b057"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=841.1M resident=0K(0%) swapped_out_or_unallocated=841.1M(100%)\nWritable regions: Total=550.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=550.5M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \n. 28K 1 \n.>uQ 5240K 1 \n.??? 5800K 1 \n.g:\" 1436K 1 \nActivity Tracing 256K 1 \nKernel Alloc Once 8K 1 \nMALLOC 156.1M 15 \nMALLOC guard page 16K 4 \nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.0M 3 \nStack 9232K 3 \nVM_ALLOCATE 8K 2 \n__DATA 16.0M 248 \n__DATA_CONST 10.8M 149 \n__DATA_DIRTY 484K 84 \n__FONT_DATA 4K 1 \n__LINKEDIT 640.5M 11 \n__OBJC_RO 81.6M 1 \n__OBJC_RW 3120K 2 \n__TEXT 200.7M 263 \n__UNICODE 588K 1 \ndyld private memory 1028K 2 \nmapped file 28.3M 2 \nshared memory 44K 4 \n=========== ======= ======= \nTOTAL 1.6G 802 \nTOTAL, minus reserved VM space 1.2G 802 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "601d9415f79519000ccd4b69",
"factorPackIds" : {
"SIRI_TEXT_TO_SPEECH" : "61704e71b6f6b8421579caf8"
},
"deploymentId" : 240000293
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {

},
"deploymentId" : 240000064
},
{
"rolloutId" : "602ad4dac86151000cf27e46",
"factorPackIds" : {
"SIRI_DICTATION_ASSETS" : "6169fcb10fc7aa5ad211cc7b"
},
"deploymentId" : 240000238
},
{
"rolloutId" : "5fc94383418129005b4e9ae0",
"factorPackIds" : {

},
"deploymentId" : 240000145
},
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {

},
"deploymentId" : 240000008
},
{
"rolloutId" : "607844aa04477260f58a8077",
"factorPackIds" : {
"SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
},
"deploymentId" : 240000066
}
],
"experiments" : [

]
}
}

Model: VMware7,1, BootROM VMW71.00V.18452719.B64.2108091906, 4 processors, Unknown, 3.52 GHz, 16 GB, SMC 1.16f8
Graphics: Display, 128 MB
Display: spdisplays_display, 1024 x 768 (XGA - eXtended Graphics Array), Main, MirrorOff, Online
Memory Module: RAM slot #0/RAM slot #0, 16 GB, DRAM, 0 MHz, VMware Virtual RAM, VMW-16384MB
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: VMware Virtual SATA Hard Drive, 858.99 GB
Serial ATA Device: VMware Virtual SATA CDRW Drive
USB Device: USB20Bus
USB Device: USBBus
USB Device: VMware Virtual USB Hub
USB Device: Virtual Bluetooth Adapter
USB Device: VMware Virtual USB Keyboard
USB Device: VMware Virtual USB Mouse
Thunderbolt Bus:
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: crashes under MacOS Monterey 12.0.1

Post by Admin »

Thank you for your report. We'll check it soon.
gogo123
Posts: 2
Joined: Tue Oct 26, 2021 4:16 pm

Re: crashes under MacOS Monterey 12.0.1

Post by gogo123 »

Admin wrote:Thank you for your report. We'll check it soon.
thank you~~and if you fix ,i will buy the Ultimate version,i am waiting for fix.thank
by the way,it is ok in macOS Big Sur .but crashes under MacOS Monterey 12.0.1
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: crashes under MacOS Monterey 12.0.1

Post by Admin »

Try to switch off the option "Debugger Detection".
coroberti
Posts: 11
Joined: Sat Jul 13, 2019 8:42 pm

Re: crashes under MacOS Monterey 12.0.1

Post by coroberti »

Gentlemen,
This time Rosetta-2 is incompatible with the option:
"Pack the Output File"

Uncheck "Pack the Output File",
and it will not crash for you anymore.

Kind regards,
Robert
coroberti
Posts: 11
Joined: Sat Jul 13, 2019 8:42 pm

Re: crashes under MacOS Monterey 12.0.1

Post by coroberti »

Small correction
"Pack the Output File" - select "No"

Kind regards,
Robert
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: crashes under MacOS Monterey 12.0.1

Post by Admin »

We have tested VMProtect on the latest version of macOS Monterey and it works fine. Could you send us a very simple application (original executable binary + VMP files) that shows your problem?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: crashes under MacOS Monterey 12.0.1

Post by Admin »

We improved compatible with macOS 12 in the latest build (1375):
https://vmpsoft.com/files/VMProtectDemo.dmg
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: crashes under MacOS Monterey 12.0.1

Post by Admin »

We fixed a bug occurs in the demo version for macOS. Please try the fixed build (1387):
https://vmpsoft.com/files/VMProtectDemo.dmg
coroberti
Posts: 11
Joined: Sat Jul 13, 2019 8:42 pm

Re: crashes under MacOS Monterey 12.0.1

Post by coroberti »

1. Working with version 1309 the only issue was not to select Pack,
and it was running properly on Monterey over M1 (with Rosetta).

2. Version 1395, sorry issues both with on Monterey over M1 (with Rosetta) and
on x86

2.1 Version 1395 on Monterey over M1 (with Rosetta):

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 [1034]

Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x10400a5a4 ???
1 libc++abi.dylib 0x7ff8137449c4 operator new(unsigned long) + 52
2 ??? 0x10400a462 ???
3 ??? 0x10409fccf ???
4 MyApp 0x100000000 ???
5 ??? 0xffffa8246c81482a ???

Thread 1:: com.apple.rosetta.exceptionserver
0 runtime 0x7ff7fff0e8e4 0x7ff7fff0a000 + 18660
1 runtime 0x7ff7fff1b928 0x7ff7fff0a000 + 71976
2 runtime 0x7ff7fff1d0a4 0x7ff7fff0a000 + 77988
Thread 2:
0 runtime 0x7ff7fff2c814 0x7ff7fff0a000 + 141332
Thread 3:
0 runtime 0x7ff7fff2c814 0x7ff7fff0a000 + 141332
Thread 4:
0 runtime 0x7ff7fff2c814 0x7ff7fff0a000 + 141332

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00006000029041c0 rbx: 0x000000000000125f rcx: 0x00006000029041c0 rdx: 0x0000000082446804
rdi: 0x000000010d9ae000 rsi: 0x0000000000000004 rbp: 0x0000000308836530 rsp: 0x0000000308836400
r8: 0x0000beaddc3d41c0 r9: 0xfffffffffffc6561 r10: 0x0000000104102cc3 r11: 0x0000000000000004
r12: 0x0000000103b1876e r13: 0x0000000100000000 r14: 0x0000600000204620 r15: 0x0000000100000000
rip: 0x000000010400a5a4 rfl: 0x0000000000000202
tmp0: 0x000000010400a5a4 tmp1: 0xbea359eb6853419a tmp2: 0x004173fff84f53e8

Binary Images:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
0x7ff813733000 - 0x7ff813748fff libc++abi.dylib (*) <c329a806-0b93-316c-af70-7ed211618e8c> /usr/lib/libc++abi.dylib
0x100000000 - 0x103109fff com.MyDomain.MyApp (*) <311dbbd7-c7f0-35c1-a4c5-981b55864a5c> /Applications/MyApp.app/Contents/MacOS/MyApp
0x7ff7fff0a000 - 0x7ff7fff39fff runtime (*) <faca02c7-0a4c-3629-a746-55ddcfee9116> /usr/libexec/rosetta/runtime

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

How to reproduce.
Take any Qt-based GUI application, i.e. richedit/textedit crashes.

2. On x86 - there are clear issue that prevent copying text via clipboard using messages.
Something really weird.

Sorry, but no examples could be provided, it's not an option.

Thanks.
Robert
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: crashes under MacOS Monterey 12.0.1

Post by Admin »

We need a test example (original binary + vmp files) that shows this problem.
coroberti
Posts: 11
Joined: Sat Jul 13, 2019 8:42 pm

Re: crashes under MacOS Monterey 12.0.1

Post by coroberti »

I've tried twice failed to create a small example. Sorry.

What means:
"VM - pmap_enter failed with resource shortage" ?

What are the changes on Mac between 1309 and 1395 that are crapping it?

Thanks,

Robert
Post Reply