ardrone_autonomy segmentation fault

asked 2014-05-26 23:22:58 -0500

hsoltani gravatar image

updated 2014-07-05 04:20:53 -0500

Hi

I want to run AR.Drone's driver by ardrone_autonomy package.I'm working on ROS fuerte and Ubuntu 12.04. I get Segmentation fault (core dumped) error for following command:

rosrun ardrone_autonomy ardrone_driver

How can I fix this problem?

I get a backtrace of the segfault by GDB:

Copyright (C) 2012 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

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".

For bug reporting instructions, please see:

http://bugs.launchpad.net/gdb-linaro/.. .

Reading symbols from /opt/ros/fuerte/stacks/ardrone_autonomy/bin/ardrone_driver...done.

(gdb) run

Starting program: /opt/ros/fuerte/stacks/ardrone_autonomy/bin/ardrone_driver __name:=ardrone_driver __log:=/home

/soltani/.ros/log/c79b0a0a-0412-11e4-a995-bcf68504b943/ardrone_driver-2.log

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Setting locale to en_GB.UTF-8

Program received signal SIGSEGV, Segmentation fault.

0x0000000000469944 in wifi_config ()

(gdb) bt

0 0x0000000000469944 in wifi_config ()

1 0x0000000000469024 in ardrone_tool_main ()

2 0x000000000043333a in main (argc=1, argv=0x7fffffffde08)

at /opt/ros/fuerte/stacks/ardrone_autonomy/src/ardrone_driver.cpp:702

edit retag flag offensive close merge delete

Comments

You should open an issue on the bug tracker for it: https://github.com/AutonomyLab/ardrone_autonomy/issues If you're comfortable with debugging tools, then use GDB to get a backtrace of the segfault and include that in the issue.

jbinney gravatar image jbinney  ( 2014-05-28 16:14:47 -0500 )edit

I'm not familiar with GDB. Could you give me a few pointers on how this can be achieved?

hsoltani gravatar image hsoltani  ( 2014-05-28 23:06:54 -0500 )edit