Title: "Maximum call stack size exceeded" causes a crash in "async_hooks" module · Issue #37989 · nodejs/node · GitHub
Open Graph Title: "Maximum call stack size exceeded" causes a crash in "async_hooks" module · Issue #37989 · nodejs/node
X Title: "Maximum call stack size exceeded" causes a crash in "async_hooks" module · Issue #37989 · nodejs/node
Description: Version: v14.15.1 Platform: Linux 5.8.0-38-generic #43~20.04.1-Ubuntu SMP Tue Jan 12 16:39:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem: async_hooks What steps will reproduce the bug? Setup a node instance, » node and run the fol...
Open Graph Description: Version: v14.15.1 Platform: Linux 5.8.0-38-generic #43~20.04.1-Ubuntu SMP Tue Jan 12 16:39:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem: async_hooks What steps will reproduce the bug? Setup...
X Description: Version: v14.15.1 Platform: Linux 5.8.0-38-generic #43~20.04.1-Ubuntu SMP Tue Jan 12 16:39:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem: async_hooks What steps will reproduce the bug? Setup...
Opengraph URL: https://github.com/nodejs/node/issues/37989
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Maximum call stack size exceeded\" causes a crash in \"async_hooks\" module","articleBody":"\u003c!--\r\nThank you for reporting an issue.\r\n\r\nThis issue tracker is for bugs and issues found within Node.js core.\r\nIf you require more general support please file an issue on our help\r\nrepo. https://github.com/nodejs/help\r\n\r\n\r\nPlease fill in as much of the template below as you're able.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or output of `\"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { \"x64\" } else { \"x86\" })\"` in PowerShell console (Windows)\r\nSubsystem: if known, please specify affected core module name\r\n--\u003e\r\n\r\n* **Version**: v14.15.1\r\n* **Platform**: Linux 5.8.0-38-generic #43~20.04.1-Ubuntu SMP Tue Jan 12 16:39:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux\r\n* **Subsystem**: async_hooks\r\n\r\n### What steps will reproduce the bug?\r\nSetup a node instance,\r\n```\r\n» node\r\n```\r\nand run the following javascript code.\r\n```\r\nasync_hooks.createHook({after:new async_hooks.AsyncResource('str').bind(()=\u003e{})}).enable();\r\n```\r\nThen the node instance crashes.\r\n\u003c!--\r\nEnter details about your bug, preferably a simple code snippet that can be\r\nrun using `node` directly without installing third-party dependencies.\r\n--\u003e\r\n\r\n### How often does it reproduce? Is there a required condition?\r\nThis abort can always be triggered following the steps above.\r\n\r\n### What is the expected behavior?\r\nIf any error occurs, an exception or other similar error-reporting stuff should be thrown. There is no reason to abort the whole node process.\r\n\u003c!--\r\nIf possible please provide textual output instead of screenshots.\r\n--\u003e\r\n\r\n### What do you see instead?\r\n```\r\n» node\r\nWelcome to Node.js v14.15.1.\r\nType \".help\" for more information.\r\n\u003e async_hooks.createHook({after:new async_hooks.AsyncResource('str').bind(()=\u003e{})}).enable();\r\nAsyncHook {\r\n [Symbol(init)]: undefined,\r\n [Symbol(before)]: undefined,\r\n [Symbol(after)]: [Function: bound runInAsyncScope] {\r\n asyncResource: AsyncResource {\r\n [Symbol(async_id_symbol)]: 26,\r\n [Symbol(trigger_async_id_symbol)]: 5,\r\n [Symbol(destroyed)]: [Object]\r\n }\r\n },\r\n [Symbol(destroy)]: undefined,\r\n [Symbol(promiseResolve)]: undefined\r\n}\r\n\u003e RangeError: Maximum call stack size exceeded\r\n at process._rawDebug (internal/process/per_thread.js:53:30)\r\n at fatalError (internal/async_hooks.js:159:13)\r\n at emitHook (internal/async_hooks.js:234:5)\r\n at emitAfterScript (internal/async_hooks.js:480:5)\r\n at AsyncResource.runInAsyncScope (async_hooks.js:198:9)\r\n at emitHook (internal/async_hooks.js:230:38)\r\n at emitAfterScript (internal/async_hooks.js:480:5)\r\n at AsyncResource.runInAsyncScope (async_hooks.js:198:9)\r\n at emitHook (internal/async_hooks.js:230:38)\r\n at emitAfterScript (internal/async_hooks.js:480:5) \r\n```\r\n\u003c!--\r\nIf possible please provide textual output instead of screenshots.\r\n--\u003e\r\n\r\n### Additional information\r\n\r\n\u003c!--\r\nTell us anything else you think we should know.\r\n--\u003e\r\n","author":{"url":"https://github.com/zyscoder","@type":"Person","name":"zyscoder"},"datePublished":"2021-03-30T16:48:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/37989/node/issues/37989"}
| 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:022d4731-745f-56f9-81ee-fa8bcb93e95b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 989C:245E0E:3132EC:419831:6A4C22BE |
| html-safe-nonce | e418bcb7325d19cacd0c7b0fde05db5bc83562bcf5844a90a077581fce9064e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODlDOjI0NUUwRTozMTMyRUM6NDE5ODMxOjZBNEMyMkJFIiwidmlzaXRvcl9pZCI6IjY1Mzg3NDgxNTg0MTg4ODczNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ffd46c688fedc152eeb4e245d16f0c4302e296db5e6631a1c1e603e15c65526d |
| hovercard-subject-tag | issue:844869433 |
| 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/37989/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4264b7b305978dc599c9e874cc282261623de1a8e88662724fb692931fe6c332/nodejs/node/issues/37989 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4264b7b305978dc599c9e874cc282261623de1a8e88662724fb692931fe6c332/nodejs/node/issues/37989 |
| og:image:alt | Version: v14.15.1 Platform: Linux 5.8.0-38-generic #43~20.04.1-Ubuntu SMP Tue Jan 12 16:39:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem: async_hooks What steps will reproduce the bug? Setup... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zyscoder |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| 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 | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width