Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1516

getting SIGSEGV when executing rosrun gazebo_ros gazebo

$
0
0
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/libthread_db.so.1". [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/libtinyxml2.so.5 (gdb) Quit (gdb) bt #0 0x00007ffff4378005 in tinyxml2::XMLNode::InsertChildPreamble(tinyxml2::XMLNode*) const () from /usr/lib/x86_64-linux-gnu/libtinyxml2.so.5 #1 0x00007ffff4378031 in tinyxml2::XMLNode::InsertEndChild(tinyxml2::XMLNode*) () from /usr/lib/x86_64-linux-gnu/libtinyxml2.so.5 #2 0x00007ffff4379a21 in tinyxml2::XMLNode::ParseDeep(char*, tinyxml2::StrPair*, int*) () from /usr/lib/x86_64-linux-gnu/libtinyxml2.so.5 #3 0x00007ffff437a0cc in tinyxml2::XMLDocument::LoadFile(_IO_FILE*) () from /usr/lib/x86_64-linux-gnu/libtinyxml2.so.5 #4 0x00007ffff437a121 in tinyxml2::XMLDocument::LoadFile(char const*) () from /usr/lib/x86_64-linux-gnu/libtinyxml2.so.5 #5 0x00007fffc859c163 in rospack::Rosstackage::loadManifest(rospack::Stackage*) () from /opt/ros/lunar/lib/librospack.so #6 0x00007fffc85a15e9 in rospack::Rosstackage::addStackage(std::__cxx11::basic_string, std::allocator> const&) () from /opt/ros/lunar/lib/librospack.so #7 0x00007fffc85a5c86 in rospack::Rosstackage::readCache() () from /opt/ros/lunar/lib/librospack.so #8 0x00007fffc85a5d4c in rospack::Rosstackage::crawl(std::vector, std::allocator>, std::allocator, std::allocator>>>, bool) () from /opt/ros/lunar/lib/librospack.so #9 0x00007fffc85b35ac in rospack::rospack_run(int, char**, rospack::Rosstackage&, std::__cxx11::basic_string, std::allocator>&) () from /opt/ros/lunar/lib/librospack.so #10 0x00007fffc85af319 in rospack::ROSPack::run(int, char**) () from /opt/ros/lunar/lib/librospack.so #11 0x00007fffc85af805 in rospack::ROSPack::run(std::__cxx11::basic_string, std::allocator> const&) () from /opt/ros/lunar/lib/librospack.so #12 0x00007fffc8a04d01 in ros::package::command(std::__cxx11::basic_string, std::allocator> const&) () from /opt/ros/lunar/lib/libroslib.so #13 0x00007fffc8a051b1 in ros::package::command(std::__cxx11::basic_string, std::allocator> const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&) () from /opt/ros/lunar/lib/libroslib.so #14 0x00007fffc8a0579d in ?? () from /opt/ros/lunar/lib/libroslib.so #15 0x00007fffc8a064c2 in ros::package::getPlugins(std::__cxx11::basic_string, std::allocator> const&, std::__cxx11::basic_string, std::allocator> const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, bool) () from /opt/ros/lunar/lib/libroslib.so #16 0x00007fffc8c18042 in gazebo::GazeboRosPathsPlugin::LoadPaths() () from //opt/ros/lunar/lib/libgazebo_ros_paths_plugin.so #17 0x00007fffc8c16f50 in RegisterPlugin () from //opt/ros/lunar/lib/libgazebo_ros_paths_plugin.so #18 0x00007ffff7bc095d in ?? () from /usr/lib/x86_64-linux-gnu/libgazebo.so.7 #19 0x00007ffff7bbff74 in ?? () from /usr/lib/x86_64-linux-gnu/libgazebo.so.7 #20 0x00007ffff7ba5390 in gazebo::Server::ParseArgs(int, char**) () from /usr/lib/x86_64-linux-gnu/libgazebo.so.7 #21 0x000055555555769e in ?? () #22 0x00007ffff6ad01c1 in __libc_start_main (main=0x5555555575b0, argc=5, argv=0x7fffffffdac8, init=, fini=, rtld_fini=, stack_end=0x7fffffffdab8) at ../csu/libc-start.c:308 #23 0x0000555555557c3a in _start () (gdb) gazebo itself runs without any problems when start by typing `gazebo`. What could be the problem here ? To me it looks like malformed XML is the reason.

Viewing all articles
Browse latest Browse all 1516

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>