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

Gazebo Illegal instruction

asked 2012-05-07 06:33:48 -0500

Matthias gravatar image

updated 2014-01-28 17:12:14 -0500

ngrennan gravatar image

Hello

I'm new to ROS and I installed Fuerte on Ubuntu 12.04 (Precise Pangolin) 64bit. The normal examples work well, but gazebo crashes with an illegal instruction error. I get the error with an AMD Phenom II CPU and with an Intel Core 2 CPU as well.

Do you have any ideas?

Thanks Matthias

roslaunch gazebo_worlds empty_world.launch
... logging to /home/abc/.ros/log/67d03dc8-985f-11e1unch-gandalf-21949.log
Checking log directory for disk usage. This may take awh
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://gandalf:48953/

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /rosversion
 * /use_sim_time

NODES
  /
    empty_world_server (gazebo/gazebo)
    gazebo_gui (gazebo/gui)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
Exception AttributeError: AttributeError("'_DummyThread' obje '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" pyyc'=""> ignored
process[empty_world_server-1]: started with pid [21969]
Exception AttributeError: AttributeError("'_DummyThread' obje '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" pyyc'=""> ignored
process[gazebo_gui-2]: started with pid [21976]
Gazebo multi-robot simulator, version 1.0.1
Copyright (C) 2011 Nate Koenig, John Hsu, Andrew Howard, and 
Released under the Apache 2 License.
http://gazebosim.org

Dbg pluginPaths and GAZEBO_PLUGIN_PATH doesn't exist.Set GAZEBO_PLUGIN_PATHgre's installation path. ...or are you loading via SystemPlug
Gazebo multi-robot simulator, version 1.0.1
Copyright (C) 2011 Nate Koenig, John Hsu, Andrew Howard, and contributors.
Released under the Apache 2 License.
http://gazebosim.org

Dbg pluginPaths and GAZEBO_PLUGIN_PATH doesn't exist.Set GAZEBO_PLUGIN_PATH to Ogre's installation path. ...or are you loading via SystemPlugins?
Msg Waiting for master.Msg Waiting for master[ INFO] [1336407365.703087291]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...

Msg Connected to gazebo master @ http://localhost:11345

Msg Connected to gazebo master @ http://localhost:11345
Illegal instruction (core dumped)
[empty_world_server-1] process has died [pid 21969, exit code 132, cmd /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gazebo /opt/ros/fuerte/stacks/simulator_gazebo/gazebo_worlds/worlds/empty.world __name:=empty_world_server __log:=/home/abc/.ros/log/67d03dc8-985f-11e1-92e6-485b395bdd54/empty_world_server-1.log].
log file: /home/abc/.ros/log/67d03dc8-985f-11e1-92e6-485b395bdd54/empty_world_server-1*.log
/opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gui: Zeile 2: 21980 Ungültiger Maschinenbefehl   (Speicherabzug geschrieben) `rospack find gazebo`/gazebo/bin/gzclient -g `rospack find gazebo`/lib/libgazebo_ros_paths_plugin.so
[gazebo_gui-2] process has died [pid 21976, exit code 132, cmd /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gui __name:=gazebo_gui __log:=/home/abc/.ros/log/67d03dc8-985f-11e1-92e6-485b395bdd54/gazebo_gui-2.log].
log file: /home/abc/.ros/log/67d03dc8-985f-11e1-92e6-485b395bdd54/gazebo_gui-2*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done

edit retag flag offensive close merge delete

Comments

been struggling with this for 3-4 days now

kshitij gravatar image kshitij  ( 2012-06-05 05:35:31 -0500 )edit

are you running 1.6.10? (check /opt/ros/fuerte/stacks/simulator_gazebo/CMakeLists.txt).

hsu gravatar image hsu  ( 2012-06-06 09:38:29 -0500 )edit

for me the same problem appeared after the last gazebo update.(package version 1.6.14-s1346200794~precise). Gazebo worked (kind of) in the previous version. I guess there's nothing I can do except waiting for the next update and hoping it works again in the next version.

Kai Bublitz gravatar image Kai Bublitz  ( 2012-09-04 01:28:37 -0500 )edit

5 Answers

Sort by » oldest newest most voted
0

answered 2012-08-31 11:14:08 -0500

hsu gravatar image

updated 2012-09-03 14:03:53 -0500


Update

Thanks again konradb3, simulator_gazebo 1.6.15 with SSE4 disabled on the way. Please check fuerte debbuild for updates.


A regression in system path loading might be a possibility, but that should be fixed in 1.6.14.

edit flag offensive delete link more

Comments

Running them separately (rosrun gazebo gui) crashes for me as well (Gazebo 1.6.14 from deb) Dmesg has errors relating to libQtGui.so in the gzclient

SL Remy gravatar image SL Remy  ( 2012-09-01 04:15:04 -0500 )edit

Since upgrading to 1.6.14 gazebo crashes for me as well (http://pastebin.com/pGihq74c)

Ugo gravatar image Ugo  ( 2012-09-03 02:04:01 -0500 )edit

The reason of crash (at least for me) is that gazebo is compiled using SSE4.1 instructions which are not supported on my cpu.

konradb3 gravatar image konradb3  ( 2012-09-03 08:26:37 -0500 )edit

I got a similar issue when spawning PR2 in Gazebo (1.6.16) that wasn't present one week ago. I didn't use ROS last week but I did two updates yesterday and monday 6th that may be related. Is this SSE issue fixed ? I'm using fuerte on ubuntu 10.04.

Erwan R. gravatar image Erwan R.  ( 2013-05-14 07:48:16 -0500 )edit
1

answered 2012-05-19 05:23:24 -0500

Matthias gravatar image

updated 2012-05-20 22:14:00 -0500

With a system update last week (including ROS) everything worked. But now it isn't working anymore.

There was another update of ROS a few days ago. I couldn't check directly afterwards, but now it isn't working again unfortunately. I have no real idea what's going on. Maybe a jump to an invalid function pointer?

dmesg has some more information: gzserver[12573] trap invalid opcode ip:7f5b81bf8c01 sp:7f5b441f6ca0 error:0 in libgazebo_common.so.1.0.1[7f5b81ba2000+67000]

gdb says:

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 0x7fffb57fa700 (LWP 17169)]
0x00007ffff7bc6c01 in gazebo::common::Time::Set(double) () from /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/gazebo/lib/libgazebo_common.so.1
(gdb) bt
#0  0x00007ffff7bc6c01 in gazebo::common::Time::Set(double) () from /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/gazebo/lib/libgazebo_common.so.1
#1  0x00007ffff745c1ce in gazebo::physics::World::Step() () from /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/gazebo/lib/libgazebo_physics.so.1
#2  0x00007ffff745c508 in gazebo::physics::World::RunLoop() () from /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/gazebo/lib/libgazebo_physics.so.1
#3  0x00007ffff6111ce9 in thread_proxy () from /usr/lib/libboost_thread.so.1.46.1
#4  0x00007ffff6c8ce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007ffff59244bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

The integrated gazebo version crashes too when I start it without ROS. I built gazebo from original sources this weekend and it doesn't crash. Unfortunately the ROS build from the sources still doesn't work out of the box for gazebo.

edit flag offensive delete link more

Comments

Hi Matthias, thanks for the update. How are you launching gazebo? Does it crash every time? On second thought, if you did "rosrun gazebo gazebo" and "rosrun gazebo gui" separately, with some pause in between, does the error still occur?

hsu gravatar image hsu  ( 2012-08-10 06:11:57 -0500 )edit
0

answered 2012-12-27 00:37:57 -0500

hvn gravatar image

I have the same problem: my CPU (CPU0: AMD Sempron(tm) Processor 3100+) doesn't support SSE. Having install ROS from the ROS-site, as recommended, how do I replace my installed version by the SSE-disabled version ?

edit flag offensive delete link more
0

answered 2012-07-10 04:12:55 -0500

Chade gravatar image

updated 2012-07-10 04:13:25 -0500

I have the same Problem. All my stacks are up-to-date (installed Ubuntu 12.04 64bit and ROS Fuerte just yesterday and checked for updates) but the problem remains. Can someone confirm the problem even after successful update? My version of Gazebo is 1.6.10.

edit flag offensive delete link more

Comments

I have the same problem with simulator_gazebo 1.6.12. As suggested, downloading and compiling gazebo on my PC makes it work, but indeed it is not the best solution.

hcostelha gravatar image hcostelha  ( 2012-08-10 06:06:52 -0500 )edit

@hcostelha were you able to get a backtrace? if so, can you compare it with the one posted by Matthias? thanks.

hsu gravatar image hsu  ( 2012-08-10 06:22:36 -0500 )edit

@hcostelha were you able to get a backtrace? if so, can you compare it with the one posted by Matthias? thanks.

hsu gravatar image hsu  ( 2012-08-10 06:22:39 -0500 )edit

Yes, my backtrace is pretty much the same as Matthias one. I tested with the gazebo_worlds/worlds/empty.world

hcostelha gravatar image hcostelha  ( 2012-08-10 13:18:38 -0500 )edit

what was the command that you executed? "roslaunch gazebo_worlds empty_world.launch"?

hsu gravatar image hsu  ( 2012-08-10 13:41:47 -0500 )edit

I don't now how to "gdb directly" that command. I did "gdb /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/gazebo/bin/gzserver" and then

hcostelha gravatar image hcostelha  ( 2012-08-11 20:30:40 -0500 )edit

run /opt/ros/fuerte/stacks/simulator_gazebo/gazebo_worlds/worlds/empty.world __name:=gazebo -s rospack find gazebo/lib/libgazebo_ros_paths_plugin.so -s rospack find gazebo/lib/libgazebo_ros_api_plugin.so

hcostelha gravatar image hcostelha  ( 2012-08-11 20:31:15 -0500 )edit
0

answered 2012-06-04 21:58:37 -0500

dmeltz gravatar image

I encounter the same problem.

have you had any success since you wrote about it ?

If so, please write how.

edit flag offensive delete link more

Comments

1

do an upgrade, (sudo apt-get upgrade). there's some major gazebo upgrade in the pipeline I think. works after that.

kshitij gravatar image kshitij  ( 2012-06-12 21:32:29 -0500 )edit

thanks !! I did the upgrade, it works now.

dmeltz gravatar image dmeltz  ( 2012-06-15 06:58:37 -0500 )edit

Question Tools

4 followers

Stats

Asked: 2012-05-07 06:33:48 -0500

Seen: 2,341 times

Last updated: Dec 27 '12