You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform:Linux vul337 4.15.0-91-generic new design of error handling #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: process
What steps will reproduce the bug?
Directly run the following code snippet using node:
require('process')._debugProcess('str')
How often does it reproduce? Is there a required condition?
No. This potential bug can always be reproduced.
What is the expected behavior?
The argument to process._debugProcess should be an integer, but we passed a string value into it. The function should throw an exception or other similar error-reporting stuff rather than crash the whole nodejs process.
The abort is unexpected, and we could probably do some checking to avoid it. But it's worth noting that process._debugProcess is not public API and is not intended to be used outside of core.
Edit: just realized the abort is caused by a check. Not sure if we should throw instead, maybe if we turn this into a public API.
What steps will reproduce the bug?
Directly run the following code snippet using node:
How often does it reproduce? Is there a required condition?
No. This potential bug can always be reproduced.
What is the expected behavior?
The argument to process._debugProcess should be an integer, but we passed a string value into it. The function should throw an exception or other similar error-reporting stuff rather than crash the whole nodejs process.
What do you see instead?
This is the stack dump produced during abort:
Additional information
The text was updated successfully, but these errors were encountered: