You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mac M1/Monterey SIGKILL with exit code 137 (Code Signature Invalid) #40827
I'm getting the same behaviour when importing a native add-on I'm building with Rust (neon). The first time I compile the add-on and run it, it works. However if I recompile after changing anything (e.g. the contents of a string literal) and try to require() it, node crashes.
If I restart my machine after recompiling, it works fine. However this means I need to restart every time I make changes, which isn't ideal.
Turns out code signatures are a strict requirement for running ARM binaries on M1 Macs. I resolved my issue by signing the Rust binary with an ad-hoc signature with codesign -s - index.node.
Given @lukas2's issue is also to do with code signatures on an M1 Mac, I'd say it's fairly likely the same issue and as such probably not related to Node.
I am getting this issue when starting Eclipse IDE on mac m1. Yesterday it was working suddenly it is giving me this error. Can any help what will be the issue.
Activity
Ayase-252 commentedon Nov 17, 2021
Thanks for reporting, could you provide a minimal repro to the issue?
p-ackland commentedon Dec 17, 2021
I'm getting the same behaviour when importing a native add-on I'm building with Rust (neon). The first time I compile the add-on and run it, it works. However if I recompile after changing anything (e.g. the contents of a string literal) and try to
require()it, node crashes.If I restart my machine after recompiling, it works fine. However this means I need to restart every time I make changes, which isn't ideal.
I have tried on both
v16.13.0andv17.1.0I'm also running on ARM MacOS 12.1
This is the crash report:
p-ackland commentedon Dec 20, 2021
Turns out code signatures are a strict requirement for running ARM binaries on M1 Macs. I resolved my issue by signing the Rust binary with an ad-hoc signature with
codesign -s - index.node.Given @lukas2's issue is also to do with code signatures on an M1 Mac, I'd say it's fairly likely the same issue and as such probably not related to Node.
Bobronium commentedon May 24, 2022
In OpenBoardView/OpenBoardView#239 (comment) i had to add
--deepargument tocodesignto get it working:Mentioning it here since this issue is on the top of search results for
SIGKILL with exit code 137 (Code Signature Invalid).rudragthite commentedon Jan 31, 2023
I am getting this issue when starting Eclipse IDE on mac m1. Yesterday it was working suddenly it is giving me this error. Can any help what will be the issue.
Translated Report (Full Report Below)
Incident Identifier: 21518B23-4B76-43E2-B75F-908B5838FAC2
CrashReporter Key: D6CB977D-9D80-5ED2-19EC-EF2806ACF3B4
Hardware Model: MacBookAir10,1
Process: eclipse [1063]
Path: /Applications/Eclipse.app/Contents/MacOS/eclipse
Identifier: org.eclipse.platform.ide
Version: 4.24.0 (4.24.0.I20220607-0700)
Code Type: X86-64 (Native)
Role: Default
Parent Process: launchd [1]
Coalition: org.eclipse.platform.ide [869]
Date/Time: 2023-01-31 14:43:43.9396 +0530
Launch Time: 2023-01-31 14:43:43.8537 +0530
OS Version: macOS 13.1 (22C65)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 1 Taskgated Invalid Signature
Triggered by Thread: 0
Thread 0 Crashed:
0 0x7ff7ffd5d75c 0x7ff7ffd5a000 + 14172
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000000000000000
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000000 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x0000000000000000 lr: 0x0000000000000000
sp: 0x000000020c392bc8 pc: 0x00007ff7ffd5d75c cpsr: 0x00001000
far: 0x0000000000000000 esr: 0x00000000 Address size fault
Binary Images:
0x7ff7ffd5a000 - 0x7ff7ffd89fff (*) ???
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
EOF
Full Report
{"app_name":"eclipse","timestamp":"2023-01-31 14:43:43.00 +0530","app_version":"4.24.0","slice_uuid":"bf0baa93-fe7a-3039-ac22-e0007dc821f4","build_version":"4.24.0.I20220607-0700","platform":0,"bundleID":"org.eclipse.platform.ide","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"name":"eclipse","incident_id":"21518B23-4B76-43E2-B75F-908B5838FAC2"}
{
"uptime" : 420,
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookAir10,1",
"coalitionID" : 869,
"osVersion" : {
"train" : "macOS 13.1",
"build" : "22C65",
"releaseType" : "User"
},
"captureTime" : "2023-01-31 14:43:43.9396 +0530",
"incident" : "21518B23-4B76-43E2-B75F-908B5838FAC2",
"pid" : 1063,
"translated" : true,
"cpuType" : "X86-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2023-01-31 14:43:43.8537 +0530",
"procStartAbsTime" : 10084674870,
"procExitAbsTime" : 10086716220,
"procName" : "eclipse",
"procPath" : "/Applications/Eclipse.app/Contents/MacOS/eclipse",
"bundleInfo" : {"CFBundleShortVersionString":"4.24.0","CFBundleVersion":"4.24.0.I20220607-0700","CFBundleIdentifier":"org.eclipse.platform.ide"},
"storeInfo" : {"deviceIdentifierForVendor":"1635F983-B847-566E-865C-E6FA64E518C5","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "org.eclipse.platform.ide",
"crashReporterKey" : "D6CB977D-9D80-5ED2-19EC-EF2806ACF3B4",
"throttleTimeout" : 2147483647,
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"},
"termination" : {"flags":66,"code":1,"namespace":"CODESIGNING","indicator":"Taskgated Invalid Signature"},
"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":12364,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":8795007944},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":140703125854044,"matchesCrashFrame":1},"far":{"value":0}},"frames":[{"imageOffset":14172,"imageIndex":0}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64",
"base" : 140703125839872,
"size" : 196608,
"uuid" : "d592bc4a-4a21-348f-a406-e12f9cd2f27c",
"name" : ""
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=1132K resident=0K(0%) swapped_out_or_unallocated=1132K(100%)\nWritable regions: Total=23.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=23.4M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE 15.4M 6 \n__DATA 80K 3 \n__DATA_CONST 32K 1 \n__DATA_DIRTY 16K 1 \n__LINKEDIT 352K 4 \n__TEXT 800K 2 \nmapped file 6.6G 33 \n=========== ======= ======= \nTOTAL 6.7G 52 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {
],
"experiments" : [
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}
Model: MacBookAir10,1, BootROM 8419.60.44, proc 8:4:4 processors, 8 GB, SMC
Graphics: Apple M1, Apple M1, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: LPDDR4, Micron
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4378), wl0: Sep 3 2022 03:37:22 version 18.20.379.4.7.8.143 FWID 01-e3c71b50
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.
bnoordhuis commentedon Jan 31, 2023
I'll convert this to a discussion since it's not strictly speaking a node bug.