Version
main
Platform
Subsystem
sqlite
What steps will reproduce the bug?
import { DatabaseSync } from 'node:sqlite';
const db = new DatabaseSync(':memory:', { allowExtension: true });
db.close();
db.enableLoadExtension(false);
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
methods should validate that the database is open and throw ERR_INVALID_STATE, consistent with neighboring APIs.
What do you see instead?
Calling enableLoadExtension() after close() terminates the process; setAuthorizer() has the same issue.
Additional information
No response
Version
main
Platform
Subsystem
sqlite
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
methods should validate that the database is open and throw
ERR_INVALID_STATE, consistent with neighboring APIs.What do you see instead?
Segmentation faultCalling
enableLoadExtension()afterclose()terminates the process;setAuthorizer()has the same issue.Additional information
No response