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
@devsnek Are you on macOS? This doesn’t seem to happen with Linux, which makes it hard to debug for me. In any case, it might be good to know what errno is in that case.
Also, side note, another, different issue with the same commit was reported: #24260 (comment)
i found out, just doing npm run test is not enough, you have to spawn node with child_process and then ctrl+c it (i have a script runner i use that abstracts away npm, cargo, make, etc, which is why it reproduced for me originally)
Errno 5 is EIO. Basically the kernel is saying something went wrong without going into specifics, but I guess it's because the tty went away somehow. I'll open a PR to accept that error.
node 14.15.4 has this issue, I run it on Android Pad, Ubuntu over Termux. /usr/bin/node[18408]: ../src/node.cc:699:void node::ResetStdio(): Assertion((*__errno_location ())) == (9)' failed.
node 14.15.4 has this issue, I run it on Android Pad, Ubuntu over Termux. /usr/bin/node[18408]: ../src/node.cc:699:void node::ResetStdio(): Assertion((*__errno_location ())) == (9)' failed.
Activity
[-]CHECK failure in ResetStdio[/-][+]CHECK failure in ResetStdio on >=12.5.0[/+]CarterLi commentedon Jun 30, 2019
Same issue here
rbatsenko commentedon Jun 30, 2019
Same here :/
devsnek commentedon Jun 30, 2019
cc @bnoordhuis it looks like this is from 5872705
kahan002 commentedon Jun 30, 2019
Same issue with protractor testing (npm run e2e).
$ /usr/local/bin/node[1358]: ../src/node.cc:649:void node::ResetStdio(): Assertion `(err) != (-1)' failed.
1: 0x10007643b node::Abort() [/usr/local/bin/node]
2: 0x1000761e3 node::AppendExceptionLine(node::Environment*, v8::Localv8::Value, v8::Localv8::Message, node::ErrorHandlingMode) [/usr/local/bin/node]
3: 0x1000541a9 node::ResetStdio() [/usr/local/bin/node]
4: 0x7fff870ff451 __cxa_finalize_ranges [/usr/lib/system/libsystem_c.dylib]
5: 0x7fff870ff767 exit [/usr/lib/system/libsystem_c.dylib]
6: 0x7fff8511a5b4 start [/usr/lib/system/libdyld.dylib]
[On Mac OS X running protractor tests in terminal window of vs code]
addaleax commentedon Jul 1, 2019
@devsnek Are you on macOS? This doesn’t seem to happen with Linux, which makes it hard to debug for me. In any case, it might be good to know what
errnois in that case.Also, side note, another, different issue with the same commit was reported: #24260 (comment)
devsnek commentedon Jul 1, 2019
@addaleax i'm on arch linux. i'll compile it to print errno and report back
devsnek commentedon Jul 1, 2019
@addaleax
i found out, just doing
npm run testis not enough, you have to spawn node with child_process and then ctrl+c it (i have a script runner i use that abstracts away npm, cargo, make, etc, which is why it reproduced for me originally)output is:
from:
bnoordhuis commentedon Jul 1, 2019
Errno 5 is EIO. Basically the kernel is saying something went wrong without going into specifics, but I guess it's because the tty went away somehow. I'll open a PR to accept that error.
src: don't abort on EIO when restoring tty
bnoordhuis commentedon Jul 1, 2019
#28490
devsnek commentedon Jul 2, 2019
The fix will be available in the next node release
src: don't abort on EIO when restoring tty
src: don't abort on EIO when restoring tty
src: block SIGTTOU before calling tcsetattr()
src: block SIGTTOU before calling tcsetattr()
kahan002 commentedon May 22, 2020
upgrading from node 12.5.0 to 12.16.3 fixed it.
sinojelly commentedon Jan 21, 2021
node 14.15.4 has this issue, I run it on Android Pad, Ubuntu over Termux.

/usr/bin/node[18408]: ../src/node.cc:699:void node::ResetStdio(): Assertion((*__errno_location ())) == (9)' failed.`
mashirozx commentedon Feb 4, 2021
same issue. node v14.15.4

src: don't abort on EIO when restoring tty