mirror of
https://github.com/allankoechke/turso.git
synced 2026-12-04 17:23:05 +00:00
sqlite3_limbosqlitetestext_init had no return type, but SQLite calls an extension's init function as returning an int status code. SQLite then read whatever was left in the return register. It worked by luck: with full debug info, rustc at opt-level 0 leaves the callee's result in eax. With CARGO_PROFILE_DEV_DEBUG=line-tables-only it aligns the stack with push rax / pop rax around the call instead, the pop puts junk back in eax, and sqlite3 fails the .load with "error during initialization". This broke test-sqlite in CI. Return sqlite3_kvstore_init's status code.