t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: macOS Nightly main process crashes with SIGTRAP (EXC_BREAKPOINT) from a JS callback on CrBrowserMain

Open AryanRG opened this issue 3 weeks ago • 2 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

No deterministic repro yet. The desktop app had been running for about 36 minutes (launched 11:58:09, crashed 12:34:43 IST), and macOS listed it as a background process when it crashed. The app went down without warning and had to be restarted.

Expected behavior

The desktop app keeps running.

Actual behavior

The Electron main process (CrBrowserMain) crashed with EXC_BREAKPOINT (SIGTRAP). The trap is raised from inside a JS callback (node::InternalMakeCallback → v8::Function::Call → JIT frames → Electron/Node native code), on the main-thread run loop.

This stack looks like #27499 / #20395 (a V8 fatal error, such as an OOM, reached from a JS callback in the main process). I haven't symbolicated it, though: the ares_dns_rr_get_ttl + … names are nearest-export guesses. It may be the same bug or a different fatal error.

Impact

Major degradation or frequent failure

Version or commit

0.1.9-nightly.20261111.4501

Environment

macOS 27.2 (26B118), Mac14,9 (Apple M2 Pro, 16 GB), T3 Code (Nightly) desktop. Electron Framework module UUID 4C4C442C-5555-3144-A157-FFC8A432CBF6.

Logs or stack traces

Full .ips report: https://gist.github.com/AryanRG/b6cc1f741992d35c2f303a216b3445eb

Exception Type:    EXC_BREAKPOINT (SIGTRAP)
Exception Codes:   0x0000000000000001, 0x0000000113fc13c4
Termination Reason:  Namespace SIGNAL, Code 5, Trace/BPT trap: 5

