// bun --hot main.ts
import fs from 'node:fs/promises'
const folder = 'does-exists-folder' // yes the folder exists, can list by ls -al does-exists-folder
await fs.readdir(folder, { recursive: true })
Relevant log output
[preindex] processFile: ENOENT: No such file or directory
errno: -2
syscall: "stat"
============================================================
Bun v1.1.20 (ae194892) Linux x64 (baseline)
Linux Kernel v6.1.0 | glibc v2.39
CPU: sse42 popcnt avx avx2
Args: "bun" "--hot" "/preindex.ts"
Features: jsc fetch(6) shell(2) spawn
Builtins: "bun:main" "node:fs/promises"
Elapsed: 14385ms | User: 76ms | Sys: 45ms
RSS: 1.07GB | Peak: 94.53MB | Commit: 1.07GB | Faults: 3
panic(main thread): Segmentation fault at address 0x38
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.1.20/Ba1ae19489AigigG2q06mE+xpRsmml/C6g609C0k6piE4pm48Cwh998C6wsl3Cgt4j3Cy8wKA2AwD
Stack Trace (bun.report)
Bun v1.1.20 (ae19489) on linux x86_64_baseline [AutoCommand]
I'm a bit confused when it comes to the logs, you're running bun --hot main.ts but the log mentions you're passing --hot /preindex.ts as args to bun ? am i missing something ?
How can we reproduce the crash?
Relevant log output
Stack Trace (bun.report)
Bun v1.1.20 (
ae19489
) on linux x86_64_baseline [AutoCommand]Segmentation fault at address 0x00000038
ld-temp.o:0
:WTF::Unicode::convertReplacingInvalidSequences
??
unbounded_queue.zig:106
:src.bun.js.event_loop.EventLoop.tick
javascript.zig:1010
:src.bun.js.javascript.OpaqueWrap__anon_51506__struct_81562.callback
HeapCellInlines.h:0
:JSC__JSValue__createUninitializedUint8Array
interpreter.zig:1477
:src.shell.interpreter.Interpreter.initAndRunFromSource
cli.zig:2054
:src.cli.Command.maybeOpenWithBunJS
cli.zig:1946
:src.cli.Cli.start
array_list.zig:0
:process.argsAlloc
??