ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Buffer overflow at tf transformListener

asked 2020-09-02 07:41:51 -0600

ilsta gravatar image

updated 2020-11-04 12:55:04 -0600

gvdhoorn gravatar image

Hi guys,

for my code :

#!/usr/bin/env python 
import rospy
import tf
if __name__ == '__main__':
   rospy.init_node('asd')

   listener = tf.TransformListener()


    rate = rospy.Rate(10.0)
   while not rospy.is_shutdown():
       try:
            (trans,rot) = listener.lookupTransform('/map', '/base_footprint', rospy.Time(0))
            print("asd", trans)
        except (tf.LookupException, tf.ConnectivityException, tf.ExtrapolationException) as e:
            print(e)
            continue

        rate.sleep()

I got:

asd [-10.384035844497655, 7.699514506625128, 0.1411451514323372]
asd [-10.384035844497655, 7.699514506625128, 0.1411451514323372]
*** buffer overflow detected ***: terminated
Aborted (core dumped)

GDB was not helpfully. Does anybody have an idea, what can I do? Thanks


Edit: backtrace:

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff6d6b859 in __GI_abort () at abort.c:79
#2  0x00007ffff6dd63ee in __libc_message
    (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff6f0007c "*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007ffff6e789ba in __GI___fortify_fail
    (msg=msg@entry=0x7ffff6f00012 "buffer overflow detected")
    at fortify_fail.c:26
#4  0x00007ffff6e77256 in __GI___chk_fail () at chk_fail.c:28
#5  0x00007ffff6e76e65 in ___snprintf_chk
    (s=<optimized out>, maxlen=<optimized out>, flag=<optimized out>, slen=<optimized out>, format=<optimized out>) at snprintf_chk.c:29
#6  0x00007ffff6aebbc5 in tf2::cache::createExtrapolationException3(ros::Time, ros::Time, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) () at /opt/ros/noetic/lib/libtf2.so
#7  0x00007ffff6aecc32 in tf2::TimeCache::findClosest(tf2::TransformStorage*&, tf2::TransformStorage*&, ros::Time, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) () at /opt/ros/noetic/lib/libtf2.so
#8  0x00007ffff6aebc9b in tf2::TimeCache::getData(ros::Time, tf2::TransformStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) () at /opt/ros/noetic/lib/libtf2.so
#9  0x00007ffff6afc462 in int tf2::BufferCore::walkToTopParent<tf2::TransformAccum>(tf2::TransformAccum&, ros::Time, unsigned int, unsigned int, std::__cxx11::b--Type <RET> for more, q to quit, c to continue without paging--
asic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vector<unsigned int, std::allocator<unsigned int> >*) const ()
    at /opt/ros/noetic/lib/libtf2.so
#10 0x00007ffff6af2372 in tf2::BufferCore::lookupTransform(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::Time const&) const () at /opt/ros/noetic/lib/libtf2.so
#11 0x00007ffff7e7fc06 in rviz::FrameManager::transform(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::Time, geometry_msgs::Pose_<std::allocator<void> > const&, Ogre::Vector3&, Ogre::Quaternion&) () at /opt/ros/noetic/lib/librviz.so
#12 0x00007ffff7e80bb9 in rviz::FrameManager::getTransform(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::Time, Ogre::Vector3&, Ogre::Quaternion&) () at /opt/ros/noetic/lib/librviz.so
#13 0x00007fffa252ee60 in rviz::AxesDisplay::update(float, float) ()
    at /opt/ros/noetic/lib/librviz_default_plugin.so
#14 0x00007ffff7e7853b in rviz::DisplayGroup::update(float, float) ()
    at /opt/ros/noetic/lib/librviz.so
#15 0x00007ffff7e7853b in rviz::DisplayGroup::update(float, float) ()
    at /opt/ros/noetic/lib/librviz.so
#16 0x00007ffff7f40649 in rviz::VisualizationManager::onUpdate() ()
    at /opt/ros/noetic/lib/librviz.so
#17 0x00007ffff73e6300 in QMetaObject::activate(QObject*, int, int, void**) ()
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-09-02 08:17:41 -0600

reinzor gravatar image
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-09-02 07:41:51 -0600

Seen: 1,333 times

Last updated: Nov 04 '20