oven-sh / bun

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

Illegal instruction at address 0x579130D #14161

Open firatoezcan opened 2 hours ago

firatoezcan commented 2 hours ago

How can we reproduce the crash?

Dunno, I was writing code like below where I missed the accumulator return at first

    const values = columns.reduce((acc, column) => {
        const value = args.input.collection[camelCase(column.name)];
        if (typeof value === "undefined") {
            return acc;
        }

        acc[column.name] = value;
        return acc;
    }, {} as Columns);

That code wasn't being executed however, the project itself is an Elysia web project that creates two https://github.com/porsager/postgres at startup, one with https://github.com/drizzle-team/drizzle-orm and the other with https://github.com/kysely-org/kysely-postgres-js

Also important could be that I was in debug mode with the Javascript Debug Terminal running on VSCode using the Bun extension.

Relevant log output

============================================================
Bun v1.1.27 (267afa29) Linux x64
Linux Kernel v6.5.13 | glibc v2.39
CPU: sse42 popcnt avx avx2
Args: "bun" "--watch" "src/main.ts"
Features: jsc bunfig dotenv(2) http_server transpiler_cache(2) tsconfig(8) 
Builtins: "bun:main" "node:buffer" "node:crypto" "node:fs" "node:fs/promises" "node:net" "node:os" "node:path" "node:perf_hooks" "node:stream" "node:string_decoder" "node:tls" "node:util/types" 
Elapsed: 357ms | User: 1716825ms | Sys: 9501ms
RSS: 0.61GB | Peak: 0.46GB | Commit: 0.61GB | Faults: 3

panic: Illegal instruction at address 0x579130D
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/la1267afa2AiqghwC+2jQyoo2uF+ru82Esi/j5E8h0j5Ek5xj5E6thl3D4/y99Dwwh63Dgh2rmDA3A6wpkvF

--- Bun is auto-restarting due to crash [time: 1727284145239] ---

Stack Trace (bun.report)

Bun v1.1.27 (267afa2) on linux x86_64 [AutoCommand]

Illegal instruction at address 0x0579130D

github-actions[bot] commented 2 hours ago

@firatoezcan, the latest version of Bun is v1.1.29, 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