-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
unref'd timers running in beforeExit timeΒ #1264
Copy link
Copy link
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
When working out this test case for #1152 I came up with this:
Note -- this requires the patch in #1152 to even terminate, or running Node.js 0.12+ which already has that fix.
I think what happens here is the blocking time causes the repeat time to trigger and the unreferenced timer gets executed in the
beforeExittimeframe (nodejs/node-v0.x-archive@a2eeb43) when it shouldn't be. This can result in your application not terminating when it should, and functions that should not be executed being run.This is a separate bug than #1151 (with fix #1152) and is not fixed by #1231