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

create_pthread() crashes if pthread_create() failed #1955

Closed
dkogan opened this issue Apr 4, 2023 · 0 comments
Closed

create_pthread() crashes if pthread_create() failed #1955

dkogan opened this issue Apr 4, 2023 · 0 comments
Assignees
Labels

Comments

@dkogan
Copy link
Contributor

dkogan commented Apr 4, 2023

Look here:

stat = pthread_create(tid, &att, pthread_entry_wrapper, arg);

If pthread_create() fails, fprime checks for failure. But if it did fail, it tries to pthread_join(). THIS causes a segfault. There is no valid thread (because we couldn't create it), so any operation on it will crash.

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

No branches or pull requests

2 participants