1   Electron Framework            	       0x113fc13c4 ares_dns_rr_get_ttl + 3456624
2   Electron Framework            	       0x113fc13dc ares_dns_rr_get_ttl + 3456648
3   Electron Framework            	       0x113fc13f8 ares_dns_rr_get_ttl + 3456676
4   Electron Framework            	       0x111174900 node::PrincipalRealm::inspector_enable_network_tracking() const + 286408
5   Electron Framework            	       0x112413764 v8::CodeEvent::GetScriptColumn() + 3619620
6   Electron Framework            	       0x1124136ec v8::CodeEvent::GetScriptColumn() + 3619500
7   Electron Framework            	       0x10ef9fd74 cxxbridge1$string$ptr + 78388
8   Electron Framework            	       0x10ef9f064 cxxbridge1$string$ptr + 75044
9   Electron Framework            	       0x10ef9edc0 cxxbridge1$string$ptr + 74368
10  ???                           	       0x157fd5b4c ???
11  ???                           	       0x1504cb008 ???
12  ???                           	       0x1504cbf68 ???
13  ???                           	       0x15052d7f0 ???
14  ???                           	       0x157fd0584 ???
15  ???                           	       0x157fd027c ???
16  Electron Framework            	       0x10e670804 v8::Function::Call(v8::Isolate*, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 2440
17  Electron Framework            	       0x10eade9f4 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 380
18  Electron Framework            	       0x10eaddcc0 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context, v8::Local<v8::Value>) + 1104
19  Electron Framework            	       0x10e975520 node::InternalMakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context, v8::Local<v8::Value>) + 352
20  Electron Framework            	       0x10e9750ac v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>) + 1580
21  Electron Framework            	       0x11100ac6c node::AsyncWrap::~AsyncWrap() + 225516
22  Electron Framework            	       0x11100a0dc node::AsyncWrap::~AsyncWrap() + 222556
23  Electron Framework            	       0x111009eb4 node::AsyncWrap::~AsyncWrap() + 222004
24  Electron Framework            	       0x112eb3b60 _v8_internal_Node_Print(void*) + 5223176
25  Electron Framework            	       0x112eb3fdc _v8_internal_Node_Print(void*) + 5224324
26  Electron Framework            	       0x112da5f5c _v8_internal_Node_Print(void*) + 4118276
27  Electron Framework            	       0x112f0c358 _v8_internal_Node_Print(void*) + 5585664
28  Electron Framework            	       0x112f0fe7c _v8_internal_Node_Print(void*) + 5600804
29  Electron Framework            	       0x112f10ec0 _v8_internal_Node_Print(void*) + 5604968
30  Electron Framework            	       0x112f10dc8 _v8_internal_Node_Print(void*) + 5604720
31  Electron Framework            	       0x1109d0728 v8::internal::compiler::CompilationDependencies::PrepareInstall() + 126484
32  Electron Framework            	       0x1109fd890 v8::internal::compiler::CompilationDependencies::PrepareInstall() + 311164
33  Electron Framework            	       0x10e63eea4 v8::api_internal::GetFunctionTemplateData(v8::Isolate*, v8::Local<v8::Data>) + 3028
34  Electron Framework            	       0x110558cc4 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord(v8::internal::compiler::MapRef, v8::internal::compiler::MapRef, v8::internal::InternalIndex, v8::internal::compiler::ObjectRef) const + 373292
35  Electron Framework            	       0x10e5ae484 v8::Value::BooleanValue(v8::Isolate*) const + 52168
36  Electron Framework            	       0x110558948 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord(v8::internal::compiler::MapRef, v8::internal::compiler::MapRef, v8::internal::InternalIndex, v8::internal::compiler::ObjectRef) const + 372400
37  CoreFoundation                	       0x1900c1920 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
38  CoreFoundation                	       0x1900c18b4 __CFRunLoopDoSource0 + 224
39  CoreFoundation                	       0x1900c15ec __CFRunLoopDoSources0 + 232
40  CoreFoundation                	       0x1900c01bc __CFRunLoopRun + 832
41  CoreFoundation                	       0x19019ac10 _CFRunLoopRunSpecificWithOptions + 536
42  HIToolbox                     	       0x19a8785e0 RunCurrentEventLoopInMode + 320
43  HIToolbox                     	       0x19a87b96c ReceiveNextEventCommon + 492
44  HIToolbox                     	       0x19aa01db8 _BlockUntilNextEventMatchingListInMode + 48
45  AppKit                        	       0x1960ac8c0 _DPSBlockUntilNextEventMatchingListInMode + 292
46  AppKit                        	       0x195d6b59c _DPSNextEvent + 576
47  AppKit                        	       0x1965025f8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 832
48  AppKit                        	       0x1965020e8 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 344
49  AppKit                        	       0x195d5e920 -[NSApplication run] + 396
50  Electron Framework            	       0x113fa28b8 ares_dns_rr_get_ttl + 3330916
51  Electron Framework            	       0x1102c41b4 uv__strscpy + 9152
52  Electron Framework            	       0x10f889868 node::crypto::NodeBIO::FromBIO(bio_st*) + 70864
53  Electron Framework            	       0x10f889224 node::crypto::NodeBIO::FromBIO(bio_st*) + 69260
54  Electron Framework            	       0x112e2f5f4 _v8_internal_Node_Print(void*) + 4681116
55  Electron Framework            	       0x112e2d304 _v8_internal_Node_Print(void*) + 4672172
56  Electron Framework            	       0x1115f547c node::inspector::protocol::Target::Dispatcher::wire(crdtp::UberDispatcher*, node::inspector::protocol::Target::Backend*) + 1326036
57  Electron Framework            	       0x1115f5a5c node::inspector::protocol::Target::Dispatcher::wire(crdtp::UberDispatcher*, node::inspector::protocol::Target::Backend*) + 1327540
58  Electron Framework            	       0x1101acb2c uv__nonblock_ioctl + 29164
59  Electron Framework            	       0x11024f918 node::loader::ModuleWrap::~ModuleWrap() + 14920
60  Electron Framework            	       0x1100534ec ElectronMain + 388
61  dyld                          	       0x18be28d7c start + 6652

Workaround

Restart the app.

AryanRG avatar Nov 11 '26 07:11 AryanRG

This is the same problem as #30735, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

juliusmarminge avatar Nov 11 '26 07:11 juliusmarminge

This is the same problem as #30735, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

@juliusmarminge you are right, also checked other possible duplicates: https://github.com/pingdotgg/t3code/issues/27499 and https://github.com/pingdotgg/t3code/issues/20395 but these are marked as closed

AryanRG avatar Nov 11 '26 07:11 AryanRG