This repository was archived by the owner on Jan 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
PANIC: Cursor not found: CursorKey { table_reference_id: TableInternalId(3), index: None } #56
Copy link
Copy link
Open
Description
Encounter a panic when running with a self developed fuzzing tool:
turso-go version:
github.com/tursodatabase/turso-go v0.2.2
10/27 10:16:14 [INFO] Worker 0 executing query 63: ALTER TABLE "tbl_826145" ADD COLUMN "col1" BLOB;
10/27 10:16:14 [INFO] Worker 0 executing query 64: SELECT "in_stock" FROM "products" WHERE "id" > 2147483647 LIMIT 6;
10/27 10:16:14 [INFO] Worker 0 executing query 65: INSERT INTO "logs" ("event", "ts") VALUES ('col1\tcol2\t41', 'Arrow → 78');
10/27 10:16:14 [INFO] Worker 0 executing query 66: WITH RECURSIVE "recursive_cte_28"(n) AS (SELECT 1 UNION ALL SELECT n+1 FROM "recursive_cte_28" WHERE n < 13) SELECT * FROM "recursive_cte_28";
10/27 10:16:14 [INFO] Worker 0 executing query 67: DELETE FROM "tbl_486198";
10/27 10:16:14 [INFO] Worker 0 executing query 68: SELECT "status", "user_id", "id" FROM "accounts" WHERE "status" LIKE '%a%' LIMIT 28;
10/27 10:16:14 [INFO] Worker 0 executing query 69: SELECT "status", "balance", "user_id" FROM "accounts" WHERE "id" > 2256 LIMIT 33;
10/27 10:16:14 [INFO] Worker 0 executing query 70: INSERT OR ABORT INTO "accounts" ("user_id", "balance", "status") VALUES (1207, -0.0, '');
thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/turso_core-0.2.0/vdbe/builder.rs:804:32:
Cursor not found: CursorKey { table_reference_id: TableInternalId(3), index: None }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at library/core/src/panicking.rs:225:5:
panic in a function that cannot unwind
stack backtrace:
0: 0x7f4661210022 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hdcfcb6d4c8489523
1: 0x7f46612355e3 - core::fmt::write::h8a494366950f23bb
2: 0x7f466120d693 - std::io::Write::write_fmt::h6556609fca33d0b1
3: 0x7f466120fe72 - std::sys::backtrace::BacktraceLock::print::hb2a626a81e06b2dc
4: 0x7f46612114a3 - std::panicking::default_hook::{{closure}}::h4f78485264f12d10
5: 0x7f4661211285 - std::panicking::default_hook::h2c66fc99e962531d
6: 0x7f4661211eb5 - std::panicking::rust_panic_with_hook::h33ac55f64bbd807d
7: 0x7f4661211c16 - std::panicking::begin_panic_handler::{{closure}}::h30e7cb89678a57fe
8: 0x7f4661210529 - std::sys::backtrace::__rust_end_short_backtrace::hed60f27456c16ced
9: 0x7f46612118dd - __rustc[de2ca18b4c54d5b8]::rust_begin_unwind
10: 0x7f46612328ed - core::panicking::panic_nounwind_fmt::h6c46f1098922b4b6
11: 0x7f4661232982 - core::panicking::panic_nounwind::he501508d405a4565
12: 0x7f4661232a45 - core::panicking::panic_cannot_unwind::h864cccdfd8b0af98
13: 0x7f4660bfe5ba - db_prepare
14: 0x7e90a7 - syscall15X
at /opt/vendor/github.com/ebitengine/purego/sys_amd64.s:86:0
thread caused non-unwinding panic. aborting.
SIGABRT: abort
PC=0x7f46b0b4295c m=5 sigcode=18446744073709551610
signal arrived during cgo execution
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels