You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(Session): prevent dangling pointers in DeleteAllSessions
Remove database_ref_.Reset() calls during DeleteAllSessions() iteration.
The issue: Reset() can trigger GC, which may finalize Session JS objects
that are still in our iteration list, creating dangling pointers → SIGSEGV.
Why this is safe:
- Our iteration only uses pure C/C++ ops (no Napi calls that trigger GC)
- When Sessions are later GC'd, Delete() returns early (session_ is nullptr)
- Napi::ObjectReference destructor handles reference cleanup automatically
0 commit comments