-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting ._handle
through --inspect with chrome developer tools crashes Node.js
#16949
Comments
Version: 8.9.1
I'm not sure if the "me too" is appreciated but I thought I might as well add my stack trace of seemingly the same problem |
@roderickObrist Upgrading to 8.9.2 (when it is released) should fix this. |
Why did this start asserting anyway? Can we go back to the way things were? In 8.8.1 In 8.9.2, it throws. This is an issue when, for example, using node-config to configure bunyan; somewhere in the chain node-config clones by accessing properties in the proto https://github.com/lorenwest/node-config/blob/master/lib/config.js#L1216, this now throws. Catching the error thrown here means that parent !== child and circular structures aren't caught (and that blows the call stack). To summarise, why can't it just be undefined again? Edited by @TimothyGu to fix formatting. |
Has this been fixed in #17665? |
Actually the OP was fixed in 8.9.2, and #16949 (comment) in #17665. Closing. |
If you try to get the value of
._handle
through chrome devtools using the--inspect
flag Node.js will crash with the error:C:\Program Files\nodejs\node.exe: c:\ws\src\util-inl.h:243: Assertion (object->InternalFieldCount()) > (0)' failed.
For example entering
process.stdin._handle
orhttp.createServer().listen()._handle
will crash Node.js. If you try to inspectprocess.stdin
or someting else with a.handle
and you expand it in devtool it will crash Node.js as well.The text was updated successfully, but these errors were encountered: