Skip to content

examples: fix coredump in llama-server after ctrl+c (#12180) #12813

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

Closed

Conversation

tyronecai
Copy link

fix coredump (#12180) in llama-server after ctrl+c

Copy link
Collaborator

@ngxson ngxson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I have an alternative solution using std::terminate(), will propose in another PR

LOG_ERR("%s: exiting due to model loading error\n", __func__);
return 1;
exit(1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you explain why return 1 doesn't work here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the thread is detached

@ngxson
Copy link
Collaborator

ngxson commented Apr 8, 2025

Superseded by #12831

@ngxson ngxson closed this Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants