Skip to content

Crash in DFG JIT: Illegal instruction in pas_utils.h (WTF::Vector<DFG::AbstractValue> resize) #29412

Description

@zbennett10

What version of Bun is running?

1.3.13 (commit 743d2a4)

What platform is your computer?

Windows 10 Home (10.0.19045), x86_64_baseline

Crash report

https://bun.report/1.3.13/e_1743d2a4mgkgkEuhogC0pj7nDo7v83Dqkx0xDg13goDim4goD+91g2C6/k91Cm5+81Cwy981Ckqi5mDg9mnuD44o8vD6q6xmDgz2xmD6/0xmDm3stmDwx20uDgx/08C+zx/6Cgpjj9CA3s//Bt28woyD

What happened?

panic(thread 29180): Illegal instruction at address 0x7FF68DBBC69A

Bun SIGILL'd during a long-running Claude Code session (~4.5 min of wall-clock, RSS 1.10 GB, commit 11.26 GB, 556k page faults). Decoded stack trace shows the crash originates in WebKit's bmalloc (pas_utils.h:286 assert), reached via JSC's DFG CFA (Control Flow Analysis) phase while resizing a WTF::Vector<JSC::DFG::AbstractValue> on the JIT worker thread.

Context chain (from the decoded report):

  • pas_utils.h:286 — assertion failure
  • pas_page_malloc.c / pas_large_free_heap_deferred_commit_log.c — deferred commit path
  • pas_large_heap.c — large allocation
  • JSC DFG CFA phase → JIT compilation thread

The process was doing normal tool-call / string work — no JS eval, no dynamic code load — so this looks like DFG JIT compaction running into a bad state under memory pressure, not user code triggering it.

What steps can reproduce the bug?

Not deterministically reproducible; happened during a long Claude Code session with heavy context. Happy to rerun with BUN_JSC_useDFGJIT=0 or capture a minidump if it recurs and that would help.

Additional information

  • Features reported by the crash report: spawn, standalone_executable, yaml_parse, claude_code, WebSocket, fetch
  • Machine: 17.09 GB RAM, session RSS peak 1.10 GB (so the crash isn't simple OOM — system had headroom)
  • Shell: bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions