FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[bug fix v8.x] timers: fix a bug in error handling by apapirovski · Pull Request #20497 · nodejs/node · GitHub

/ node Public

[bug fix v8.x] timers: fix a bug in error handling - #20497

Closed
apapirovski wants to merge 1 commit into
nodejs:v8.x-stagingfrom
apapirovski:fix-v8.x-timers-bug
Closed

[bug fix v8.x] timers: fix a bug in error handling#20497
apapirovski wants to merge 1 commit into
nodejs:v8.x-stagingfrom
apapirovski:fix-v8.x-timers-bug

Conversation

apapirovski commented May 3, 2018
edited
Loading

Copy link
Copy Markdown
Contributor

This was fixed in master via a semver-major commit which can't be backported, at least not until we confirm that it doesn't cause unrelated issues.

When a timeout within a list of timeouts (that consists of only that specific timeout) throws during its execution, it's possible for the TimerWrap handle to become shared between both that list and an unref'd timeout created in the future. This fixes the bug by extending error handling in timeout execution to check for whether the current list is empty and if so do cleanup on it.

Fixes: #19970

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

When a timeout within a list of timeouts (that consists of only
that specific timeout) throws during its execution, it's possible
for the TimerWrap handle to become shared between both that list
and an unref'd timeout created in the future. This fixes the bug
by extending error handling in timeout execution to check for
whether the current list is empty and if so do cleanup on it.
apapirovski added the timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. label May 3, 2018
nodejs-github-bot added timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. v8.x labels May 3, 2018

Copy link
Copy Markdown
Contributor Author

apapirovski added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label May 4, 2018
MylesBorins pushed a commit that referenced this pull request May 4, 2018
When a timeout within a list of timeouts (that consists of only
that specific timeout) throws during its execution, it's possible
for the TimerWrap handle to become shared between both that list
and an unref'd timeout created in the future. This fixes the bug
by extending error handling in timeout execution to check for
whether the current list is empty and if so do cleanup on it.

PR-URL: #20497
Fixes: #19970
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>

Copy link
Copy Markdown
Contributor

landed in ff2bd60

MylesBorins closed this May 4, 2018
apapirovski deleted the fix-v8.x-timers-bug branch May 4, 2018 20:39
MylesBorins pushed a commit that referenced this pull request May 15, 2018
When a timeout within a list of timeouts (that consists of only
that specific timeout) throws during its execution, it's possible
for the TimerWrap handle to become shared between both that list
and an unref'd timeout created in the future. This fixes the bug
by extending error handling in timeout execution to check for
whether the current list is empty and if so do cleanup on it.

PR-URL: #20497
Fixes: #19970
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
MylesBorins mentioned this pull request May 15, 2018
MylesBorins pushed a commit that referenced this pull request May 15, 2018
When a timeout within a list of timeouts (that consists of only
that specific timeout) throws during its execution, it's possible
for the TimerWrap handle to become shared between both that list
and an unref'd timeout created in the future. This fixes the bug
by extending error handling in timeout execution to check for
whether the current list is empty and if so do cleanup on it.

PR-URL: #20497
Fixes: #19970
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL