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

Bun crash on windows symlink code files #16353

Closed
pragmatta opened this issue Jan 12, 2025 · 1 comment
Closed

Bun crash on windows symlink code files #16353

pragmatta opened this issue Jan 12, 2025 · 1 comment
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@pragmatta
Copy link

pragmatta commented Jan 12, 2025

How can we reproduce the crash?

  1. Use windows and bun v1.1.44-canary.30
  2. Use codefile project root that is an absolute symlink to elsewhere
  3. Include the code file as import { foo } from "./codefile"

Problem can be worked around by switching symlinks to junctions, but that's not a really good solution.

Relevant log output

Bun Canary v1.1.44-canary.30 (487da0ae) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\matia\.bun\bin\bun.exe" "run" "./appNodeAzure.ts"
Features: jsc tsconfig
Builtins: "bun:main"
Elapsed: 39ms | User: 0ms | Sys: 0ms
RSS: 102.26MB | Peak: 102.26MB | Commit: 0.15GB | Faults: 25194

panic(main thread): Internal Error: Do not pass posix paths to Windows APIs, was given '\_PROJECTS\OinoCloud\azure\src\azureSmtpClient.ts'. 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.44-canary (487da0a) on windows x86_64 [RunCommand]

panic: Internal Error: Do not pass posix paths to Windows APIs, was given '_PROJECTS\OinoCloud\azure\src\azureSmtpClient.ts'. Please open an issue on GitHub with a reproduction.

Features: jsc, tsconfig, tsconfig

Sentry Issue: BUN-B4B

@pragmatta pragmatta added the crash An issue that could cause a crash label Jan 12, 2025
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Jan 12, 2025
@RiskyMH
Copy link
Member

RiskyMH commented Jan 30, 2025

I'm pretty sure #16621 fixed this. Let me know if its still an issue for you.

@RiskyMH RiskyMH closed this as completed Jan 30, 2025
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 runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants