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

Panic "unreachable code" on Windows when writing from stdin to stdout #12404

Closed
unleashy opened this issue Jul 6, 2024 · 2 comments · Fixed by #12411
Closed

Panic "unreachable code" on Windows when writing from stdin to stdout #12404

unleashy opened this issue Jul 6, 2024 · 2 comments · Fixed by #12411
Labels
crash An issue that could cause a crash windows An issue that only occurs on Windows

Comments

@unleashy
Copy link

unleashy commented Jul 6, 2024

How can we reproduce the crash?

await Bun.write(Bun.stdout, Bun.stdin);

That's all. From a cursory look at the code, it seems that you're calling GetFinalPathNameByHandle, and I guess stdin/out don't have names so it fails.

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.18 (5a0b935) on windows x86_64 [AutoCommand]

panic: reached unreachable code

@unleashy unleashy added the crash An issue that could cause a crash label Jul 6, 2024
@github-actions github-actions bot added the windows An issue that only occurs on Windows label Jul 6, 2024
@Jarred-Sumner
Copy link
Collaborator

Related ziglang/zig#18756

@unleashy
Copy link
Author

Cheers!

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 only occurs on Windows
Projects
None yet
2 participants