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

Creating node sometimes segfaults in linux #118

Open
osrf-migration opened this issue Mar 16, 2020 · 4 comments
Open

Creating node sometimes segfaults in linux #118

osrf-migration opened this issue Mar 16, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@osrf-migration
Copy link

Original report (archived issue) by Poh Zhi-Ee (Bitbucket: Poh Zhi-Ee).


This is due to the lack of error handling for the getpwuid_r() call in the username() function in NetUtils.cc
According to the getpwuid_r manpage the function is not always successful. Failing to handle the errors but continuing to use the passwd struct can result in the use of a corrupted data structure which causes a segfault.

Additional information:
Stack trace of the segfault


@osrf-migration
Copy link
Author

Original comment by Poh Zhi-Ee (Bitbucket: Poh Zhi-Ee).


  • Edited issue description

2 similar comments
@osrf-migration
Copy link
Author

Original comment by Poh Zhi-Ee (Bitbucket: Poh Zhi-Ee).


  • Edited issue description

@osrf-migration
Copy link
Author

Original comment by Poh Zhi-Ee (Bitbucket: Poh Zhi-Ee).


  • Edited issue description

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


See pull request #441 and its backport in pull request #444.

@osrf-migration osrf-migration added major bug Something isn't working labels Apr 15, 2020
@chapulina chapulina removed the major label May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants