Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling Glob scan with "/" crashes Bun #15417

Open
Daw588 opened this issue Nov 26, 2024 · 3 comments
Open

Calling Glob scan with "/" crashes Bun #15417

Daw588 opened this issue Nov 26, 2024 · 3 comments
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows

Comments

@Daw588
Copy link

Daw588 commented Nov 26, 2024

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

@Daw588 Daw588 added the crash An issue that could cause a crash label Nov 26, 2024
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Nov 26, 2024
Copy link
Contributor

@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
Copy link
Author

Daw588 commented Nov 26, 2024

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

@RiskyMH
Copy link
Member

RiskyMH commented Nov 26, 2024

This is similar to the crash bun "// /" (#13615), bun occasionally must still have issues with posix / for root folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants