Skip to content

Segmentation fault #21310

Closed as duplicate
Closed as duplicate

Description

@0xRapid

How can we reproduce the crash?

No response

Relevant log output

PS C:\bbb\git\aa> bun run dist/aa-tg/index.js --debug
============================================================
Bun v1.2.19 (aad3abea) Windows x64
Windows v.win10_cu
CPU: sse42 avx avx2 avx512
Args: "C:\Users\aaa\.bun\bin\bun.exe" "run" "dist/aa-tg/index.js" "--debug"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) jsc transpiler_cache(30) tsconfig(114) process_dlopen
Builtins: "abort-controller" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:perf_hooks" "node:process" "node:querystring" "node:readline" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "node-fetch" "node:http2"
Elapsed: 1691ms | User: 1453ms | Sys: 671ms
RSS: 0.50GB | Peak: 0.51GB | Commit: 0.70GB | Faults: 129480 | Machine: 34.07GB

panic(main thread): Segmentation fault at address 0xFFFFFFFFFFFFFFFF
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.2.19/wr1aad3abe4gBuggQCQnode.exew6+iHCenative-b58.node0gSCenative-b58.node4sbCenative-b58.node+qUCenative-b58.nodei5oBknvpsB__6+x0xCA2DD

Stack Trace (bun.report)

Bun v1.2.19 (aad3abe) on windows x86_64 [AutoCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

  • ??? at 0x38bda8 in node.exe
  • ??? at 0x240a in native-b58.node
  • ??? at 0x36cc in native-b58.node
  • ??? at 0x28af in native-b58.node
  • ??? at 0x5191 in native-b58.node
  • ExceptionScope.h:94: JSC::ExceptionScope::vm
  • 2 unknown/js code
  • llint_entry

Features: transpiler_cache, tsconfig, process_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, jsc

Sentry Issue: BUN-DR4

Activity

  1. added
    crash
    on Jul 23, 2025
  2. linear commented on Jul 23, 2025

    @linear
  3. added
    windows
    on Jul 23, 2025
  4. added
    needs repro
    napi
    and removed on Jul 23, 2025
  5. nektro commented on Jul 23, 2025

    @nektro
    Contributor
  6. github-actions commented on Jul 23, 2025

    @github-actions
    Contributor

    Hello @0xRapid. Please provide a minimal reproduction using a GitHub repository, Replit, CodeSandbox, or provide a bulleted list of commands to run that reproduce this issue. Issues marked with needs repro will be closed if they have no activity within 3 days.

  7. added
    Worker
    on Jul 23, 2025
  8. 0xRapid commented on Jul 25, 2025

    @0xRapid
    Author

    I will try to create a minimal reproduction, will be hard tho

  9. github-actions commented on Nov 25, 2025

    @github-actions
    Contributor

    Found 3 possible duplicate issues:

    1. Segmentation fault at address 0xFFFFFFFFFFFFFFFF #24708
    2. Segmentation fault at address 0xFFFFFFFFFFFFFFFF #24694
    3. NAPI FATAL ERROR: Error::New napi_create_error #24899

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  10. github-actions commented on Nov 28, 2025

    @github-actions
    Contributor

    Duplicate of #24708.

    This issue has been automatically closed as a duplicate.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  11. robobun commented on Aug 15, 2026

    @robobun
    Collaborator

    This is the same Windows crash tracked in #10690: a native addon whose import table names node.exe gets its napi_* calls bound to a real node.exe instead of bun.exe when Bun's process.dlopen loads it, so the process segfaults inside node.exe frames called from the .node module (nodegl.node there, native-b58.node here). The fix in #35618 rebinds those node.exe imports to the running executable and covers both reports, so this will be tracked in #10690.

    Duplicate of #10690

    Please add a 👍 or any extra details over there so it all stays in one place. If this is actually a different problem, say so here and we'll reopen.

  12. added a commit that references this issue on Oct 20, 2026
    9b4284f
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

    Workercrashnapineeds reproruntimewindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions