Another unknown segfault error from ROS

asked 2020-01-22 20:22:05 -0600

mrrius gravatar image


I've got another weird ROS segfault error related boost. I only implemented a simple publisher subscriber without ever touching detail on ROS cpp nor boost. Anyone understand about this error?

Thread 3 "ControllerNode" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x6f7712b0 (LWP 12234)]
0x00047684 in boost::detail::sp_counted_base::release (this=0x6d502d50)
    at /usr/local/include/boost/smart_ptr/detail/sp_counted_base_spin.hpp:103
103             dispose();
(gdb) bt
#0  0x00047684 in boost::detail::sp_counted_base::release (this=0x6d502d50)
    at /usr/local/include/boost/smart_ptr/detail/sp_counted_base_spin.hpp:103
#1  0x76c2cb70 in ros::Connection::writeTransport() () from /opt/ros/kinetic/lib/
#2  0x76ca98cc in ros::TransportTCP::socketUpdate(int) ()
   from /opt/ros/kinetic/lib/
#3  0x76ce4888 in ros::PollSet::update(int) () from /opt/ros/kinetic/lib/
#4  0x76c691fc in ros::PollManager::threadFunc() () from /opt/ros/kinetic/lib/
#5  0x7691caf8 in thread_proxy () from /usr/local/lib/
#6  0x7687bfc4 in start_thread (arg=0x6f7712b0) at pthread_create.c:335
#7  0x7555ebc8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76
   from /lib/arm-linux-gnueabihf/
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
edit retag flag offensive close merge delete


Have you tried to use gdb to identify where the error occurs ? Can you also show some of your code ?

Delb gravatar imageDelb ( 2020-01-24 02:43:18 -0600 )edit