Skip to content

Crash in Bun.inspect.table() #18230

@d4rkstar

Description

@d4rkstar

How can we reproduce the crash?

Bun.inspect.table(null) works
Bun.inspect.table(undefined) works
Bun.inspect.table([]) works
Bun.inspect.table({}) works
Bun.inspect.table('') crashes

Relevant log output

============================================================
Bun v1.2.2 (c1708ea6) macOS Silicon
macOS v15.3.2
Args: "bun" "psql.js" "describe" "test" "table"
Features: jsc 
Builtins: "bun:main" "node:fs" "node:util/types" 
Elapsed: 15ms | User: 11ms | Sys: 5ms
RSS: 29.36MB | Peak: 29.36MB | Commit: 1.07GB | Faults: 84

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

Stack Trace (bun.report)

Bun v1.2.2 (c1708ea) on macos aarch64 [AutoCommand]

Segmentation fault at address 0x00000006

  • 1 unknown/js code
  • Bun__JSPropertyIterator__create
  • src.bun.js.bindings.bindings.toJSHostFunction__struct_142603.function
  • 1 unknown/js code
  • jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__666_callHelper__dispatch_LowLevelInterpreter64_asm_2538
  • jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__666_callHelper__dispatch_LowLevelInterpreter64_asm_2538
  • jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__684_callHelper__dispatch_LowLevelInterpreter64_asm_2538
  • jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__684_callHelper__dispatch_LowLevelInterpreter64_asm_2538
  • llint_call_javascript
  • JSC::Interpreter::executeCall

Features: Bun.stdin, fetch, jsc

Sentry Issue: BUN-EA5

Metadata

Metadata

Assignees

Labels

bun.jsSomething to do with a Bun-specific APIconfirmed bugWe can reproduce this issuecrashAn issue that could cause a crashruntime

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions