getting SIGSEGV when executing rosrun gazebo_ros gazebo

asked 2018-02-13 08:24:52 -0500

Westranger gravatar image

I recently switched from Ubuntu 17.04 to 17.10 and now after installing ROS, gazebo does not start when I try to start it via ros.

I run

rosrun gazebo_ros gazebo

which returned

Segmentation fault (core dumped)
/opt/ros/lunar/lib/gazebo_ros/gazebo: 46: kill: invalid signal number or name: SIGINT

the output of

rosrun gazebo_ros debug

(with backtrace) is the following

/opt/ros/lunar/lib/gazebo_ros/debug: 5: [: Linux: unexpected operator
GNU gdb (Ubuntu 8.0.1-0ubuntu1) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gzserver...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
[New Thread 0x7fffc9a84700 (LWP 17678)]

Thread 1 "gzserver" received signal SIGSEGV, Segmentation fault.
0x00007ffff4378005 in tinyxml2::XMLNode::InsertChildPreamble(tinyxml2::XMLNode*) const () from /usr/lib/x86_64-linux-gnu/
(gdb) Quit
(gdb) bt
#0  0x00007ffff4378005 in tinyxml2::XMLNode::InsertChildPreamble(tinyxml2::XMLNode*) const () from /usr/lib/x86_64-linux-gnu/
#1  0x00007ffff4378031 in tinyxml2::XMLNode::InsertEndChild(tinyxml2::XMLNode*) () from /usr/lib/x86_64-linux-gnu/
#2  0x00007ffff4379a21 in tinyxml2::XMLNode::ParseDeep(char*, tinyxml2::StrPair*, int*) () from /usr/lib/x86_64-linux-gnu/
#3  0x00007ffff437a0cc in tinyxml2::XMLDocument::LoadFile(_IO_FILE*) () from /usr/lib/x86_64-linux-gnu/
#4  0x00007ffff437a121 in tinyxml2::XMLDocument::LoadFile(char const*) () from /usr/lib/x86_64-linux-gnu/
#5  0x00007fffc859c163 in rospack::Rosstackage::loadManifest(rospack::Stackage*) () from /opt/ros/lunar/lib/
#6  0x00007fffc85a15e9 in rospack::Rosstackage::addStackage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /opt/ros/lunar/lib/
#7  0x00007fffc85a5c86 in rospack::Rosstackage::readCache() () from /opt/ros/lunar/lib/
#8  0x00007fffc85a5d4c in rospack::Rosstackage::crawl(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, bool) () from /opt/ros/lunar/lib/
#9  0x00007fffc85b35ac in rospack::rospack_run(int, char**, rospack::Rosstackage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) () from /opt/ros/lunar/lib/
#10 0x00007fffc85af319 in rospack::ROSPack::run(int, char**) () from /opt/ros/lunar/lib/
#11 0x00007fffc85af805 in rospack::ROSPack::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /opt/ros/lunar/lib/
#12 0x00007fffc8a04d01 in ros::package::command(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /opt/ros/lunar/lib/ ...
edit retag flag offensive close merge delete


Could it be the version of ubuntu? This page suggest that ubuntu 17.10 is not supported by ROS (therefore the gazebo_ros wrappers might not work imo). I would recommend switching back to 17.04.

l4ncelot gravatar image l4ncelot  ( 2018-02-15 03:15:18 -0500 )edit

gazebo command itself works because gazebo without gazebo_ros wrappers is standalone without any dependencies on ROS.

l4ncelot gravatar image l4ncelot  ( 2018-02-15 03:16:32 -0500 )edit