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 when using $ in a macro on windows #12367

Open
matthieuv-chabe opened this issue Jul 5, 2024 · 2 comments
Open

Bun crash when using $ in a macro on windows #12367

matthieuv-chabe opened this issue Jul 5, 2024 · 2 comments
Labels
crash An issue that could cause a crash runtime shell Something to do with Bun as a shell windows An issue that only occurs on Windows

Comments

@matthieuv-chabe
Copy link

How can we reproduce the crash?

Just a simple program with no libraries

src/index.ts
import { ver } from '../macros/ver' with { type: "macro" }; console.log(ver())

macros/ver.ts
`
import { $ } from 'bun'

export async function ver() {
const v = await $echo "0.0.1".text()
return v
}
`

program started with
bun .\src\index.ts

Relevant log output

PS C:\Users\geekg\Desktop\Elysia\app> bun .\src\index.ts
============================================================
Bun v1.1.12 (43f0913c) Windows x64
Args: "C:\Users\geekg\.bun\bin\bun.exe" ".\src\index.ts"
Features: jsc macros(2) shell tsconfig(2) 
Builtins: "bun:main" 
Elapsed: 41ms | User: 0ms | Sys: 0ms
RSS: 103.65MB | Peak: 103.65MB | Commit: 0.15GB | Faults: 25523

panic(main thread): Segmentation fault at address 0x8
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.12/wa143f0913AiggglEg59+2CkyyrIutq8Qw7u8Qu6soKonu3aqq4lY479zTuxygUmx+zTA2AQ

Stack Trace (bun.report)

Bun v1.1.12 (43f0913) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x00000008

@matthieuv-chabe matthieuv-chabe added the crash An issue that could cause a crash label Jul 5, 2024
@github-actions github-actions bot added runtime shell Something to do with Bun as a shell windows An issue that only occurs on Windows labels Jul 5, 2024
Copy link
Contributor

github-actions bot commented Jul 5, 2024

@matthieuv-chabe, the latest version of Bun is v1.1.17, but this crash was reported on Bun v1.1.12.

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

bun upgrade

@matthieuv-chabe
Copy link
Author

Yes exact same issue

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 shell Something to do with Bun as a shell windows An issue that only occurs on Windows
Projects
None yet
Development

No branches or pull requests

1 participant