The Apple M1, ARM/x86 Linux Virtualization, and BOINC

I’m not sure the following are relevant to the above error.

$ qemu-img create -f qcow2 disk.qcow2 10G
[1] 72373 killed qemu-img create -f qcow2 disk.qcow2 10G
$ sudo dmesg

[274698.175621]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0x800000
[274698.222511]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274698.222543]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274698.222555]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274698.222562]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274698.222572]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274698.222578]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274698.269804]: [SPI][HIDSPI]
TX: 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RX: 20 01 00 00 00 00 14 00 10 01 00 D5 00 00 0A 00HID Activity Tickle (type:0 sender:10000087e)
[274698.270391]: PMRD: requestUserActive from AppleHIDTransportHIDDevice (0x10000087e) for kIOHIDSystemActivityTickle nxEvent: 0x5230000
[274698.411384]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274698.840538]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274698.840567]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274698.840573]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274698.840578]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274698.889391]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274698.889426]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274698.889437]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274698.889444]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274698.889449]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274698.889456]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274698.928169]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274699.165363]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.165430]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274699.165442]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.165449]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274699.166788]: Failed to write key 1950826800 to SMC with error code 86Failed to write key 1950826829 to SMC with error code 86Failed to write key 1950826801 to SMC with error code 86Failed to write key 1950829892 to SMC with error code 86Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.208206]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0x800000
[274699.208216]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274699.208221]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274699.208229]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.208234]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x800000 totalAssignedCache: 0x800000
[274699.343449]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.343478]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274699.343482]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.343485]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274699.353945]: [SPI][HIDSPI]
TX: 40 01 00 00 00 00 0C 00 51 01 00 B0 00 00 02 00
RX: 80 11 00 01 81 02 35 09 00 00 00 00 00 00 00 00[SPI][HIDSPI]
TX: AC 27 68 D5
RX: AC 27 68 D5[SPI][HIDSPI]
TX: 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RX: 40 01 00 00 00 00 0A 00 51 01 00 B0 00 00 00 00[SPI][HIDSPI]
TX: 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RX: 80 11 00 01 81 02 35 09 00 00 00 00 00 00 00 00Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.390808]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274699.390819]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.390827]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274699.390833]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274699.390841]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274699.428106]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274699.598858]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.598897]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274699.598908]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.598914]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274699.609409]: TRACER----> updateSlowWifiRxAmpduStats(13665)ChipStats: txba:0
[274699.641482]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.641514]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274699.641525]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.641531]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274699.641536]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274699.641543]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274699.678147]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274699.712522]: [SPI][HIDSPI]
TX: 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RX: 20 01 00 00 00 00 14 00 10 01 00 D6 00 00 0A 00HID Activity Tickle (type:0 sender:10000087e)
[274699.713073]: PMRD: requestUserActive from AppleHIDTransportHIDDevice (0x10000087e) for kIOHIDSystemActivityTickle nxEvent: 0x5230000
[274699.725796]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.725815]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274699.725822]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274699.725826]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274699.772624]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.772652]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274699.772664]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274699.772674]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274699.772679]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274699.772685]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274699.880771]: [SPI][HIDSPI]
TX: 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RX: 20 01 00 00 00 00 14 00 10 01 00 D7 00 00 0A 00HID Activity Tickle (type:0 sender:10000087e)
[274699.881402]: PMRD: requestUserActive from AppleHIDTransportHIDDevice (0x10000087e) for kIOHIDSystemActivityTickle nxEvent: 0x5230000
[274699.978182]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274700.176686]: Failed to write key 1950826800 to SMC with error code 86Failed to write key 1950826829 to SMC with error code 86Failed to write key 1950826801 to SMC with error code 86Failed to write key 1950829892 to SMC with error code 86LQM-WiFi: (5G) rxCrsGlitch=1 rxBphyCrsGlitch=0 rxStart=519 rxBadPLCP=0 rxBphyBadPLCP=0 rxBadFCS=4 rxFifo0Ovfl=0 rxFifo1Ovfl=0 rx_nobuf=0 rxAnyErr=123 rxResponseTimeout=1 rxNoDelim=77 rxFrmTooLong=0 rxFrmTooShort=1
[274700.213595]: LQM-WiFi: (5G) txRTSFrm=21 txRTSFail=0 rxCTSUcast=21 rxRTSUcast=3 txCTSFrm=3 txAMPDU=22 rxBACK=21 txPhyError=0 txAllFrm=73 txMPDU=1 txUcast=32 rxACKUcast=10
[274700.213602]: LQM-WiFi: (5G) rxBeaconMbss=50 rxBeaconObss=0 rxDataUcastMbss=20 rxMgmtUcastMbss=0 rxCNTRLUcast=55 txACKFrm=0 txBACK=17
[274700.213610]: LQM-WiFi: RX AMPDU (5G) rxAmpdu=17 txBACK(Ucode)=17 rxMpduInAmpdu=20 rxholes=0 rxdup=0 rxstuck=0 rxoow=0 rxoos=0 rxaddbareq=0 txaddbaresp=0 rxbar=0 txdelba=0 rxdelba=0 rxQueued=0
[274700.213617]: LQM-WiFi: chan 149 OfdmDesense 0dB
[274700.340240]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274700.340262]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274700.340267]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274700.340271]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274700.396497]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274700.396522]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274700.396533]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274700.396541]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274700.396547]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274700.396555]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274700.428177]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274700.448963]: LQM-WiFi:TX(88:36:6C:20:8B:10) AC BE<22 0 0 0 0 0 0 0 0 0 0> (5001ms)
[274700.448984]: LQM-WiFi:TX(88:36:6C:20:8B:10) AC BK<7 0 0 0 0 0 0 0 0 0 0> (5001ms)
[274700.448997]: LQM-WiFi:TX(88:36:6C:20:8B:10) AC VI<0 0 0 0 0 0 0 0 0 0 0> (5001ms)
[274700.449011]: LQM-WiFi:TX(88:36:6C:20:8B:10) AC VO<1 0 0 0 0 0 0 0 0 0 0> (5001ms)
[274700.449038]: LQM-WiFi:L3 Control VO TX(88:36:6C:20:8B:10) Success=1 NoACK=0 Expired=0 OtherErr=0
[274700.449047]: LQM-WiFi:TX(FF:FF:FF:FF:FF:FF) AC BE<0 0 0 0 0 0 0 0 0 0 0> (5001ms)
[274700.664984]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274700.665016]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274700.665026]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274700.665032]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274700.707241]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274700.707264]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0x800000
[274700.707276]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274700.707281]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274700.707288]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274700.707294]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x800000 totalAssignedCache: 0x800000
[274700.842273]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274700.842287]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274700.842293]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274700.842297]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274700.892219]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274700.892245]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274700.892254]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274700.892276]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274700.892282]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274700.892290]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274700.928205]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274701.031906]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274701.031934]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274701.031944]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274701.031950]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000
[274701.074454]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x400000
[274701.074472]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x0 newSize: 0x100000 totalAssignedCache: 0x500000
[274701.074484]: Quota update for stream kGPU_ParameterBufferWrite. PrevSize: 0x100000 newSize: 0x0 totalAssignedCache: 0x400000
[274701.074490]: Deprioritize on stream kGPU_ParameterBufferWrite on request from client
[274701.074495]: Deprioritize on dsid 21. Offset(0x14050) ← Value(0x2)
[274701.074502]: Quota update for stream kGPU_Reads. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x0
[274701.111498]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x0 newSize: 0x800000 totalAssignedCache: 0x800000
[274701.189894]: Failed to write key 1950826800 to SMC with error code 86Failed to write key 1950826829 to SMC with error code 86Failed to write key 1950826801 to SMC with error code 86Failed to write key 1950829892 to SMC with error code 86[SPI][HIDSPI]
TX: 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RX: 20 01 00 00 00 00 14 00 10 01 00 D8 00 00 0A 00HID Activity Tickle (type:0 sender:10000087e)
[274701.303073]: PMRD: requestUserActive from AppleHIDTransportHIDDevice (0x10000087e) for kIOHIDSystemActivityTickle nxEvent: 0x5230000
[274701.318643]: Quota update for stream kGPU_Reads. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274701.318652]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x800000 newSize: 0x400000 totalAssignedCache: 0x800000
[274701.318657]: Quota update for stream kGPU_RenderTargetND. PrevSize: 0x0 newSize: 0x400000 totalAssignedCache: 0xc00000
[274701.318661]: Quota update for stream kDisplay_FBReplay. PrevSize: 0x400000 newSize: 0x0 totalAssignedCache: 0x800000

I additionally added the crash log for the above process 72373.

$ sudo log show --predicate ‘eventMessage LIKE “qemu”’ --debug
ntID Dirty: 1 Event: com.apple.stability.crash {“appVersion”:"???",“exceptionType”:1,“logwritten”:1,“process”:“qemu-img”,“responsibleApp”:“iTerm2”,“timestamp”:1614666875993238}
2021-03-02 15:36:52.728210+0900 0xfb308 Default 0x0 0 0 kernel: CODE SIGNING: cs_invalid_page(0x102930000): p=72373[qemu-img] final status 0x23000200, denying page sending SIGKILL
2021-03-02 15:36:52.728222+0900 0xfb308 Default 0x0 0 0 kernel: CODE SIGNING: process 72373[qemu-img]: rejecting invalid page at address 0x102930000 from offset 0x0 in file “/opt/homebrew/Cellar/libssh/0.9.5_1/lib/libssh.4.8.6.dylib” (cs_mtime:1614297740.413435328 == mtime:1614297740.413435328) (signed:1 validated:1 tainted:1 nx:0 wpmapped:0 dirty:0 depth:0)
2021-03-02 15:36:52.728477+0900 0xfab09 Default 0x0 919 0 ReportCrash: Parsing corpse data for process qemu-img [pid 72373]
2021-03-02 15:36:52.884736+0900 0xfab09 Default 0x0 919 0 ReportCrash: (CrashReporterSupport) Saved crash report for qemu-img[72373] version 0 to qemu-img_2021-03-02-153652_.crash

