gz-transport icon indicating copy to clipboard operation
gz-transport copied to clipboard

Creating node sometimes segfaults in linux

Open osrf-migration opened this issue 4 years ago • 4 comments

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 avatar Mar 16 '20 07:03 osrf-migration