Skip to content

BUN Segfault with @libsql/client >=0.15.0-pre.1 (Works with 0.14.0) - Looped Awaits in Transaction #313

Open
@Max-Villafranca

Description

@Max-Villafranca

Bun segfaults with @libsql/client >=0.15.0-pre.1 when executing a series of transactions, each containing a loop of awaited SQL update operations, with pauses between transaction bursts. version 0.14.0 works fine.

Bun v1.2.12 (32a47ae4) Windows x64
Windows v.win10_cu
CPU: sse42 avx avx2
Args: "C:\Users\max\.bun\bin\bun.exe" "bun_libsql_bug.ts"
Features: jsc process_dlopen
Builtins: "bun:main" "node:buffer" "node:child_process" "node:fs" "node:path"
Elapsed: 1135ms | User: 156ms | Sys: 78ms
RSS: 0.16GB | Peak: 0.16GB | Commit: 0.24GB | Faults: 39342

panic(main thread): Segmentation fault at address 0x24
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Bun bug report link here

How can we reproduce the crash?
clone bug repo:
[email protected]:Max-Villafranca/bun-libsql-segfault.git

execute in terminal:
bun run bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions