[ros-users] Crash in indigo

Tully Foote tfoote at osrfoundation.org
Sun Jul 6 22:40:54 UTC 2014


Hi,

Thanks for the report. Please file a ticket on the ros_comm issue tracker
here:
https://github.com/ros/ros_comm/issues?direction=desc&sort=created&state=open
And we can follow up on the issue about the appropriate fix.

Tully


On Sun, Jul 6, 2014 at 2:38 PM, contradict <contradict at gmail.com> wrote:

> The attached program crashes when run under ros indigo. The crash is
> due to concurrent calls to rospy.get_param(), one in the test code and
> one inside SubscriberStatisticsLogger (rospy/impl/statistics.py:64).
> TransformListener subscribes to tf in a new thread
> (tf/listener.py:238).
>
> rospy.get_param is documented to be non-threadsafe, but I am not so
> sure about rospy.Subscriber(). If Subscriber() should be thread safe,
> then SubscriberStatisticsLogger needs to be modified to avoid
> concurrent access to the same http connection object as the rest of
> the node. Perhaps it could be given its own connection to the
> parameter server? If Subscriber() is not intended to be threadsafe,
> then TransformListenerThread needs to subscribe in __init__() instead
> of run().
>
> I am happy to submit a pull request wherever is appropriate.
>
> _______________________________________________
> ros-users mailing list
> ros-users at lists.ros.org
> http://lists.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20140706/8e2b07e4/attachment-0001.html>


More information about the ros-users mailing list