$ sudo cat /Users//Library/Logs/DiagnosticReports/qemu-img_2021-03-02-153652_.crash
Process: qemu-img [72373]
Path: /opt/homebrew/*/qemu-img
Identifier: qemu-img
Version: 0
Code Type: ARM-64 (Native)
Parent Process: zsh [67484]
Responsible: iTerm2 [556]
User ID: 501

Date/Time: 2021-03-02 15:36:52.710 +0900
OS Version: macOS 11.2.2 (20D80)
Report Version: 12
Anonymous UUID: AF87D5F0-2BED-EB72-1DC8-26F63A24DA7C

Sleep/Wake UUID: 3862EA39-132E-42BD-A4BB-5A36F36607F1

Time Awake Since Boot: 89000 seconds
Time Since Wake: 520 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x0000000102930000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace CODESIGNING, Code 0x2

kernel messages:

VM Regions Near 0x102930000:
__LINKEDIT 102908000-102930000 [ 160K] r–/r-- SM=COW /opt/homebrew/*
→ mapped file 102930000-102934000 [ 16K] r–/r-x SM=PRV Object_id=fc8cc3db
__TEXT 1029bc000-102a38000 [ 496K] r-x/r-x SM=COW /usr/lib/dyld

Application Specific Information:
dyld: launch, loading dependent libraries
/opt/homebrew/opt/libssh/lib/libssh.4.dylib

Thread 0 Crashed:
0 dyld 0x0000000102a18780 bcmp + 16
1 dyld 0x00000001029d9408 ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int, unsigned char const*, unsigned long, long long, ImageLoader::LinkContext const&) + 136
2 dyld 0x00000001029e03b8 ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, encryption_info_command const*, ImageLoader::LinkContext const&) + 268
3 dyld 0x00000001029d7ffc ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) + 172
4 dyld 0x00000001029c0290 dyld::loadPhase6(int, stat const&, char const*, dyld::LoadContext const&) + 668
5 dyld 0x00000001029c8dd8 dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >) + 1328
6 dyld 0x00000001029c8824 dyld::loadPhase4(char const
, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >) + 208
7 dyld 0x00000001029c8530 dyld::loadPhase3(char const
, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >) + 1100
8 dyld 0x00000001029c7cf0 dyld::loadPhase1(char const
, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >) + 212
9 dyld 0x00000001029bfe0c dyld::loadPhase0(char const
, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >) + 468
10 dyld 0x00000001029bf9b0 dyld::load(char const
, dyld::LoadContext const&, unsigned int&) + 196
11 dyld 0x00000001029c977c dyld::libraryLocator(char const*, bool, char const*, ImageLoader::RPathChain const*, unsigned int&) + 56
12 dyld 0x00000001029d39d4 ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, ImageLoader::RPathChain const&, char const*) + 344
13 dyld 0x00000001029d21ac ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, bool, ImageLoader::RPathChain const&, char const*) + 160
14 dyld 0x00000001029c25f4 dyld::link(ImageLoader*, bool, bool, ImageLoader::RPathChain const&, unsigned int) + 328
15 dyld 0x00000001029c4928 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 6764
16 dyld 0x00000001029bd258 dyldbootstrap::start(dyld3::MachOLoaded const*, int, char const**, dyld3::MachOLoaded const*, unsigned long*) + 476
17 dyld 0x00000001029bd038 _dyld_start + 56

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000102930000 x1: 0x000000016d6297c0 x2: 0x0000000000000850 x3: 0x0000000000040001
x4: 0x0000000000000003 x5: 0x0000000000000000 x6: 0x0000000102a40280 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x000000016d629ea8 x10: 0x0000000000000001 x11: 0x0001803000000000
x12: 0x0000000000000032 x13: 0x0004000000000000 x14: 0x0000000000062530 x15: 0x000000016d629e28
x16: 0x00000000000000c5 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000102a45cc0
x20: 0x0000000000000860 x21: 0x000000016d6297c0 x22: 0x0000000102930000 x23: 0x0000000000000003
x24: 0x000000016d62a010 x25: 0x000000016d6318d8 x26: 0x00000001027cc970 x27: 0x000000016d6297c0
x28: 0x0000000000000004 fp: 0x000000016d6291c0 lr: 0x00000001029d9408
sp: 0x000000016d629180 pc: 0x0000000102a18780 cpsr: 0x20000000
far: 0x0000000102930000 esr: 0x92000007

Binary Images:
0x1027cc000 - 0x1028ebfff +qemu-img (0) /opt/homebrew//qemu-img
0x1029bc000 - 0x102a37fff dyld (832.7.3) <4AB185B3-DC20-3C03-A193-67C0E6C589D7> /usr/lib/dyld
0x102ac0000 - 0x102bbffff +libglib-2.0.0.dylib (0) /opt/homebrew/
/libglib-2.0.0.dylib
0x102bf4000 - 0x102d1bfff +libgnutls.30.dylib (0) <74A67886-3907-3E35-B0A3-8A5798F97283> /opt/homebrew/*/libgnutls.30.dylib
0x191db9000 - 0x192262fff com.apple.CoreFoundation (6.9 - 1774.101) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x1944af000 - 0x194579fff com.apple.framework.IOKit (2.0.2 - 1845.81.1) <516911DA-18D7-3D17-8646-BBF7C75CD070> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x19b3b6000 - 0x19b3b7fff libSystem.B.dylib (1292.60.1) /usr/lib/libSystem.B.dylib
0x19b635000 - 0x19b639fff libpam.2.dylib (28.40.1) /usr/lib/libpam.2.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: 81731
thread_create: 0
thread_set_state: 8

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

                            VIRTUAL   REGION

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8176K 1
__AUTH 7K 2
__AUTH_CONST 926K 4
__DATA 371K 10
__DATA_CONST 2209K 7
__DATA_DIRTY 32K 2
__LINKEDIT 480.3M 6
__OBJC_CONST 28K 2
__TEXT 9472K 8
__UNICODE 588K 1
mapped file 16K 1
=========== ======= =======
TOTAL 557.6M 45

