Skip to content

fix: node js crash in prod build in linux#2782

Merged
abose merged 2 commits intomainfrom
xx
Apr 3, 2026
Merged

fix: node js crash in prod build in linux#2782
abose merged 2 commits intomainfrom
xx

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented Apr 3, 2026

When we upgraded lmdb, the lmdb stored data format seem to have chnaged.

So now we try to restore from the saved dump file if we cant recover.

abose added 2 commits April 3, 2026 23:07
lmdb.open() on a corrupted data.mdb causes a native SIGSEGV that
try/catch cannot intercept, crashing phnode on startup. This affects
users upgrading from older lmdb versions. The fix validates DB integrity
in a subprocess before opening — if the child crashes, we delete the
corrupt files and restore from the periodic JSON dump.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2026

@abose abose merged commit a97d1a6 into main Apr 3, 2026
19 of 21 checks passed
@abose abose deleted the xx branch April 3, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant