René's URL Explorer Experiment


Title: ffi: closed library still callable via fast path, SIGSEGV instead of ERR_FFI_LIBRARY_CLOSED · Issue #64854 · nodejs/node · GitHub

Open Graph Title: ffi: closed library still callable via fast path, SIGSEGV instead of ERR_FFI_LIBRARY_CLOSED · Issue #64854 · nodejs/node

X Title: ffi: closed library still callable via fast path, SIGSEGV instead of ERR_FFI_LIBRARY_CLOSED · Issue #64854 · nodejs/node

Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

Open Graph Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

X Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ffi: closed library still callable via fast path, SIGSEGV instead of ERR_FFI_LIBRARY_CLOSED","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nN/A\n```\n\n### Subsystem\n\nffi\n\n### What steps will reproduce the bug?\n\n`repro.c`\n```c\ndouble multiply_f64(double a, double b) {\n  return a * b;\n}\n```\n\nCompile it with\n```sh\n$ cc -shared -fPIC -o repro.so repro.c   # macOS: -o repro.dylib\n```\n\n`repro.js`\n```js\nimport { dlopen, suffix } from 'node:ffi';\n\nconst { lib, functions } = dlopen(`./repro.${suffix}`, {\n  multiply_f64: { arguments: ['f64', 'f64'], return: 'f64' },\n});\n\nfunction hot(a, b) { return functions.multiply_f64(a, b); }\n\n%PrepareFunctionForOptimization(hot);\nhot(2, 3);\n%OptimizeFunctionOnNextCall(hot);\n\nconsole.log('pre-close:', hot(2, 3));      // 6, now through the trampoline\n\nlib.close();\n\nconsole.log('after close:', hot(2, 3));    // SIGSEGV\n```\n\nRun it with\n```sh\n$ node --no-warnings --experimental-ffi --allow-natives-syntax repro.js\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe call after `close()` throws `ERR_FFI_LIBRARY_CLOSED`\n\n### What do you see instead?\n\n```console\npre-close: 6\nzsh: segmentation fault (core dumped)\n```\n\nThe call after `close()` throws `segmentation fault`\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-07-31T01:32:07Z","url":"https://github.com/nodejs/node/issues/64854"}

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/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:bc1f11cf-97d5-6e56-a8e5-ef4c803a2670
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB930:1258EF:64B75A:82EFF3:6AED2C98
html-safe-nonce0e09612f1f16f21bc71c5a8d9d18ff033e10058962a0f4c30e5d711a903468a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTMwOjEyNThFRjo2NEI3NUE6ODJFRkYzOjZBRUQyQzk4IiwidmlzaXRvcl9pZCI6IjM2OTcwODc5ODA2Mzc1MDI5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace1c1478a9bbfeecb20474f93b7c6c742b4aa521cebade628aff43e5fa6a68407
hovercard-subject-tagrepository:27193779
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/issues/64854
twitter:imagehttps://opengraph.githubassets.com/6701ff774a019ab03961e4f5c23132793d5ffb6262dcf42c44beee10ee866659/nodejs/node
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6701ff774a019ab03961e4f5c23132793d5ffb6262dcf42c44beee10ee866659/nodejs/node
og:image:altNode.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
turbo-cache-controlno-cache
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
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64854#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64854
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%2F64854
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/64854
Reloadhttps://github.com/nodejs/node/issues/64854
Reloadhttps://github.com/nodejs/node/issues/64854
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64854
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64854
#64860https://github.com/nodejs/node/pull/64860
ffi: closed library still callable via fast path, SIGSEGV instead of ERR_FFI_LIBRARY_CLOSEDhttps://github.com/nodejs/node/issues/64854#top
#64860https://github.com/nodejs/node/pull/64860
https://github.com/trivikr
ffiIssues and PRs related to experimental Foreign Function Interface support.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22ffi%22
https://github.com/trivikr
trivikrhttps://github.com/trivikr
on Jul 31, 2026https://github.com/nodejs/node/issues/64854#issue-5025505887
trivikrhttps://github.com/trivikr
on Jul 31, 2026https://github.com/nodejs/node/issues/64854#event-28753360131
trivikrhttps://github.com/trivikr
ffiIssues and PRs related to experimental Foreign Function Interface support.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22ffi%22
on Jul 31, 2026https://github.com/nodejs/node/issues/64854#event-28753360729
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#64860https://github.com/nodejs/node/pull/64860
on Aug 2, 2026https://github.com/nodejs/node/issues/64854#event-28850744389
nodejs-github-bothttps://github.com/nodejs-github-bot
on Aug 2, 2026https://github.com/nodejs/node/issues/64854#event-28850744408
ffi: reject fast calls after library closehttps://github.com/nodejs/node/commit/c55eb4acb18e2a3b7f996b2253723f0936bde263
c55eb4ahttps://github.com/nodejs/node/commit/c55eb4acb18e2a3b7f996b2253723f0936bde263
aduh95https://github.com/aduh95
on Aug 3, 2026https://github.com/nodejs/node/issues/64854#event-28901697439
ffi: reject fast calls after library closehttps://github.com/nodejs/node/commit/51f80269074008310ac9f93d610858408e5560c3
51f8026https://github.com/nodejs/node/commit/51f80269074008310ac9f93d610858408e5560c3
ffi: reject fast calls after library closehttps://github.com/nodejs/node/commit/17929a0ebab3f5e6732089f14410c27fd8601660
17929a0https://github.com/nodejs/node/commit/17929a0ebab3f5e6732089f14410c27fd8601660
ffi: reject fast calls after library closehttps://github.com/nodejs/node/commit/9b5642cbbf296d55efd5f8ba8e0b97dc0fead9ab
9b5642chttps://github.com/nodejs/node/commit/9b5642cbbf296d55efd5f8ba8e0b97dc0fead9ab
ffi: reject fast calls after library closehttps://github.com/nodejs/node/commit/33912103e77e16899f4c44ae98351598b6b3e809
3391210https://github.com/nodejs/node/commit/33912103e77e16899f4c44ae98351598b6b3e809
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64854
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64854
trivikrhttps://github.com/trivikr
ffiIssues and PRs related to experimental Foreign Function Interface support.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22ffi%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.