Skip to content

Build - fix(Session): prevent use-after-free when database is GC'd before session The Session class was using a raw DatabaseSync* pointer without holding a reference to keep the database object alive. When JavaScript lost its reference to the DatabaseSync and GC ran, the database destructor would be called while Sessions still referenced it, causing SIGSEGV on Alpine Linux. Fix: Add Napi::ObjectReference database_ref_ to Session class, matching the pattern used by StatementSync to prevent the same issu... #242

Build - fix(Session): prevent use-after-free when database is GC'd before session The Session class was using a raw DatabaseSync* pointer without holding a reference to keep the database object alive. When JavaScript lost its reference to the DatabaseSync and GC ran, the database destructor would be called while Sessions still referenced it, causing SIGSEGV on Alpine Linux. Fix: Add Napi::ObjectReference database_ref_ to Session class, matching the pattern used by StatementSync to prevent the same issu...

Build - fix(Session): prevent use-after-free when database is GC'd before session The Session class was using a raw DatabaseSync* pointer without holding a reference to keep the database object alive. When JavaScript lost its reference to the DatabaseSync and GC ran, the database destructor would be called while Sessions still referenced it, causing SIGSEGV on Alpine Linux. Fix: Add Napi::ObjectReference database_ref_ to Session class, matching the pattern used by StatementSync to prevent the same issu... #242

Re-run triggered January 26, 2026 22:41
Status Success
Total duration 3m 0s
Artifacts 10

build.yml

on: push
Matrix: prebuild-linux-glibc
Matrix: prebuild-linux-musl
Matrix: test-ubuntu
Matrix: test-api-compatibility
Matrix: test-mac-win
Matrix: test-alpine
publish
publish
Fit to window
Zoom out
Zoom in