-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
envs with no name crash when deleting/clearing #317
Comments
found if i deleted node_modules and |
So this potentially involves a node.js bug that has been resolved, you think? |
@kriszyp can you run this dockerfile and tell me if you get the same error? ideally you run it on a linux amd64 architecture:
|
found that this dockerille works fine:
Possible conclusion: bug with lmdb or library where 'clearing' the env fails, but clearing the database in the env works fine. Can i confirm that the lmdb env is meant to be clearable? |
okay wow i'm spamming this channel but epic new insight. on node v22, this bug only exists if the env's name isn't set.
no bug:
|
Hello!
i've a script that crashes node. filing this to either report bug or get schooling in how to use lmdb :P
I've a foo.ts script:
and when run twice back to back
rm -rf mydb && pnpm tsx ./foo.ts && pnpm tsx ./foo.ts
causes node to crash on the second run with this error:first time the foo.ts is run, it creates db, and second time it runs it seems to crash on on
env.clearSync()
.I reran
rm -rf mydb && pnpm tsx ./foo.ts && pnpm tsx ./foo.ts
many times becuase i noticed unusual race conditions.one time it would output:
no errors but
echo $?
did output 139.maybe 1 in 30 times of running it i get this error:
PS i know my project in the stacktrace is called
playingcbor
but cbor has no part to play in this script or bug.attached project files for context:
code.zip
has 3 files: package.json, pnpm-lock.yaml, foo.ts, and mydb/ which has the db resulting from running
rm -rf mydb && pnpm tsx ./foo.ts && pnpm tsx ./foo.ts
.I'm running this on nixos:
The text was updated successfully, but these errors were encountered: