René's URL Explorer Experiment


Title: localStorage: a malformed backing file aborts the process via CHECK · Issue #65878 · nodejs/node · GitHub

Open Graph Title: localStorage: a malformed backing file aborts the process via CHECK · Issue #65878 · nodejs/node

X Title: localStorage: a malformed backing file aborts the process via CHECK · Issue #65878 · nodejs/node

Description: Version v27.0.0-pre (9f7ae86d8b5) Platform Darwin 25.6.0 arm64 Subsystem webstorage, sqlite What steps will reproduce the bug? src/node_webstorage.cc asserts the SQLite type of every column it reads, but the backing file is a user-specif...

Open Graph Description: Version v27.0.0-pre (9f7ae86d8b5) Platform Darwin 25.6.0 arm64 Subsystem webstorage, sqlite What steps will reproduce the bug? src/node_webstorage.cc asserts the SQLite type of every column it read...

X Description: Version v27.0.0-pre (9f7ae86d8b5) Platform Darwin 25.6.0 arm64 Subsystem webstorage, sqlite What steps will reproduce the bug? src/node_webstorage.cc asserts the SQLite type of every column it read...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"localStorage: a malformed backing file aborts the process via CHECK","articleBody":"### Version\n\nv27.0.0-pre (`9f7ae86d8b5`)\n\n### Platform\n\n```text\nDarwin 25.6.0 arm64\n```\n\n### Subsystem\n\nwebstorage, sqlite\n\n### What steps will reproduce the bug?\n\n`src/node_webstorage.cc` asserts the SQLite type of every column it reads, but the backing file is a user-specified path. Node's own tables are `STRICT`, but the DDL is `CREATE TABLE IF NOT EXISTS`, so a file that already contains tables of those names is adopted as-is, `STRICT` or not.\n\n```js\n// craft.cjs\nconst { DatabaseSync } = require('node:sqlite');\nconst out = '/tmp/ws.db';\nfor (const s of ['', '-wal', '-shm']) require('node:fs').rmSync(out + s, { force: true });\n\n// Node's schema, minus STRICT. BLOB has no affinity, so a TEXT value stays TEXT.\nconst db = new DatabaseSync(out);\ndb.exec(`\n  CREATE TABLE nodejs_webstorage(\n    key BLOB NOT NULL, value BLOB NOT NULL, PRIMARY KEY(key));\n  CREATE TABLE nodejs_webstorage_state(\n    max_size INTEGER NOT NULL DEFAULT 10485760, total_size INTEGER NOT NULL,\n    schema_version INTEGER NOT NULL DEFAULT 1,\n    single_row_ INTEGER NOT NULL DEFAULT 1 CHECK(single_row_ = 1),\n    PRIMARY KEY(single_row_));\n`);\n// A real UTF-16LE key, so that lookups still match; only the value is TEXT.\ndb.prepare('INSERT INTO nodejs_webstorage (key, value) VALUES (?, ?)')\n  .run(Buffer.from('greeting', 'utf16le'), 'hello');\ndb.prepare('INSERT INTO nodejs_webstorage_state (total_size, schema_version)' +\n  ' VALUES (0, 1)').run();\ndb.close();\n```\n\n```console\n$ node craft.cjs\n$ node --localstorage-file=/tmp/ws.db -e \"localStorage.getItem('greeting')\"\n```\n\n### How often does it reproduce? Is there a required condition?\n\nThe only condition is that the file exists with the wrong stored type.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nA thrown error.\n\n### What do you see instead?\n\n`SIGABRT`, exit 134:\n\n```\n#  node[96447]: MaybeLocal\u003cValue> node::webstorage::Storage::Load(Local\u003cName>)\n#     at ../src/node_webstorage.cc:354\n#  Assertion failed: sqlite3_column_type(stmt.get(), 0) == 4\n```\n\n### Additional information\n\nSeparately, line 187 re-runs `init_sql_v0` and overwrites the result of the `sqlite3_prepare_v2()` five lines above it, so prepare failures go unreported. Given a `nodejs_webstorage_state` table with no `schema_version` column, the real error is replaced by `Error: bad parameter or other API misuse`.","author":{"url":"https://github.com/TrevorBurnham","@type":"Person","name":"TrevorBurnham"},"datePublished":"2026-09-07T15:12:25Z","url":"https://github.com/nodejs/node/issues/65878"}

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:e0b3e9b0-3118-e22a-4edf-a6398f9290be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA724:11DC4A:7912E:A1C51:6AED0493
html-safe-nonce663c64ddded3279e96df0ce5fab775f1064e0c570eb22b35dcae8f7f4843b60c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzI0OjExREM0QTo3OTEyRTpBMUM1MTo2QUVEMDQ5MyIsInZpc2l0b3JfaWQiOiIzMjgzMDAyNzk2Mjg2MjkxMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc7895b36fe86eeec38a917a4758d32372e5b19cbd6c900d11daba9e0cb151a82
hovercard-subject-tagissue:5376414914
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/65878/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d6242bf9f2f3166f41da0c177001271ebff214071b63138212640a59fe90200c/nodejs/node/issues/65878
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d6242bf9f2f3166f41da0c177001271ebff214071b63138212640a59fe90200c/nodejs/node/issues/65878
og:image:altVersion v27.0.0-pre (9f7ae86d8b5) Platform Darwin 25.6.0 arm64 Subsystem webstorage, sqlite What steps will reproduce the bug? src/node_webstorage.cc asserts the SQLite type of every column it read...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTrevorBurnham
hostnamegithub.com
expected-hostnamegithub.com
None21e10c535436b2122cfb44c76dfb4af296e371850fb60de16776f8a64e5c3ed8
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
release302a6d707c3288a5f951258a2fa3e926b8c8f8cf
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/65878#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65878
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%2F65878
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/65878
Reloadhttps://github.com/nodejs/node/issues/65878
Reloadhttps://github.com/nodejs/node/issues/65878
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)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/65878
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65878
#65879https://github.com/nodejs/node/pull/65879
localStorage: a malformed backing file aborts the process via CHECKhttps://github.com/nodejs/node/issues/65878#top
#65879https://github.com/nodejs/node/pull/65879
sqliteIssues and PRs related to the SQLite subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22sqlite%22
https://github.com/TrevorBurnham
TrevorBurnhamhttps://github.com/TrevorBurnham
on Sep 7, 2026https://github.com/nodejs/node/issues/65878#issue-5376414914
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 Sep 8, 2026https://github.com/nodejs/node/issues/65878#event-30723026585
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
8812357https://github.com/nodejs/node/commit/8812357aff40f5193a3bb70ea624b79552d0dd04
on Sep 26, 2026https://github.com/nodejs/node/issues/65878#event-31876085248
pullhttps://github.com/apps/pull
on Sep 26, 2026https://github.com/nodejs/node/issues/65878#event-31876136394
src: throw on a malformed localStorage filehttps://github.com/Jahid11978/node/commit/8812357aff40f5193a3bb70ea624b79552d0dd04
8812357https://github.com/Jahid11978/node/commit/8812357aff40f5193a3bb70ea624b79552d0dd04
aduh95https://github.com/aduh95
on Sep 27, 2026https://github.com/nodejs/node/issues/65878#event-31936995870
src: throw on a malformed localStorage filehttps://github.com/nodejs/node/commit/44a176127a62a8de7fb92e2e1d875691424332b2
44a1761https://github.com/nodejs/node/commit/44a176127a62a8de7fb92e2e1d875691424332b2
HoonDongKanghttps://github.com/HoonDongKang
on Sep 28, 2026https://github.com/nodejs/node/issues/65878#event-31971105934
src: throw on a malformed localStorage filehttps://github.com/HoonDongKang/node/commit/b9bad389f2cc5f6b4677be865c1b7ae7c4eaf253
b9bad38https://github.com/HoonDongKang/node/commit/b9bad389f2cc5f6b4677be865c1b7ae7c4eaf253
aduh95https://github.com/aduh95
on Sep 28, 2026https://github.com/nodejs/node/issues/65878#event-32031888296
src: throw on a malformed localStorage filehttps://github.com/nodejs/node/commit/de34ddcf95ddc5eb4da9924fe9f760b0e4d85edc
de34ddchttps://github.com/nodejs/node/commit/de34ddcf95ddc5eb4da9924fe9f760b0e4d85edc
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/65878
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65878
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.