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

SegFault when using NATS on WSL2 #11882

Open
btmnk opened this issue Jun 14, 2024 · 2 comments
Open

SegFault when using NATS on WSL2 #11882

btmnk opened this issue Jun 14, 2024 · 2 comments
Assignees
Labels
crash An issue that could cause a crash linux An issue that only occurs on Linux runtime

Comments

@btmnk
Copy link

btmnk commented Jun 14, 2024

How can we reproduce the crash?

Nats v2.26.0
Bun v1.1.13

https://github.com/btmnk/test-bun-nats

It only segfaults on WSL2 with Ubuntu 20 and 22 (both LTS versions)

When I tried creating a repro on CodeSandbox it worked fine so I assume it has something to do with WSL.
I only got that error after upgrading to bun 1.1.13, it works fine when using 1.0.9.

Relevant log output

============================================================
Bun v1.1.13 (bd6a6051) Linux x64
Args: "bun" "run" "index.ts"
Features: jsc transpiler_cache tsconfig
Builtins: "bun:main" "node:dns" "node:fs" "node:net" "node:path" "node:string_decoder" "node:tls" "node:util/types"
Elapsed: 48ms | User: 42ms | Sys: 10ms
RSS: 1.07GB | Peak: 77.41MB | Commit: 1.07GB | Faults: 0

panic(main thread): Segmentation fault at address 0x20
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.13/lr1bd6a605AiggggF2nk6kE+xyQ25i/jEA2AgC

[1]    692 illegal hardware instruction  bun run index.ts

Stack Trace (bun.report)

Bun v1.1.13 (bd6a605) on linux x86_64 [RunCommand]

Segmentation fault at address 0x00000020

@btmnk btmnk added the crash An issue that could cause a crash label Jun 14, 2024
@github-actions github-actions bot added linux An issue that only occurs on Linux runtime labels Jun 14, 2024
@puddleglum56
Copy link

Also having this same issue with v1.1.13 with NATS on WSL2. Downgrading Bun to v1.1.10 looks to have fixed it. Later versions have the seg fault.

@Jarred-Sumner
Copy link
Collaborator

I believe this is an issue in our usage of c-ares.

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 linux An issue that only occurs on Linux runtime
Projects
None yet
Development

No branches or pull requests

4 participants