[ros-users] weird node crash...

Ugo Cupcic ugo at shadowrobot.com
Tue Oct 12 11:02:24 UTC 2010


 Hi all,

I have a really weird behaviour in rospy.
If I create a publisher to an existing topic of a custom C++ node, run
rospy.spin in a separate node, then do nothing and close the python
node, the C++ node crashes:
[shadowhand-5] process has died [pid 5903, exit code -11].

The simple code in python can be found here:
http://pastebin.com/xwZiKn3R

If I replace the publisher by a subscriber then my C++ node doesn't
crash. What's really weird is that my C++ node seems to be pretty stable
(I often kept it running for one day without any trouble). When I run
the C++ node in gdb then it doesn't crash...

Is there a call made to the node when a publisher to this node is deleted?

Any help greatly appreciated.

Cheers,

Ugo

-- 
Ugo Cupcic         |  Shadow Robot Company | ugo at shadowrobot.com
Software Engineer  |    251 Liverpool Road |
need a Hand?       |    London  N1 1LX     | +44 20 7700 2487
http://www.shadowrobot.com/hand/              @shadowrobot




More information about the ros-users mailing list