-
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
bug: v16.14.2 node::ResetStdio(): Assertion `!(err != 0) || (err == -1 && (*__errno_location ()) == 1)' failed. #42433
Comments
node problem.js > /root/problem.log 2>&1 & |
and what is in problem.js that will reproduce this? |
Just throw some errors you will get that error in your log and the program stopped. |
Temporary solution node problem.js > /root/problem.log &
ps aux | grep problem |
Can you post the output of |
guys I've got update |
today morning I got this: /usr/bin/node[3271]: ../src/node.cc:648:void node::ResetStdio(): Assertion `!(err != 0) || (err == -1 && (*__errno_location ()) == 1)' failed. here is the file: |
@bnoordhuis i'll send the logs when the error happens again (within 6 hours) |
Thanks. ENOTTY is not out of the ordinary. You can add |
@DaBigBlob did you have any luck capturing the error? |
same issuse here,I run node through the command
proxy.js is a classic http server and it prints infomation of requests, which is a lot! At the time the process crashed, the log.out has a size of 39661357 byte |
Looks like the amount of what was being printed has nothing to do with this problem, I got it in another run, same complain but with a tiny log.out. I guess running node as a background process and unhandled rejection are part of the required factors to trigger this bug. I'm unfamiliar with the TTY, could you PTAL @bnoordhuis https://github.com/nodejs/node/blob/v14.x/src/node.cc#L738-L740 |
I suggest trying with the latest v14.x but, cards on the table, v14.x is near its end of life and I don't plan on investing much time in that release line anymore. If it also happens with v16.x or newer, then it's a different story. |
v14.x is EOL now and since @DaBigBlob didn't follow up, I think the investigation here reached a dead end. Closing but can reopen when new information materializes. |
Version
v16.14.2
Platform
ubuntu 20.04
Subsystem
No response
What steps will reproduce the bug?
writing log to file from node
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
Fixed
What do you see instead?
core bug
Additional information
The text was updated successfully, but these errors were encountered: