oven-sh / bun

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

segfault #14533

Closed bernoussama closed 1 month ago

bernoussama commented 1 month ago

How can we reproduce the crash?

ran bun create hono bun-hono and cd bun-hono then bun run dev

while the dev server is running and also navigated to the url, i modified the index.ts to the following:

import { Hono } from "hono";

const app = new Hono();

app
  .get("/", (c) => {
    return c.text("Hello Hono!");
  })
  .get("/set-cookie");

export default app;

Relevant log output

$ bun run --hot src/index.ts Started server http://localhost:3000

Bun v1.1.27 (267afa29) Linux x64 (baseline) Linux Kernel v6.8.0 | glibc v2.39 CPU: sse42 popcnt avx avx2 Args: "bun" "run" "--hot" "src/index.ts" Features: jsc http_server tsconfig Builtins: "bun:main" Elapsed: 70295ms | User: 41ms | Sys: 44ms RSS: 1.07GB | Peak: 58.51MB | Commit: 1.07GB | Faults: 181

panic(main thread): Segmentation fault at address 0x38 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.27/Br1267afa2AigghgCu8rklE+xpRyvx+9C6q/j8C0zvs7Dsitn7Ckw/n7C8omy1Cgtpx1Cy8wKA2AwD

error: script "dev" was terminated by signal SIGILL (Illegal instruction) [1] 25473 illegal hardware instruction (core dumped) bun run dev

Stack Trace (bun.report)

Bun v1.1.27 (267afa2) on linux x86_64_baseline [RunCommand]

Segmentation fault at address 0x00000038

github-actions[bot] commented 1 month ago

@bernoussama, the latest version of Bun is v1.1.30, but this crash was reported on Bun v1.1.27.

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

bun upgrade
bernoussama commented 1 month ago

not reproduceable in the latest version, ig it's fixed.