oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.5k stars 2.79k forks source link

Calling Glob scan with "/" crashes Bun #15417

Open Daw588 opened 6 days ago

Daw588 commented 6 days ago

How can we reproduce the crash?

new Bun.Glob("**/*.proto").scan("/")

Relevant log output

panic(thread 21152): Internal Error: Do not pass posix paths to Windows APIs, was given '/'. Please open an issue on GitHub with a reproduction.
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.36 (ededc16) on windows x86_64 [RunCommand]

panic: Internal Error: Do not pass posix paths to Windows APIs, was given '/'. Please open an issue on GitHub with a reproduction.

Features: jsc, tsconfig

Sentry Issue: BUN-1CG

github-actions[bot] commented 6 days ago

@Daw588, the latest version of Bun is v1.1.37, but this crash was reported on Bun v1.1.36.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade
Daw588 commented 6 days ago

Yes, the crash also occurs on Bun v1.1.37.

RiskyMH commented 6 days ago

This is similar to the crash bun "// /" (https://github.com/oven-sh/bun/issues/13615), bun occasionally must still have issues with posix / for root folder.