René's URL Explorer Experiment


Title: sqlite: session[Symbol.dispose]() silently ignores the in-use guard · Issue #65447 · nodejs/node · GitHub

Open Graph Title: sqlite: session[Symbol.dispose]() silently ignores the in-use guard · Issue #65447 · nodejs/node

X Title: sqlite: session[Symbol.dispose]() silently ignores the in-use guard · Issue #65447 · nodejs/node

Description: Version v27.0.0-pre (current main) Platform Linux ari-cachyos 7.1.8-1-cachyos #1 SMP PREEMPT_DYNAMIC Mon, 10 Aug 2026 19:39:40 +0000 x86_64 GNU/Linux Subsystem node:sqlite What steps will reproduce the bug? const { DatabaseSync, constant...

Open Graph Description: Version v27.0.0-pre (current main) Platform Linux ari-cachyos 7.1.8-1-cachyos #1 SMP PREEMPT_DYNAMIC Mon, 10 Aug 2026 19:39:40 +0000 x86_64 GNU/Linux Subsystem node:sqlite What steps will reproduce...

X Description: Version v27.0.0-pre (current main) Platform Linux ari-cachyos 7.1.8-1-cachyos #1 SMP PREEMPT_DYNAMIC Mon, 10 Aug 2026 19:39:40 +0000 x86_64 GNU/Linux Subsystem node:sqlite What steps will reproduce...

