Open osrf-migration opened 6 years ago
Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).
Thanks for the patch @RedundantEntry, Would you be willing to create a pull request with the patch targeted at default
branch?
Original comment by Hendrik Skubch (Bitbucket: RedundantEntry).
Unfortunately, I don't have the appropriate permissions.
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
@redundantentry if you make a fork of gazebo, you should be have commit permissions:
Original comment by Hendrik Skubch (Bitbucket: RedundantEntry).
Ah, great, thanks for the help! Did that here; https://osrf-migration.github.io/gazebo-gh-pages/#!/osrf/gazebo/pull-requests/2826/move-header-buffer-from-heap-to-stack/diff If you want tests for that, it will take a while longer.
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
It's hard to test race conditions; I'll work on testing the patch. Thanks for the submission!
Original report (archived issue) by Hendrik Skubch (Bitbucket: RedundantEntry).
The original report had attachments: gzrace-fix.patch
headerBuffer is subject to a racecondition if multiple writer threads exist (Concurrent calls to EnqueueMsg). This appears to be the case when a model is deleted via a ros-maintained plugin.
Reproduction steps:
Suggested solution: Apply attached patch. It moves the contest array (9 bytes) from the heap to the stack.