Title: sqlite: segfault when a SQLTagStore query contains only a comment · Issue #65149 · nodejs/node · GitHub
Open Graph Title: sqlite: segfault when a SQLTagStore query contains only a comment · Issue #65149 · nodejs/node
X Title: sqlite: segfault when a SQLTagStore query contains only a comment · Issue #65149 · nodejs/node
Description: Version v27.0.0-pre (main @ e2d7b34); reproduces on any build containing 8fc7341 Platform Darwin 25.6.0 arm64 Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require('node:sqlite'); const db = new DatabaseSyn...
Open Graph Description: Version v27.0.0-pre (main @ e2d7b34); reproduces on any build containing 8fc7341 Platform Darwin 25.6.0 arm64 Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require('n...
X Description: Version v27.0.0-pre (main @ e2d7b34); reproduces on any build containing 8fc7341 Platform Darwin 25.6.0 arm64 Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require(...
Opengraph URL: https://github.com/nodejs/node/issues/65149
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite: segfault when a SQLTagStore query contains only a comment","articleBody":"### Version\n\nv27.0.0-pre (`main` @ e2d7b341640); reproduces on any build containing 8fc73417fbb\n\n### Platform\n\n```text\nDarwin 25.6.0 arm64\n```\n\n### Subsystem\n\nsqlite\n\n### What steps will reproduce the bug?\n\n```js\nconst { DatabaseSync } = require('node:sqlite');\nconst db = new DatabaseSync(':memory:');\nconst store = db.createTagStore();\nstore.run`-- comment`;\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways. All four query methods crash: `run`, `get`, `all`, and `iterate`.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nA thrown error, like the equivalent non-tag-store path produces:\n\n```js\ndb.prepare('-- comment').run(); // throws: statement has been finalized\n```\n\n### What do you see instead?\n\nA segfault:\n\n```\n* thread #1, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)\n frame #0: sqlite3_clear_bindings(pStmt=0x0000000000000000) at sqlite3.c:93850\n frame #1: node::sqlite::SQLTagStore::ResetAndBindStatement(...) at node_sqlite.cc:3442\n frame #2: node::sqlite::SQLTagStore::Run(...) at node_sqlite.cc:3477\n```\n\n### Additional information\n\nThe crash appears to have been introduced by #65041.","author":{"url":"https://github.com/TrevorBurnham","@type":"Person","name":"TrevorBurnham"},"datePublished":"2026-08-08T23:53:27Z","url":"https://github.com/nodejs/node/issues/65149"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:26d7eec5-f6bd-a89d-f014-9cbc6a003150 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 883E:A2B38:315A69:3FC174:6AED1C62 |
| html-safe-nonce | 4afa0777cc98a55c9b315a363d3bb9a53df361ea56c6fb98467d3d766142b5d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODNFOkEyQjM4OjMxNUE2OTozRkMxNzQ6NkFFRDFDNjIiLCJ2aXNpdG9yX2lkIjoiNDY1MjkyMjE3NzMyMzg2NzIzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c15a967ad95229cb8102b75b44b43569b3738b19d140abaf1879439d3699e145 |
| hovercard-subject-tag | issue:5100062268 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49af4fb3273354436deeaef121d503a31ce18cc35ef65f1733e13ce7532c75a4/nodejs/node/issues/65149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49af4fb3273354436deeaef121d503a31ce18cc35ef65f1733e13ce7532c75a4/nodejs/node/issues/65149 |
| og:image:alt | Version v27.0.0-pre (main @ e2d7b34); reproduces on any build containing 8fc7341 Platform Darwin 25.6.0 arm64 Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require('n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TrevorBurnham |
| hostname | github.com |
| expected-hostname | github.com |
| None | 120085d0bcec1f427e3ab45302c8b95f873d26ad21984dc86d62ab2c10158f41 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e12fd03aa775dceadc5a793c3a0791e43ca256bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width