Robotics StackExchange | Archived questions

Another unknown segfault error from ROS

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?)

Asked by mrrius on 2020-01-22 21:22:05 UTC

Comments

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

Asked by Delb on 2020-01-24 03:43:18 UTC

Answers