Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

Tracing causes commands to hang when serialized on 4.1.0 #1253

Description

@jaredkrinke

If I enable tracing ("db.on('trace', …)") while a database is serialized ("db.serialize()"), the first command I try to execute appears hangs indefinitely. If either tracing or serialization is off, I don't see this issue.

For example, in the following code, the callback is never called:

var sqlite3 = require('sqlite3');
var db = new sqlite3.Database(":memory:");
db.serialize();
db.on("trace", console.log);
db.run("CREATE TABLE Test (Id INTEGER)", function (err) {
console.log(`Callback: ${err}`);
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions