Dear Josh, I'm running ros-cturtle from the debs on Ubuntu 10.04. I've updated them regularly. I ran rosmake --pre-clean just in case it was some build problem. After more experimentations yesterday I found out that my C++ node was still crashing each time I closed the python node. Do you want me to send you a tarball containing the code to reproduce that? Cheers, Ugo On 12/10/10 19:53, Josh Faust wrote: > This shouldn't be crashing the C++ node in either case. I just tried > reproducing this without any luck, both against the latest cturtle > debs and ROS trunk. > > I'm guessing this is related > to https://code.ros.org/trac/ros-pkg/ticket/4461, which I've also so > far been unable to reproduce. > > What version of ROS are you running, on what OS? > > Josh > > On Tue, Oct 12, 2010 at 5:41 AM, Ugo Cupcic > wrote: > > Hey, > > I found the problem. If you overload the __del__(self) function in > your > class, then something bad happens when closing the node... > > Cheers, > > Ugo > > On 12/10/10 12:02, Ugo Cupcic wrote: > > 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@shadowrobot.com > > Software Engineer | 251 Liverpool Road | > need a Hand? | London N1 1LX | +44 20 7700 2487 > http://www.shadowrobot.com/hand/ @shadowrobot > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > > > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users -- Ugo Cupcic | Shadow Robot Company | ugo@shadowrobot.com Software Engineer | 251 Liverpool Road | need a Hand? | London N1 1LX | +44 20 7700 2487 http://www.shadowrobot.com/hand/ @shadowrobot