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

terminate called without an active exception #918

Closed
e3dio opened this issue Jun 2, 2023 · 2 comments
Closed

terminate called without an active exception #918

e3dio opened this issue Jun 2, 2023 · 2 comments

Comments

@e3dio
Copy link
Contributor

e3dio commented Jun 2, 2023

If you get an error like Error: Returning from a request handler without responding or attaching an abort handler is forbidden! that is fine can fix it, but it also prints terminate called without an active exception then cpu goes to 100% for process systemd-coredum and the node process won't exit with ctr+c for like 10 seconds then Aborted (core dumped), it should just immediately exit the program

@uNetworkingAB
Copy link
Contributor

That message should probably be cleaned up. Maybe std::terminate() is not as direct as std::abort(). But you don't want std::exit() because it is supposed to be a critical error.

@uNetworkingAB
Copy link
Contributor

I think this not not a bug but just your coredump taking a long time? We call std::terminate on invalid use, and this calls std::abort which causes a coredump on some systems. I think this is fine, because calling std::exit would be just a normal program termination. IMO there is nothing to fix here, so closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants