oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
72.76k stars 2.64k forks source link

Segmentation fault #12528

Open atbe opened 1 month ago

atbe commented 1 month ago

How can we reproduce the crash?

No response

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.18 (5a0b935) on linux x86_64baseline []

Segmentation fault at address 0x00000167

Jarred-Sumner commented 1 month ago

Please let us know if you still run into this in the canary build of Bun

bun upgrade --canary
7f8ddd commented 1 month ago

Please let us know if you still run into this in the canary build of Bun

bun upgrade --canary

Bun v1.1.20-canary (ae19489) on linux x86_64 [RunCommand]

Segmentation fault at address 0x00000012

Features: jsc, abort_signal, dotenv, fetch, http_server, transpiler_cache, tsconfig

7f8ddd commented 1 month ago

Please let us know if you still run into this in the canary build of Bun

bun upgrade --canary

I can't come up with a reproduction but it happened when my application was basically idle and just updating some data. Each fetch request is ~1 min apart.

atbe commented 1 month ago

@Jarred-Sumner this is coming from a worker in our network, so its challenging to get them to run the canary build without building a unique binary just for them -- we'll be upgrading to the latest version of bun soon and hopefully the error is fixed there. Otherwise we'll keep walking the stable versions with the hopes that it gets resolved.

Is there any other info I can provide that would make it easier to debug this?

Jarred-Sumner commented 1 month ago

@atbe bun v1.1.20 has the same code now that the canary did

So if it’s not fixed in that version then it still isn’t fixed.

It seemed like it could’ve been a stackoverflow in the http client @cirospaciari fixed.