Skip to content

lib: properly processing JavaScript exceptions on async_hooks fatal error - #38106

Closed
legendecas wants to merge 3 commits into
nodejs:masterfrom
legendecas:async_hooks/fatal_error
Closed

lib: properly processing JavaScript exceptions on async_hooks fatal error#38106
legendecas wants to merge 3 commits into
nodejs:masterfrom
legendecas:async_hooks/fatal_error

Conversation

@legendecas

@legendecas legendecas commented Apr 6, 2021

Copy link
Copy Markdown
Member

JavaScript exceptions could be arbitrary values.

Status-quo of the behavior would result in TypeError in node internals

TypeError: Cannot read property 'stack' of null
    at fatalError (node:internal/async_hooks:161:16)

@nodejs-github-bot nodejs-github-bot added async_hooks Issues and PRs related to the async hooks subsystem. needs-ci PRs that need a full CI run. labels Apr 6, 2021
@legendecas
legendecas force-pushed the async_hooks/fatal_error branch 2 times, most recently from bdc1aa2 to 4f5bead Compare April 6, 2021 04:09
Comment thread lib/internal/async_hooks.js Outdated
Comment thread lib/internal/async_hooks.js Outdated
…rror

JavaScript exceptions could be arbitrary values.
@legendecas
legendecas force-pushed the async_hooks/fatal_error branch from 4f5bead to 56f756a Compare April 6, 2021 11:21
@nodejs-github-bot

This comment has been minimized.

@Flarna Flarna added author ready PRs with CI started, the required approvals, and no outstanding review comments. and removed author ready PRs with CI started, the required approvals, and no outstanding review comments. labels Apr 7, 2021
@Flarna

Flarna commented Apr 7, 2021

Copy link
Copy Markdown
Member

@legendecas Unfortunately it seems your test fails on windows (see https://ci.nodejs.org/job/node-test-binary-windows-js-suites/9219/)

@legendecas

Copy link
Copy Markdown
Member Author

@Flarna thanks, fixed.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@Flarna Flarna added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Apr 7, 2021
@jasnell
jasnell requested a review from addaleax April 7, 2021 13:58
Comment thread lib/internal/async_hooks.js Outdated
Co-authored-by: Anna Henningsen <github@addaleax.net>
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/37269/

Flarna pushed a commit that referenced this pull request Apr 8, 2021
JavaScript exceptions could be arbitrary values.

PR-URL: #38106
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
@Flarna

Flarna commented Apr 8, 2021

Copy link
Copy Markdown
Member

Landed in d861324

@Flarna Flarna closed this Apr 8, 2021
@legendecas
legendecas deleted the async_hooks/fatal_error branch April 9, 2021 17:13
targos pushed a commit that referenced this pull request May 1, 2021
JavaScript exceptions could be arbitrary values.

PR-URL: #38106
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
@danielleadams danielleadams mentioned this pull request May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooks Issues and PRs related to the async hooks subsystem. author ready PRs with CI started, the required approvals, and no outstanding review comments. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants