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

Node crashing with typeinfo for boost:io:basic_altstringbuf error

asked 2015-02-23 16:06:23 -0600

crazyorc gravatar image

In GDB, I see "SIGSEGV" signal received and then the following output

0x00000000004603e0 in typeinfo for boost::io::basic_altstringbuf<char, std::char_traits<char>, std::allocator<char> > ()

A node handle is declared elsewhere and set via an accessor in the class where this crash is occuring. The code leading up to the line where crash occurs is creating a publisher object using that node handle. Once the publisher is created, a function is called and passed that publisher object by reference

Logging statements before the function call that is crashing show that the all the objects involved appear to be valid.

Any hints/ideas what this error means or how to debug this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-02-23 16:58:02 -0600

crazyorc gravatar image

After some deeper code inspection, the crash occurred in an instance of a class that was being accessed via an interface pointer which the class didn't inherit from. All the required methods were implemented but none of them were declared virtual.

Modifying the class to inherit from the expected interface definition got rid of the crash.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-23 16:06:23 -0600

Seen: 290 times

Last updated: Feb 23 '15