Ask Your Question
0

libgazebo segmentation fault in std::_Rb_tree*

asked 2011-10-21 19:33:36 -0500

Spym gravatar image

updated 2013-05-16 08:01:26 -0500

Hello.

I've installed http://playerstage.sourceforge.net/index.php?src=gazebo (Gazebo 0.10) from sources on Kubuntu 11.10 x64, and got a strange segfault on static objects initialization (before main()).

Used libraries: http://pastebin.com/4xAa1WcZ
GDB backtrace: http://pastebin.com/EiRY77Je
ltrace output: http://pastebin.com/9kMyAY67

The app fails here (gazebo-0.10.0/libgazebo/IfaceFactory.cc, static method):

using namespace gazebo;

std::map<std::string, IfaceFactoryFn> IfaceFactory::ifaces;

// Register a iface class.  Use by dynamically loaded modules
void IfaceFactory::RegisterIface(std::string classname, IfaceFactoryFn factoryfn)
{
  ifaces[classname] = factoryfn; // segfault in std::_Rb_tree_decrement(..)
}

Arguments are okay, stack is not overflowed.

Also look at the http://pastebin.com/0DXUNGgv (valgrind output): "Address 0x8 is not stack'd, malloc'd or (recently) free'd" - looks like invalid pointer, but arguments passed into the std::map are correct.

Used dependencies: bullet-2.79, fltk-1.1.10, ode-0.11.1, openal-soft-1.13, player-3.0.2, ogre-1.7.3;
flags for bullet: BUILD_SHARED_LIBS=ON, BT_USE_DOUBLE_PRECISION=ON.

What is my problem? Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-10-28 01:32:07 -0500

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-10-21 19:33:36 -0500

Seen: 677 times

Last updated: May 16 '13