Opengraph URL: https://github.com/nodejs/node/issues/65447

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite: session[Symbol.dispose]() silently ignores the in-use guard","articleBody":"### Version\n\nv27.0.0-pre (current main)\n\n### Platform\n\n```text\nLinux ari-cachyos 7.1.8-1-cachyos #1 SMP PREEMPT_DYNAMIC Mon, 10 Aug 2026 19:39:40 +0000 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nnode:sqlite\n\n### What steps will reproduce the bug?\n\n```js\nconst { DatabaseSync, constants } = require('node:sqlite');\n\nfor (const [name, close] of [\n  ['close()', (session) => session.close()],\n  ['[Symbol.dispose]()', (session) => session[Symbol.dispose]()],\n]) {\n  const db = new DatabaseSync(':memory:');\n  db.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)');\n  const session = db.createSession({ table: 'data' });\n  db.exec(\"INSERT INTO data VALUES (1, 'value')\");\n\n  let attempted = false;\n  db.setAuthorizer(() => {\n    if (!attempted) {\n      attempted = true;\n      try {\n        close(session);\n        console.log(`${name}: no throw`);\n      } catch (error) {\n        console.log(`${name}: ${error.code}: ${error.message}`);\n      }\n    }\n    return constants.SQLITE_OK;\n  });\n\n  session.changeset();\n  db.setAuthorizer(null);\n  session.close();\n  db.close();\n}\n```\n\n### How often does it reproduce? Is there a required condition?\n\nEvery time disposal is attempted while the session is generating a changeset or patchset.\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`session[Symbol.dispose]()` should throw the same `ERR_INVALID_STATE` as `session.close()` when the session cannot be closed safely. `StatementSync` already follows this pattern: its disposal propagates the active-statement guard, with coverage in `test/parallel/test-sqlite-diagnostic-channel.js` under “subscriber cannot close the database or statement”.\n\nExpected output:\n\n```text\nclose(): ERR_INVALID_STATE: session is currently in use\n[Symbol.dispose](): ERR_INVALID_STATE: session is currently in use\n```\n\n### What do you see instead?\n\n```text\nclose(): ERR_INVALID_STATE: session is currently in use\n[Symbol.dispose](): no throw\n```\n\n`Session::Dispose()` catches and discards the exception from `Session::Close()`. The session remains open even though disposal appeared to succeed.\n\n### Additional information\n\nThe reentrancy guard added by #65349 works: `sqlite3session_delete()` is not called while changeset generation is active, so this does not reproduce the use-after-free that the guard prevents. The remaining bug is the silent no-op and inconsistent error propagation from `[Symbol.dispose]()`.\n","author":{"url":"https://github.com/arimxyer","@type":"Person","name":"arimxyer"},"datePublished":"2026-08-20T22:01:02Z","url":"https://github.com/nodejs/node/issues/65447"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7b8808ff-fd1a-7574-3b5d-37861b0dc0fa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC366:185F51:81A39F:AC4069:6AED2688
html-safe-nonce50d5f4638df95706d5599e956881f153639bc4adf3347e8e36c2eda682ee1037
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzY2OjE4NUY1MTo4MUEzOUY6QUM0MDY5OjZBRUQyNjg4IiwidmlzaXRvcl9pZCI6IjU5NDgyNDQzMTkwNjIwMDk0ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4fcf045fc378235d10be850f09ecd941b4240b971e2e83595a6aa8a265f9d60b
hovercard-subject-tagissue:5208267586
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65447/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9c7efa409efeec8f8c128de2dce02c09eb63629a24edae5a284dfaf7a1ae188c/nodejs/node/issues/65447
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9c7efa409efeec8f8c128de2dce02c09eb63629a24edae5a284dfaf7a1ae188c/nodejs/node/issues/65447
og:image:altVersion v27.0.0-pre (current main) Platform Linux ari-cachyos 7.1.8-1-cachyos #1 SMP PREEMPT_DYNAMIC Mon, 10 Aug 2026 19:39:40 +0000 x86_64 GNU/Linux Subsystem node:sqlite What steps will reproduce...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearimxyer
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/65447#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65447
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65447
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/65447
Reloadhttps://github.com/nodejs/node/issues/65447
Reloadhttps://github.com/nodejs/node/issues/65447
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues657 (657)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65447
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65447
#65449https://github.com/nodejs/node/pull/65449
sqlite: session[Symbol.dispose]() silently ignores the in-use guardhttps://github.com/nodejs/node/issues/65447#top
#65449https://github.com/nodejs/node/pull/65449
sqliteIssues and PRs related to the SQLite subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22sqlite%22
https://github.com/arimxyer
arimxyerhttps://github.com/arimxyer
on Aug 20, 2026https://github.com/nodejs/node/issues/65447#issue-5208267586
#65349https://github.com/nodejs/node/pull/65349
trivikrhttps://github.com/trivikr
sqliteIssues and PRs related to the SQLite subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22sqlite%22
on Aug 20, 2026https://github.com/nodejs/node/issues/65447#event-29772996388
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#65449https://github.com/nodejs/node/pull/65449
on Aug 28, 2026https://github.com/nodejs/node/issues/65447#event-30156656336
nodejs-github-bothttps://github.com/nodejs-github-bot
on Aug 28, 2026https://github.com/nodejs/node/issues/65447#event-30156656343
sqlite: throw on disposal of an in-use sessionhttps://github.com/nodejs/node/commit/2743045dc4db58b03f9fa5d8e1ad399436981da8
2743045https://github.com/nodejs/node/commit/2743045dc4db58b03f9fa5d8e1ad399436981da8
aduh95https://github.com/aduh95
on Aug 29, 2026https://github.com/nodejs/node/issues/65447#event-30208027241
sqlite: throw on disposal of an in-use sessionhttps://github.com/nodejs/node/commit/8ab894b971812748d22b9fe6f5d011d75d18c96e
8ab894bhttps://github.com/nodejs/node/commit/8ab894b971812748d22b9fe6f5d011d75d18c96e
sqlite: throw on disposal of an in-use sessionhttps://github.com/nodejs/node/commit/09202e8a6bd99313e82f39b491edb7f3bdbe936e
09202e8https://github.com/nodejs/node/commit/09202e8a6bd99313e82f39b491edb7f3bdbe936e
aduh95https://github.com/aduh95
on Sep 15, 2026https://github.com/nodejs/node/issues/65447#event-31161509909
sqlite: throw on disposal of an in-use sessionhttps://github.com/nodejs/node/commit/2ce0e2eb109034180eb0272a9a7efeee839ecbff
2ce0e2ehttps://github.com/nodejs/node/commit/2ce0e2eb109034180eb0272a9a7efeee839ecbff
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/65447
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65447
sqliteIssues and PRs related to the SQLite subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22sqlite%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.