-
Notifications
You must be signed in to change notification settings - Fork 525
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
add boost::mutex::scoped_lock before accessing rt_active_goal_ #325
Conversation
I'm still getting a crash, although this seems to be different than before (that being a simple segmentation fault). Usually after a couple of seconds of running the script from #301 with the
What's your experience with the same test? More debug info from me soon! |
sorry, yes I pushed without detailed experience, please check updated
version.
…--
◉ Kei Okada
2018-03-30 16:54 GMT+09:00 Bence Magyar <[email protected]>:
I'm still getting a crash, although this seems to be different than before
(that being a simple segmentation fault).
Usually after a couple of seconds of running the script from #301
<#301> with the
ur_gazebo setup.
gzserver: /usr/include/boost/smart_ptr/shared_ptr.hpp:648: typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = realtime_tools::RealtimeServerGoalHandle<control_msgs::FollowJointTrajectoryAction_<std::allocator<void> > >; typename boost::detail::sp_member_access<T>::type = realtime_tools::RealtimeServerGoalHandle<control_msgs::FollowJointTrajectoryAction_<std::allocator<void> > >*]: Assertion `px != 0' failed.
Aborted (core dumped)
[gazebo-2] process has died [pid 4104, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/bence/.ros/log/04a85136-33ef-11e8-999d-e8b1fc66403b/gazebo-2.log].
log file: /home/bence/.ros/log/04a85136-33ef-11e8-999d-e8b1fc66403b/gazebo-2*.log
What's your experience with the same test? More debug info from me soon!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#325 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeG3HE9LJGW9sS3AO6T5tQ4gYqfAaUWks5tjeS8gaJpZM4TBVyO>
.
|
Now it hangs Gazebo entirely: time gets stuck when I send the new goal. |
that's strange , I had similar situation when I lock entire can you remove |
It probably had to do with a build cache...I've tried in a new workspace and I'm experiencing no crashes now. |
Is this patch RT-safe? |
Good to bring that up again. For ref, I found some |
The non-RT can lock unconditionally (it might block), the RT part should not block.
try-locks and scope-lock can be even mixed: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that we should add this update
-wide lock.
#301 can be fixed without.
rt_active_goal_
should never get accessed directly, but from a local copy of the shared pointer.
Hi, do you mean we should just do as #327 ? @ipa-mdl |
Closing in favour of #327 |
No description provided.