Skip to content

Mac M1/Monterey SIGKILL with exit code 137 (Code Signature Invalid) #40827

Closed

Description

@lukas2

Version

v16.13.0

Platform

21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64

Subsystem

No response

What steps will reproduce the bug?

I Run typescript tests in CLion. It sometimes, not always, crashes with

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

Afterwards it sometimes randomly works again, most often I have to restart the computer to continue work.

How often does it reproduce? Is there a required condition?

Sometimes

What is the expected behavior?

No Crash

What do you see instead?

No Crash

Additional information

I see this in the log console when it happens:

Sending event: com.apple.stability.crash {"exceptionCodes":"0x0000000000000032, 0x0000000121800000(\n    50,\n    4857004032\n)EXC_BAD_ACCESSSIGKILL (Code Signature Invalid)UNKNOWN_0x32 at 0x0000000121800000","incidentID":"9F8F1592-4451-4035-86A1-9C0F5EC23BD9","logwritten":1,"process":"node","responsibleApp":"clion","terminationReasonExceptionCode":"0x2","terminationReasonNamespace":"CODESIGNING”}

Interestingly I also sometimes get pointer authentication failure, which seems unrelated..

Activity

  1. added
    armIssues and PRs related to the ARM architecture.
    macosIssues and PRs related to the macOS platform.
    on Nov 16, 2021
  2. Ayase-252 commented on Nov 17, 2021

    @Ayase-252
    Member

    Thanks for reporting, could you provide a minimal repro to the issue?

  3. p-ackland commented on Dec 17, 2021

    @p-ackland

    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.0 and v17.1.0

    I'm also running on ARM MacOS 12.1

    This is the crash report:

    -------------------------------------
    Translated Report (Full Report Below)
    -------------------------------------
    
    Process:               node [2633]
    Path:                  /Users/USER/*/node
    Identifier:            node
    Version:               ???
    Code Type:             ARM-64 (Native)
    Parent Process:        zsh [773]
    Responsible:           iTerm2 [764]
    User ID:               501
    
    Date/Time:             2021-12-17 10:43:44.9956 +1100
    OS Version:            macOS 12.1 (21C52)
    Report Version:        12
    Anonymous UUID:        EFF8CAC4-9E43-4899-2A85-D08EDAADAD1F
    
    
    Time Awake Since Boot: 96 seconds
    
    System Integrity Protection: enabled
    
    Crashed Thread:        0  Dispatch queue: com.apple.main-thread
    
    Exception Type:        EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
    Exception Codes:       UNKNOWN_0x32 at 0x0000000111c00000
    Exception Codes:       0x0000000000000032, 0x0000000111c00000
    Exception Note:        EXC_CORPSE_NOTIFY
    
    Termination Reason:    Namespace CODESIGNING, Code 2 
    
    VM Region Info: 0x111c00000 is in 0x111c00000-0x111c70000;  bytes after start: 0  bytes before end: 458751
          REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
          MALLOC_TINY                 111b00000-111c00000    [ 1024K] rw-/rwx SM=PRV  
    --->  mapped file                 111c00000-111c70000    [  448K] r--/rwx SM=COW  ...ct_id=bb8070b
          GAP OF 0x390000 BYTES
          MALLOC_SMALL                112000000-112800000    [ 8192K] rw-/rwx SM=PRV  
    
    Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
    0   dyld                          	       0x1098d22c8 dyld3::MachOFile::compatibleSlice(Diagnostics&, void const*, unsigned long, char const*, dyld3::Platform, bool, dyld3::GradedArchs const&) + 76
    1   dyld                          	       0x1098b6758 invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int) + 96
    2   dyld                          	       0x1098b6758 invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int) + 96
    3   dyld                          	       0x1098bbb44 dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const + 128
    4   dyld                          	       0x1098b66c4 dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int) + 204
    5   dyld                          	       0x1098b0580 invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 1412
    6   dyld                          	       0x1098afa70 dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 780
    7   dyld                          	       0x1098af6d8 invocation function for block in dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 116
    8   dyld                          	       0x1098a5e90 dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const + 672
    9   dyld                          	       0x1098af64c dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 172
    10  dyld                          	       0x1098afdf8 dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 840
    11  dyld                          	       0x1098c1a00 invocation function for block in dyld4::APIs::dlopen_from(char const*, int, void*) + 260
    12  dyld                          	       0x1098a6a24 dyld4::RuntimeState::withLoadersWriteLock(void () block_pointer) + 100
    13  dyld                          	       0x1098c1704 dyld4::APIs::dlopen_from(char const*, int, void*) + 464
    14  node                          	       0x105051d4c std::__1::__function::__func<node::binding::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)::$_0, std::__1::allocator<node::binding::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)::$_0>, bool (node::binding::DLib*)>::operator()(node::binding::DLib*&&) + 108
    15  node                          	       0x1050510dc node::Environment::TryLoadAddon(char const*, int, std::__1::function<bool (node::binding::DLib*)> const&) + 240
    16  node                          	       0x105050f04 node::binding::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&) + 480
    17  node                          	       0x10523432c v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 276
    18  node                          	       0x105233e24 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 468
    19  node                          	       0x1052336b0 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) + 228
    20  node                          	       0x1059711cc Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 108
    21  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    22  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    23  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    24  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    25  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    26  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    27  node                          	       0x105902b0c Builtins_JSEntryTrampoline + 172
    28  node                          	       0x1059027a4 Builtins_JSEntry + 164
    29  node                          	       0x1052d7220 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) + 2388
    30  node                          	       0x1052d68b4 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 200
    31  node                          	       0x1051cef60 v8::Script::Run(v8::Local<v8::Context>) + 828
    32  node                          	       0x105070794 node::contextify::ContextifyScript::EvalMachine(node::Environment*, long long, bool, bool, bool, std::__1::shared_ptr<v8::MicrotaskQueue>, v8::FunctionCallbackInfo<v8::Value> const&) + 500
    33  node                          	       0x105070394 node::contextify::ContextifyScript::RunInThisContext(v8::FunctionCallbackInfo<v8::Value> const&) + 804
    34  node                          	       0x10523432c v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 276
    35  node                          	       0x105233e24 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 468
    36  node                          	       0x1052336b0 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) + 228
    37  node                          	       0x1059711cc Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 108
    38  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    39  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    40  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    41  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    42  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    43  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    44  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    45  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    46  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    47  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    48  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    49  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    50  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    51  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    52  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    53  node                          	       0x1059364ec Builtins_GeneratorPrototypeNext + 140
    54  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    55  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    56  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    57  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    58  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    59  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    60  node                          	       0x105904d18 Builtins_InterpreterEntryTrampoline + 248
    61  ???                           	       0x109a5385c ???
    62  node                          	       0x105902b0c Builtins_JSEntryTrampoline + 172
    63  node                          	       0x1059027a4 Builtins_JSEntry + 164
    64  node                          	       0x1052d7220 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) + 2388
    65  node                          	       0x1052d68b4 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 200
    66  node                          	       0x1051e3e70 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 520
    67  node                          	       0x104fca348 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) + 512
    68  node                          	       0x104fdf4ac node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) + 204
    69  node                          	       0x1051203dc node::StreamBase::CallJSOnreadMethod(long, v8::Local<v8::ArrayBuffer>, unsigned long, node::StreamBase::StreamBaseJSChecks) + 232
    70  node                          	       0x105122694 node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const&) + 344
    71  node                          	       0x105126d84 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) + 672
    72  node                          	       0x1058f0498 uv__stream_io + 1060
    73  node                          	       0x1058f85b8 uv__io_poll + 1052
    74  node                          	       0x1058e6d34 uv_run + 380
    75  node                          	       0x104fcae00 node::SpinEventLoop(node::Environment*) + 244
    76  node                          	       0x1050b36f4 node::NodeMainInstance::Run(int*, node::Environment*) + 120
    77  node                          	       0x1050b33c0 node::NodeMainInstance::Run(node::EnvSerializeInfo const*) + 120
    78  node                          	       0x10504c2dc node::Start(int, char**) + 180
    79  dyld                          	       0x1098a10f4 start + 520
    
    Thread 1:
    0   libsystem_kernel.dylib        	       0x1a398b8cc kevent + 8
    1   node                          	       0x1058f8498 uv__io_poll + 764
    2   node                          	       0x1058e6d34 uv_run + 380
    3   node                          	       0x1050d8d5c node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Run() + 336
    4   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    5   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 2:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1050d8f54 node::TaskQueue<v8::Task>::BlockingPop() + 60
    4   node                          	       0x1050d6438 node::(anonymous namespace)::PlatformWorkerThread(void*) + 356
    5   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    6   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 3:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1050d8f54 node::TaskQueue<v8::Task>::BlockingPop() + 60
    4   node                          	       0x1050d6438 node::(anonymous namespace)::PlatformWorkerThread(void*) + 356
    5   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    6   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 4:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1050d8f54 node::TaskQueue<v8::Task>::BlockingPop() + 60
    4   node                          	       0x1050d6438 node::(anonymous namespace)::PlatformWorkerThread(void*) + 356
    5   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    6   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 5:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1050d8f54 node::TaskQueue<v8::Task>::BlockingPop() + 60
    4   node                          	       0x1050d6438 node::(anonymous namespace)::PlatformWorkerThread(void*) + 356
    5   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    6   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 6:
    0   libsystem_kernel.dylib        	       0x1a3985990 semaphore_wait_trap + 8
    1   node                          	       0x1058f3ba8 uv_sem_wait + 24
    2   node                          	       0x10513b838 node::inspector::(anonymous namespace)::StartIoThreadMain(void*) + 32
    3   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    4   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 7:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1058e3468 worker + 120
    4   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    5   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 8:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1058e3468 worker + 120
    4   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    5   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 9:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1058e3468 worker + 120
    4   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    5   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 10:
    0   libsystem_kernel.dylib        	       0x1a39890c0 __psynch_cvwait + 8
    1   libsystem_pthread.dylib       	       0x1a39c1808 _pthread_cond_wait + 1228
    2   node                          	       0x1058f35a0 uv_cond_wait + 12
    3   node                          	       0x1058e3468 worker + 120
    4   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    5   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    Thread 11:
    0   libsystem_kernel.dylib        	       0x1a3985990 semaphore_wait_trap + 8
    1   node                          	       0x1058f3ba8 uv_sem_wait + 24
    2   node                          	       0x10510a90c node::SigintWatchdogHelper::RunSigintWatchdog(void*) + 68
    3   libsystem_pthread.dylib       	       0x1a39c1240 _pthread_start + 148
    4   libsystem_pthread.dylib       	       0x1a39bc024 thread_start + 8
    
    
    Thread 0 crashed with ARM Thread State (64-bit):
        x0: 0x000000016ae2a558   x1: 0x0000000111c00000   x2: 0x000000000006cdaf   x3: 0x0000600003a48090
        x4: 0x0000000000000001   x5: 0x0000000000000000   x6: 0x00000001098eec10   x7: 0x0000000000000e50
        x8: 0xa919de6caae2007f   x9: 0x00000001098b66f8  x10: 0x0000000000000000  x11: 0x0000000000000001
       x12: 0x0000600003a48092  x13: 0x0000000000000000  x14: 0x000000025828c01a  x15: 0x0000000106562de8
       x16: 0x0000000000000006  x17: 0x6ae100016ae2a480  x18: 0x0000000000000000  x19: 0x000000016ae2a558
       x20: 0x0000600003a48090  x21: 0x0000000000000001  x22: 0x0000000111c00000  x23: 0x00000001098eec10
       x24: 0x0000000000000000  x25: 0x000000000006cdaf  x26: 0x0000000109782940  x27: 0x0000000000000000
       x28: 0x0000000000000000   fp: 0x000000016ae29ef0   lr: 0x24430001098b6758
        sp: 0x000000016ae29d50   pc: 0x00000001098d22c8 cpsr: 0x00001000
       far: 0x0000000111c00000  esr: 0x92000007 (Data Abort) byte read Translation fault
    
    Binary Images:
           0x10989c000 -        0x1098fbfff dyld (*) <7e92b284-4b90-3b68-b31a-3ddc4c0e8d40> /usr/lib/dyld
           0x104fc8000 -        0x108377fff node (*) <86fe8357-5567-3b25-91cb-05a192eec438> /Users/USER/*/node
                   0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
           0x1a3984000 -        0x1a39b9fff libsystem_kernel.dylib (*) <c8b3081a-5081-3a99-bbe3-01413de444c6> /usr/lib/system/libsystem_kernel.dylib
           0x1a39ba000 -        0x1a39c6fff libsystem_pthread.dylib (*) <ed328b18-eeef-3b15-8858-798b19b0c2cd> /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=658.7M resident=0K(0%) swapped_out_or_unallocated=658.7M(100%)
    Writable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)
    
                                    VIRTUAL   REGION 
    REGION TYPE                        SIZE    COUNT (non-coalesced) 
    ===========                     =======  ======= 
    Activity Tracing                   256K        1 
    Kernel Alloc Once                   32K        1 
    MALLOC                           223.2M       27 
    MALLOC guard page                   96K        4 
    MALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)
    MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
    Memory Tag 255                   134.0M       36 
    STACK GUARD                       56.2M       12 
    Stack                             80.7M       12 
    VM_ALLOCATE                        1.0G        1 
    __AUTH                              53K       12 
    __AUTH_CONST                      1021K       42 
    __DATA                             482K       40 
    __DATA_CONST                      3651K       44 
    __DATA_DIRTY                        93K       23 
    __LINKEDIT                       594.6M        3 
    __OBJC_CONST                        37K        6 
    __OBJC_RO                         82.0M        1 
    __OBJC_RW                         3104K        1 
    __TEXT                            64.1M       47 
    __UNICODE                          588K        1 
    dyld private memory               1024K        1 
    mapped file                        448K        1 
    shared memory                       32K        2 
    ===========                     =======  ======= 
    TOTAL                              3.1G      323 
    TOTAL, minus reserved VM space     2.2G      323 
    
  4. p-ackland commented on Dec 20, 2021

    @p-ackland

    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.

  5. Bobronium commented on May 24, 2022

    @Bobronium

    In OpenBoardView/OpenBoardView#239 (comment) i had to add --deep argument to codesign to get it working:

    codesign --force --deep --sign - /path/to/your.app
    

    Mentioning it here since this issue is on the top of search results for SIGKILL with exit code 137 (Code Signature Invalid).

  6. rudragthite commented on Jan 31, 2023

    @rudragthite

    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" : {

      },
      "deploymentId" : 240000242
    },
    {
      "rolloutId" : "61675b89201f677a9a4cbd65",
      "factorPackIds" : {
        "HEALTH_FEATURE_AVAILABILITY" : "638e768d75b0720ff1f8c4f3"
      },
      "deploymentId" : 240000051
    }
    

    ],
    "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.

  7. bnoordhuis commented on Jan 31, 2023

    @bnoordhuis
    Member

    I'll convert this to a discussion since it's not strictly speaking a node bug.

  8. locked and limited conversation to collaborators on Jan 31, 2023
  9. converted this issue into a discussionon Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    armIssues and PRs related to the ARM architecture.macosIssues and PRs related to the macOS platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions