Skip to content
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

process.exit results in a segmentation fault in v12.x #38377

Closed
zyscoder opened this issue Apr 24, 2021 · 3 comments
Closed

process.exit results in a segmentation fault in v12.x #38377

zyscoder opened this issue Apr 24, 2021 · 3 comments
Labels
confirmed-bug Issues with confirmed bugs. fs Issues and PRs related to the fs subsystem / file system. process Issues and PRs related to the process subsystem.

Comments

@zyscoder
Copy link

What steps will reproduce the bug?

Setup a node instance,

» node

and run the following javascript code.

fs.write(7,fs.promises.chown,(err, written, buffer)=>{})
process.exit()

Then the node instance occurs a segmentation fault.

How often does it reproduce? Is there a required condition?

This problem can always be triggered following the steps above.

What is the expected behavior?

If any error occurs, an exception or other similar error-reporting stuff should be thrown. There is no reason to abort the whole node process.

What do you see instead?

» node
Welcome to Node.js v12.21.0.
Type ".help" for more information.
> fs.write(7,fs.promises.chown,(err, written, buffer)=>{})
undefined
> process.exit()
[1]    160706 segmentation fault (core dumped)  /home/zys/Toolchains/node-v12.21.0/node                                                                                                                                                                                    

Additional information

@juanarbol juanarbol added the confirmed-bug Issues with confirmed bugs. label Apr 24, 2021
@XadillaX
Copy link
Contributor

refs #38365

@Ayase-252 Ayase-252 added fs Issues and PRs related to the fs subsystem / file system. process Issues and PRs related to the process subsystem. labels Apr 24, 2021
@aduh95
Copy link
Contributor

aduh95 commented Apr 24, 2021

Related: #37874 (comment)

@jasnell
Copy link
Member

jasnell commented Apr 27, 2021

Closing this as a duplicate of #37874.

@jasnell jasnell closed this as completed Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs. fs Issues and PRs related to the fs subsystem / file system. process Issues and PRs related to the process subsystem.
Projects
None yet
Development

No branches or pull requests

6 participants