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

Segmentation fault when connecting to cassandra-driver #11890

Closed
Darker-Ink opened this issue Jun 15, 2024 · 2 comments
Closed

Segmentation fault when connecting to cassandra-driver #11890

Darker-Ink opened this issue Jun 15, 2024 · 2 comments
Labels
crash An issue that could cause a crash linux An issue that only occurs on Linux runtime

Comments

@Darker-Ink
Copy link

How can we reproduce the crash?

Using this simple code:

import { Client } from "@kastelapp/cassandra-driver"; // custom fork of the library, does not change anything meaningful

const client = new Client({
    keyspace: "keyspace",
    contactPoints: ["localhost"],
    credentials: {
        username: "",
        password: ""
    },
    localDataCenter: "datacenter1"
})

try {
    await client.connect();
    console.log("Connected to Cassandra");
} catch (error) {
    console.error("Failed to connect to Cassandra", error);
}

before it can even connect it Segmentation fault's

Relevant log output

➜  Backend git:(ink/messages) ✗ bun run src/fixtest.ts
============================================================
Bun v1.1.13 (bd6a6051) Linux x64
Args: "bun" "run" "src/fixtest.ts"
Features: jsc transpiler_cache(2) tsconfig_paths tsconfig
Builtins: "bun:main" "node:buffer" "node:crypto" "node:dns" "node:events" "node:fs" "node:https" "node:net" "node:os" "node:path" "node:stream" "node:string_decoder" "node:tls" "node:url" "node:util" "node:util/types" "node:vm"
Elapsed: 80ms | User: 86ms | Sys: 0ms
RSS: 1.07GB | Peak: 91.56MB | 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:


[1]    9252 illegal hardware instruction  bun run src/fixtest.ts
➜  Backend git:(ink/messages) ✗

Stack Trace (bun.report)

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

Segmentation fault at address 0x00000020

@Darker-Ink Darker-Ink added the crash An issue that could cause a crash label Jun 15, 2024
@github-actions github-actions bot added linux An issue that only occurs on Linux runtime labels Jun 15, 2024
@Jarred-Sumner
Copy link
Collaborator

Duplicate of #11882

@Jarred-Sumner
Copy link
Collaborator

We are tracking this in #11882, please follow along in that issue

@Jarred-Sumner Jarred-Sumner closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2024
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

2 participants