Another unknown segfault error from ROS

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

mrrius gravatar image

Hello,

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/libroscpp.so
#2  0x76ca98cc in ros::TransportTCP::socketUpdate(int) ()
   from /opt/ros/kinetic/lib/libroscpp.so
#3  0x76ce4888 in ros::PollSet::update(int) () from /opt/ros/kinetic/lib/libroscpp.so
#4  0x76c691fc in ros::PollManager::threadFunc() () from /opt/ros/kinetic/lib/libroscpp.so
#5  0x7691caf8 in thread_proxy () from /usr/local/lib/libboost_thread.so.1.62.0
#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/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
edit retag flag offensive close merge delete

Comments

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