Title: V8 CHECK aborts Electron main process in GetThreadState during ExecutionInterrupted · Issue #49 · getsentry/sentry-javascript-node-native-stacktrace · GitHub
Open Graph Title: V8 CHECK aborts Electron main process in GetThreadState during ExecutionInterrupted · Issue #49 · getsentry/sentry-javascript-node-native-stacktrace
X Title: V8 CHECK aborts Electron main process in GetThreadState during ExecutionInterrupted · Issue #49 · getsentry/sentry-javascript-node-native-stacktrace
Description: Environment Electron 45.2.1 on macOS 27 arm64, main process @sentry/electron 7.14.0 / @sentry/node-native 10.60.0, using eventLoopBlockIntegration @sentry/node-native-stacktrace 0.5.1. The native source in 0.5.2 is identical. What happen...
Open Graph Description: Environment Electron 45.2.1 on macOS 27 arm64, main process @sentry/electron 7.14.0 / @sentry/node-native 10.60.0, using eventLoopBlockIntegration @sentry/node-native-stacktrace 0.5.1. The native s...
X Description: Environment Electron 45.2.1 on macOS 27 arm64, main process @sentry/electron 7.14.0 / @sentry/node-native 10.60.0, using eventLoopBlockIntegration @sentry/node-native-stacktrace 0.5.1. The native s...
Opengraph URL: https://github.com/getsentry/sentry-javascript-node-native-stacktrace/issues/49
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"V8 CHECK aborts Electron main process in GetThreadState during ExecutionInterrupted","articleBody":"### Environment\n\n- Electron 45.2.1 on macOS 27 arm64, main process\n- `@sentry/electron` 7.14.0 / `@sentry/node-native` 10.60.0, using `eventLoopBlockIntegration`\n- `@sentry/node-native-stacktrace` 0.5.1. The native source in 0.5.2 is identical.\n\n### What happens\n\nWhen the watchdog captures a blocked main thread, the Electron main process sometimes aborts with `EXC_BREAKPOINT` (a failed V8 `CHECK`). We've seen five of these in two weeks, across several app releases. Most block captures in the same process succeed; one process had six successful captures that day before it crashed.\n\nCrashing main thread, frame-pointer unwind (offsets symbolized against the shipped `stack-trace.node`):\n\n```\nElectron Framework (V8 CHECK -> brk)\nElectron Framework x4\nstack-trace.node GetThreadState(v8::Isolate*, AsyncLocalStorageLookup const&) + 144\nstack-trace.node ExecutionInterrupted(v8::Isolate*, void*) + 192\nElectron Framework (JIT / V8 frames)\n...\nCoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__\nAppKit -[NSApplication run]\n```\n\nThe fault comes after `GetStackFrames` has finished, inside `GetThreadState`.\n\n### Likely cause\n\n`@sentry/node-native` registers the main thread with `registerThread({ asyncLocalStorage, stateLookup: [\"_currentContext\", contextSymbol] })`. `ExecutionInterrupted` then runs `GetThreadState` inside the `RequestInterrupt` callback, which:\n\n- reads `GetContinuationPreservedEmbedderData()` and calls `v8::Map::Get`\n- walks `stateLookup` with `Object::Get`, which can run getters and proxies\n- then `JSONStringify`s the result, which can call `toJSON`\n\nAll of this happens with no `TryCatch` and at whatever point V8 serviced the interrupt. Running arbitrary JS and allocating there seems unsafe. #43 reports the same serialization step freezing the thread. Here it ends in a V8 `CHECK` instead. Electron Framework is stripped, so we couldn't tell which `CHECK` fails.\n\n### Workaround\n\nWe patch `@sentry/node-native` to call `registerThread()` without the AsyncLocalStorage, so `GetThreadState` never runs. To keep the user and tags on block events, the poll also merges `getIsolationScope().getScopeData()` into the scope it passes to `threadPoll`. That runs on the main thread between ticks, not inside the interrupt.\n\n### Suggestion\n\nKeep the interrupt callback to stack capture. Either collect async state outside the interrupt, or make reading it opt-in and wrap it in a `TryCatch`. Merging the isolation scope in `poll()` would cover most of what the async lookup provides today.\n","author":{"url":"https://github.com/abbmarand","@type":"Person","name":"abbmarand"},"datePublished":"2026-11-13T12:13:36Z","url":"https://github.com/getsentry/sentry-javascript-node-native-stacktrace/issues/49"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:858242dc-e3d9-b9c7-6258-757ebca331b6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C414:1B6E1C:24A05E:32B421:6B04212A |
| html-safe-nonce | 13c76857b4c7387c595cfbd05ef4f56d3f561083b63705e29cc045555c30e642 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDE0OjFCNkUxQzoyNEEwNUU6MzJCNDIxOjZCMDQyMTJBIiwidmlzaXRvcl9pZCI6Ijc3NzUxMjQyMzE5Njg1MzA3MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c1ecd03ec382ede381f72a21d3beddd1cddf560e695f9e14e858d3f6d94e244 |
| hovercard-subject-tag | issue:6371004967 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript-node-native-stacktrace/49/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3cf8b7d343631356ab3a655986f7827a9417a0584272b97f08eb3504f89a1887/getsentry/sentry-javascript-node-native-stacktrace/issues/49 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3cf8b7d343631356ab3a655986f7827a9417a0584272b97f08eb3504f89a1887/getsentry/sentry-javascript-node-native-stacktrace/issues/49 |
| og:image:alt | Environment Electron 45.2.1 on macOS 27 arm64, main process @sentry/electron 7.14.0 / @sentry/node-native 10.60.0, using eventLoopBlockIntegration @sentry/node-native-stacktrace 0.5.1. The native s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abbmarand |
| hostname | github.com |
| expected-hostname | github.com |
| None | f8d9f404447ab5df341c8a92cf5fc927730ad1321e64ac57656444d2438097f1 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript-node-native-stacktrace git https://github.com/getsentry/sentry-javascript-node-native-stacktrace.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 990851629 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript-node-native-stacktrace |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 990851629 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript-node-native-stacktrace |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f7edccce04851591ee529948701779ce6819bc53 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width