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
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
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.
Activity
[-]v16.14.2 node::ResetStdio(): Assertion `!(err != 0) || (err == -1 && (*__errno_location ()) == 1)' failed.[/-][+]bug: v16.14.2 node::ResetStdio(): Assertion `!(err != 0) || (err == -1 && (*__errno_location ()) == 1)' failed.[/+]fzn0x commentedon Mar 22, 2022
mscdex commentedon Mar 22, 2022
and what is in problem.js that will reproduce this?
fzn0x commentedon Mar 22, 2022
Just throw some errors you will get that error in your log and the program stopped.
fzn0x commentedon Mar 23, 2022
Temporary solution
bnoordhuis commentedon Mar 24, 2022
Can you post the output of
strace -fe ioctl node ...? I'd like to know what the actual error is and for what file descriptor.DaBigBlob commentedon Feb 9, 2023
guys I've got update
DaBigBlob commentedon Feb 9, 2023
@mscdex
today morning I got this:
here is the file:

https://github.com/DaBigBlob/temp-node-problem/blob/main/raw_ws.js
(possible culprit: line 164 to 169)
here is the output log:
bnoordhuis commentedon Feb 9, 2023
@DaBigBlob #42433 (comment)
DaBigBlob commentedon Feb 9, 2023
@bnoordhuis

this is at the start
i'll send the logs when the error happens again (within 6 hours)
bnoordhuis commentedon Feb 9, 2023
Thanks. ENOTTY is not out of the ordinary. You can add
-o trace.logto have strace write it to file instead of the tty.bnoordhuis commentedon Feb 13, 2023
@DaBigBlob did you have any luck capturing the error?
ywave620 commentedon Mar 21, 2023
same issuse here,I run node through the command
./node-v14.17.6 proxy.js > ./log.out 2>&1 &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
ywave620 commentedon Mar 24, 2023
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
bnoordhuis commentedon Mar 24, 2023
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.
bnoordhuis commentedon May 7, 2023
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.
lukas-mertens commentedon Nov 15, 2024
#51519 is probably related, see my stacktrace: #51519 (comment)