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 in Bun runtime #268

Open
tobowers opened this issue Jun 20, 2024 · 0 comments
Open

segfault in Bun runtime #268

tobowers opened this issue Jun 20, 2024 · 0 comments

Comments

@tobowers
Copy link

import { describe, it } from "bun:test";
import { CozoDb } from "cozo-node";

describe("database", () => {
  it("creates", async () => {
    const db = new CozoDb()
    const resp = await db.run("?[] <- [['hello', 'world!']]")
    // console.log("resp: ", resp)
  })
})

Running that simple test in bun will cause:

tests/database.spec.ts:
============================================================
Bun v1.1.13 (bd6a6051) macOS Silicon
Args: "bun" "test"
Features: jsc dotenv transpiler_cache(7) tsconfig(2) 
Builtins: "detect-libc" "node:assert" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:os" "node:path" "node:stream" "node:string_decoder" "node:url" "node:util" "node:util/types" 
Elapsed: 1019ms | User: 926ms | Sys: 148ms
RSS: 2.26GB | Peak: 2.26GB | Commit: 4.09GB | Faults: 139

panic(main thread): Segmentation fault at address 0x0
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/Mt1bd6a605AiogggF__22ipe_u17yqCmozyqC+p1yqCmozyqC_u17yqCA2AA

zsh: trace trap  bun test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant