Node.Js - Impossible to use lldb on m1

Viewed 26

I'm trying to make a post-mortem debugging session for a Node.Js process.

Here is my modus operandi:

  • Run ulimit -c unlimited command
  • Run the command: node --abort-on-uncaught-exception crash.js
  • where crash.js is:
throw new Error('BOOM');

Then the console outputs:

āžœ  /cores arch -arm64 lldb node -c core.6511
(lldb) target create "node" --core "core.6511"
Core file '/cores/core.6511' (arm64) was loaded.

(lldb) bt
* thread #1, stop reason = signal SIGSTOP
  * frame #0: 0x000000010553e3e4 node`v8::base::OS::Abort() + 24
(lldb)

I have only one frame instead of a bunch of them.

I'm working on a:

  • MacBook air (m1, 2020)
  • OS Monterey - 12.6
1 Answers

I put my hands on an intel mac this morning, and it worked as expected; I see all the native Node.js frames ^^

As Jim suggested, I'll open an issue on Apple's bug tracker. I'll post updates here.

Related