Repository navigation
setTimeout(function(){throw null},0) crashes toplevel #12373
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.domainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Description
Activity
- addedreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
on Apr 12, 2017 Can reproduce on Windows with 8.0.0rc:
> repl.js:291 } else if (e.stack && self.replMode === exports.REPL_MODE_STRICT) { ^ TypeError: Cannot read property 'stack' of null at Domain.debugDomainError (repl.js:291:17) at emitOne (events.js:115:13) at Domain.emit (events.js:210:7) at Domain._errorHandler (domain.js:118:23) at process._fatalException (bootstrap_node.js:311:33)- addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Apr 12, 2017 repro on Windows with v4 v6, v7, v8, Ubuntu v7
- addeddomainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.and removedgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Apr 13, 2017 Looks like a domain thing? I'm removing
good first contribbecause I feel like this won't be particularly clear.Looks like a domain thing? I'm removing good first contrib because I feel like this won't be particularly clear
IMHO just needs an
e &&as inrepl.js:291 } else if (e && e.stack && self.replMode === exports.REPL_MODE_STRICT) {
Reacted by Anna HenningsenI think this issue should be closed?
I don't think this was actually fixed, #12400 wasn't merged.
Seeing as this is unhandled - I'll take a shot.
- added a commit that references this issue
on Jul 17, 2017 - added a commit that references this issue
on Jul 19, 2017 - added a commit that references this issue
on Jul 22, 2017 - added a commit that references this issue
on Jul 24, 2017
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.domainIssues and PRs related to the domain subsystem.Issues and PRs related to the domain subsystem.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Linux localhost.hsd1.tn.comcast.net 4.10.8-200.fc25.x86_64 #1 SMP Fri Mar 31 13:20:22 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxtimerIf I run
the REPL crashes with
Obviously such code is buggy (and would normally cause a crash). However, I don’t think that it should crash the toplevel, hence this report.