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

Node.js[5483]: ../src/node.cc:701:void node::ResetStdio(): Assertion `!(err != 0) || (err == -1 && (*__errno_location ()) == 1)' failed. #51519

Closed
TheRealRaeed opened this issue Jan 19, 2024 · 6 comments
Labels
stalled Issues and PRs that are stalled.

Comments

@TheRealRaeed
Copy link

TheRealRaeed commented Jan 19, 2024

Version

18.19.0

Platform

Linux localhost 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Running nodejs with logging enabled

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

It reproduces periodically at weird intervals. Doesn't appear to have an actual condition

What is the expected behavior? Why is that the expected behavior?

The expected behavior is that it should be running without issues or at least posting some genuine error. This is expected because this error originates out of a NodeJS core lib, meaning we are dealing with some core error which is usually not expected.

What do you see instead?

Node.js v18.19.0
Node.js[5483]: ../src/node.cc:701:void node::ResetStdio(): Assertion `!(err != 0) || (err == -1 && (*__errno_location ()) == 1)' failed.
     1: 0xb95b60 node::Abort() [node]
     2: 0xb95bde  [node]
     3: 0xb4cdd4  [node]
     4: 0x7f6332fe58a7  [/lib/x86_64-linux-gnu/libc.so.6]
     5: 0x7f6332fe5a60 on_exit [/lib/x86_64-linux-gnu/libc.so.6]
     6: 0xad614a node::DefaultProcessExitHandler(node::Environment*, int) [node]
     7: 0xb1a3f3 node::Environment::Exit(int) [node]
     8: 0xb9909a node::errors::TriggerUncaughtException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>, bool) [node]
     9: 0xb997d1  [node]
    10: 0xdcd3e0  [node]
    11: 0xdce91f v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [node]
    12: 0x170dfb9  [node]

Additional information

No response

@marco-ippolito
Copy link
Member

marco-ippolito commented Jan 19, 2024

Can you provide a minimal repro?
This is the assertion that fails

      // Normally we expect err == 0. But if macOS App Sandbox is enabled,
      // tcsetattr will fail with err == -1 and errno == EPERM.
      CHECK_IMPLIES(err != 0, err == -1 && errno == EPERM);

@TheRealRaeed
Copy link
Author

TheRealRaeed commented Jan 20, 2024

Try making a simple express app and running it in linux using this command
image

Then do some other simple linux commands and then log off the server using exit you will notice (if it happens) that it will go down, sometimes it takes a few days or hours, but if you visit the express site throughout the day, and use the linux server too, eventually this error comes up and you will notice the app has crashed.

@marco-ippolito
Copy link
Member

Without a reproducible snippet of code, it seems very hard to me to find out what is causing this

@RedYetiDev RedYetiDev added the stalled Issues and PRs that are stalled. label Aug 9, 2024
Copy link
Contributor

github-actions bot commented Aug 9, 2024

This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open.

@RedYetiDev
Copy link
Member

Hi! I've marked this issue as stalled, as @marco-ippolito asked for a minimal reproduction back in January, and one is yet to be provided.

@RedYetiDev
Copy link
Member

(The stalled bot doesn't appear to be working, so I've manually closed. Feel free to reopen if this is no longer stalled)

@RedYetiDev RedYetiDev closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stalled Issues and PRs that are stalled.
Projects
None yet
Development

No branches or pull requests

3 participants