TestSQLite/C fails
jnml@3900x:~/src/modernc.org/qbecc/lib$ go test -timeout 24h -run SQLite |& tee log
==2482== Memcheck, a memory error detector
==2482== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==2482== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==2482== Command: ./a.out
==2482==
==2482== Invalid read of size 4
==2482== at 0x50025E: __atomic_storeInt32 (sqlite3.c:262897)
==2482== by 0x424D8C: sqlite3PCacheBufferSetup_c8609e78 (sqlite3.c:56390)
==2482== by 0x4EE903: sqlite3_initialize (sqlite3.c:182942)
==2482== by 0x40D79B: main (speedtest1.c:3228)
==2482== Address 0xfffffffffefff268 is not stack'd, malloc'd or (recently) free'd
==2482==
==2482==
==2482== Process terminating with default action of signal 11 (SIGSEGV)
==2482== Access not within mapped region at address 0xFFFFFFFFFEFFF268
==2482== at 0x50025E: __atomic_storeInt32 (sqlite3.c:262897)
==2482== by 0x424D8C: sqlite3PCacheBufferSetup_c8609e78 (sqlite3.c:56390)
==2482== by 0x4EE903: sqlite3_initialize (sqlite3.c:182942)
==2482== by 0x40D79B: main (speedtest1.c:3228)
==2482== If you believe this happened as a result of a stack
==2482== overflow in your program's main thread (unlikely but
==2482== possible), you can try to increase the size of the
==2482== main thread stack using the --main-stacksize= flag.
==2482== The main thread stack size used in this run was 8388608.
==2482==
==2482== HEAP SUMMARY:
==2482== in use at exit: 4,144 bytes in 2 blocks
==2482== total heap usage: 3 allocs, 1 frees, 4,168 bytes allocated
==2482==
==2482== LEAK SUMMARY:
==2482== definitely lost: 0 bytes in 0 blocks
==2482== indirectly lost: 0 bytes in 0 blocks
==2482== possibly lost: 0 bytes in 0 blocks
==2482== still reachable: 4,144 bytes in 2 blocks
==2482== of which reachable via heuristic:
==2482== length64 : 48 bytes in 1 blocks
==2482== suppressed: 0 bytes in 0 blocks
==2482== Reachable blocks (those to which a pointer was found) are not shown.
==2482== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==2482==
==2482== For lists of detected and suppressed errors, rerun with: -s
==2482== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
--- FAIL: TestSQLite (8.58s)
all_test.go:671: FAIL err=signal: segmentation fault
FAIL
exit status 1
FAIL modernc.org/qbecc/lib 8.587s
jnml@3900x:~/src/modernc.org/qbecc/lib$