Home | Tutorials | Wiki | Issues
Ask Your Question
0

gzserver segfaults upon startup

asked 2014-04-22 21:52:44 -0600

jake.anq gravatar image

Hi all

I have just installed Gazebo 2.2.1 from source. When attempting to start the server ($ gzserver), the program appears to do nothing for ~30 seconds then has a segmentation fault. The program output and backtrace is as follows:

(gdb) run
Starting program: /home/jake/Builds/gazebo/build/gazebo/gzserver 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe0103700 (LWP 12683)]
Gazebo multi-robot simulator, version 2.2.1
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[New Thread 0x7fffdf639700 (LWP 12684)]
[New Thread 0x7fffdee38700 (LWP 12685)]
Msg Waiting for master
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 10.0.0.36
Warning [ModelDatabase.cc:334] Getting models from[http://gazebosim.org/models/]. This may take a few seconds.
[New Thread 0x7fffde42b700 (LWP 12686)]
[Thread 0x7fffde42b700 (LWP 12686) exited]
[New Thread 0x7fffde42b700 (LWP 12687)]
[Thread 0x7fffde42b700 (LWP 12687) exited]
[New Thread 0x7fffde42b700 (LWP 12688)]
[Thread 0x7fffde42b700 (LWP 12688) exited]
*** Large number of similar lines removed for clarity ***
[New Thread 0x7fffde42b700 (LWP 12803)]
[Thread 0x7fffde42b700 (LWP 12803) exited]
[New Thread 0x7fffde42b700 (LWP 12804)]
[Thread 0x7fffde42b700 (LWP 12804) exited]
[New Thread 0x7fffde42b700 (LWP 12805)]
[Thread 0x7fffde42b700 (LWP 12805) exited]

Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00007ffff2e5f7a0 in mkdirhier () from /usr/lib/libtar.so.0
#2  0x00007ffff2e5e19d in tar_extract_dir () from /usr/lib/libtar.so.0
#3  0x00007ffff2e5e3fb in tar_extract_file () from /usr/lib/libtar.so.0
#4  0x00007ffff2e5fc32 in tar_extract_all () from /usr/lib/libtar.so.0
#5  0x00007ffff7b96a1a in gazebo::common::ModelDatabase::GetModelPath (this=this@entry=0x64f4e0 <SingletonT<gazebo::common::ModelDatabase>::GetInstance()::t>, _uri=..., 
    _forceDownload=_forceDownload@entry=true) at /home/jake/Builds/gazebo/gazebo/common/ModelDatabase.cc:510
#6  0x00007ffff7bad0a9 in gazebo::common::SystemPaths::FindFileURI (this=this@entry=0x64fd40 <SingletonT<gazebo::common::SystemPaths>::GetInstance()::t>, _uri=...)
    at /home/jake/Builds/gazebo/gazebo/common/SystemPaths.cc:279
#7  0x00007ffff7bad527 in gazebo::common::SystemPaths::FindFile (this=this@entry=0x64fd40 <SingletonT<gazebo::common::SystemPaths>::GetInstance()::t>, _filename=..., 
    _searchLocalPath=_searchLocalPath@entry=true) at /home/jake/Builds/gazebo/gazebo/common/SystemPaths.cc:303
#8  0x00007ffff7b7fd07 in gazebo::common::find_file (_file=...) at /home/jake/Builds/gazebo/gazebo/common/CommonIface.cc:58
#9  0x000000000043ca7c in operator()<std::basic_string<char>, std::basic_string<char> (*)(const std::basic_string<char>&), boost::_bi::list1<const std::basic_string<char>&> > (
    this=<optimised out>, f=<optimised out>, a=<synthetic pointer>) at /usr/include/boost/bind/bind.hpp:243
#10 operator()<std::basic_string<char> > (a1=..., this=<optimised out>) at /usr/include/boost/bind/bind_template.hpp:47
#11 boost::detail::function::function_obj_invoker1<boost::_bi::bind_t<std::string, std::string (*)(std::string const&), boost::_bi::list1<boost::arg<1> > >, std::string, std::string const&>::invoke (function_obj_ptr=..., a0=...) at /usr/include/boost/function/function_template.hpp:132
#12 0x00007ffff5e47bef in sdf::findFile(std::string const&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libsdformat ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-22 22:10:39 -0600

jake.anq gravatar image

After looking around in gdb a bit more, I solved the problem by manually copying the contents of the .gazebo/models directory from the computer that had a working gzserver to the one that did not work. It all seems to work properly now, although I am still puzzled as to why it is still segfaulting.

For anyone else who comes across this problem, the files required are the .tar.gz archives in the sun/ and ground_plane/ folders found here: http://gazebosim.org/models/

edit flag offensive delete link more

Comments

Thanks for the answer. Could you please check as valid by cliking the tick signal?

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2014-04-25 12:59:30 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-04-22 21:52:44 -0600

Seen: 967 times

Last updated: Apr 22 '14