I assume you’ve checked and you have more than 10GB available on whatever disk/partition you’re writing to.

@bombcar
I think there is enough space in my laptop. Isn’t it?

$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk3s1s1 460Gi 14Gi 229Gi 6% 568975 4827407545 0% /
devfs 351Ki 351Ki 0Bi 100% 1214 0 100% /dev
/dev/disk3s6 460Gi 1.0Gi 229Gi 1% 1 4827976519 0% /System/Volumes/VM
/dev/disk3s2 460Gi 397Mi 229Gi 1% 1136 4827975384 0% /System/Volumes/Preboot
/dev/disk3s4 460Gi 4.1Mi 229Gi 1% 46 4827976474 0% /System/Volumes/Update
/dev/disk1s2 500Mi 6.0Mi 482Mi 2% 3 5119997 0% /System/Volumes/xarts
/dev/disk1s1 500Mi 7.0Mi 482Mi 2% 34 5119966 0% /System/Volumes/iSCPreboot
/dev/disk1s3 500Mi 664Ki 482Mi 1% 37 5119963 0% /System/Volumes/Hardware
/dev/disk3s5 460Gi 215Gi 229Gi 49% 2029730 4825946790 0% /System/Volumes/Data
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home

It looks like it, but hard to dell as the formatting is lost.

And looking at the dump I see:

2021-03-02 15:36:52.728222+0900 0xfb308 Default 0x0 0 0 kernel: CODE SIGNING: process 72373[qemu-img]: rejecting invalid page at address 0x102930000 from offset 0x0 in file “/opt/homebrew/Cellar/libssh/0.9.5_1/lib/libssh.4.8.6.dylib

Something is wrong with code signing or similar.

@bombcar
Yes, I also assume that it’s something wrong. But I can not investigate this problem in detail and resolve it by myself. Please help.

Welcome to the bleeding edge. It tends to be broken in weird ways. I’ve not rebuilt my qemu, nor do I make heavy use of it after experimenting…

You might try UTM - it looks like a packaged version of qemu that should support hardware virtualization.

1 Like

@Syonyk
Thanks for your comments.
I have submitted a bug report in qemu bug report site and I’m also trying to create VM with UTM, too.