Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [gdb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

Debugging ros2 libraries

I am trying to understand custom memory allocators for ROS2. To understand the functioning of tlsf I am using tlsf_example ...
red_demise's user avatar
1 vote
0 answers
693 views

Debug ROS2 launch using gdb with launch-prefix

ROS2 version: humble System: ubuntu 20.04 When I cross-compile and successfully build the ROS project, I copy the "install" directory to the development board and execute ...
Ricky Yel's user avatar
0 votes
1 answer
49 views

How to access executable for ComposableNodeContainer for gdb debugging?

I have a .py launch file that defines two composable node descriptions: desc1 and desc2, each of which describe two nodes that ...
user avatar
0 votes
2 answers
27 views

How to debug rmw segfaults launched by ros2cli like `ros2 topic echo`?

I am a developer of rmw_iceoryx, I ran into problems about segfault when executing ros2cli like ros2 topic echo /topic, bug I cannot find a way to debug this kind ...
user avatar
0 votes
1 answer
16 views

Weird behavior of GDB with roslaunch

I am trying to debug a ROS project which is started by the followinng (simplified) launch file. When the launch file is executed with ...
user avatar
0 votes
1 answer
46 views

how should I debug using gdb? where to see the results?

It might be very trivial but I have problem with gdb debugging. I don't know how should I see xterm window when I launch the nodes using gdb. Originally posted by b.slmn on ROS Answers with karma: 3 ...
user avatar
0 votes
1 answer
2 views

How to use ddd with roslaunch?

I'm trying to debug some segfaults and I was wondering if anyone managed to get ddd / gdb (https://www.gnu.org/software/ddd/) working with nodes that were launched with roslaunch (and if so, how to do ...
user avatar
0 votes
4 answers
306 views

How can I run ROS2 nodes in a debugger (e.g. gdb)?

Is there something like the --prefix argument from rosrun in ros2 (see #q222530)? Originally posted by Andre Volk on ROS Answers with karma: 775 on 2017-07-24 Post ...
user avatar
0 votes
1 answer
2 views

Problem debugging ROS nodes on Mac OS X

Hello Community, I am on Mac OS X 10.11.4, ROS Jade and have some strange problems debugging ROS nodes with gdb or lldb. Namely, debugger is not able to locate ROS related shared libraries. Here is ...
user avatar
0 votes
1 answer
6 views

Why isn't gdb working for me

Background I am currently trying to build an autonomous drone using ROS on my Rapsberry Pi which is running an Ubuntu MATE 16.04 LTS. Solving the Computer Vision problem of recognising red circles as ...
user avatar
0 votes
1 answer
30 views

Valgrind and GDB on same roslaunch File

Folks, How can I launch both valgrind and gdb on the same launch file? It seems that I can only add one "launch-prefix" attribute on my lunch file. This is what I tried: ...
user avatar
0 votes
1 answer
10 views

Use gdb for ros control plugin

Hi all, Somebody who have used gdb to debug a ros control plugin please share some experience with me:) I added the "launch-prefix="gdb -ex run --args" " attribute in the node tag ...
user avatar
0 votes
1 answer
2 views

ROS system randomly crashes and gdb says corrupt stack in callback queue

My ROS system randomly crashes and I decided to run gdb at all times to catch it next time it happens. I caught it and this is the output from gdb: ...
user avatar
0 votes
1 answer
14 views

How to debug plugins with GDB in ROS

Hi, all ! I am still a novice in debugging. I ran into the problem of writing my own global planner plugin and keeps popping out error, such as the one found on my other question, or the one below not ...
user avatar
0 votes
1 answer
16 views

Pass arguments to rqt plugin in gdb

How I can pass arguments to a rqt plugin within gdb % gdb python (gdb) run $YOUR_RQT_GUI_HOMEDIR$/bin/rqt_gui : (usual gdb usage) With the code above I ...
user avatar
0 votes
2 answers
49 views

Running rosrun with gdb

I am running this in ros: rosrun object_recognition_capture upload -i final.bag -n 'example' example --commit object_recognition_capture is a package and I want to ...
user avatar
0 votes
1 answer
12 views

debug gdb and ROS

I have been trying to debug my rosnode with gdb because I am getting a segmentation fault. My package name is renv and the executable inside it is names ...
user avatar
0 votes
2 answers
7 views

GDB does not run correctly with roslaunch

Hello all, I am trying to use GDB with roslaunch but I dont know how to. In the .launch file I write ...
user avatar
0 votes
1 answer
14 views

Can I debug node in gdb without new xterm?

In this tutorial is shown how to launch nodes in gdb (and other tools). There are two options for gdb. launch-prefix="xterm -e gdb --args" : run your node in a gdb in a separate xterm ...
user avatar
0 votes
1 answer
2 views

Breakpoint in ROS_ASSERT

Is it possible to set a debug breakpoint in ROS_ASSERT (gdb, Eclipse..) which only stops the program execution if the assertion fails so I can inspect the stack when the assertion fails? It would work,...
user avatar
0 votes
1 answer
1 view

Segfault on roslaunch rgbdslam - PCL 1.7 related

I'm trying to run rgbdslam (v2 with proper adaptations) in Ubuntu 13.10, with ROS Indigo and PCL 1.7. Getting gdb running to bt the reason why the launch crashes, I get the following log: ...
user avatar
0 votes
2 answers
21 views

gdb: Any way to debug a segfault in a ROS node?

Hi, After a refactoring of my code, my node segfaults, so I would like to debug it with gdb. I used roslaunch with gdb prefix as indicated in this tutorial. Nevertheless it seems that I'm able to see ...
user avatar
0 votes
1 answer
4 views

emacs + gdb + roslaunch all at once

I run a launch file from within emacs. But when i have gdb debugging turned on, it always opens up a new window for gdb terminal. I can use gdb in emacs when not using a ros node but can't do so while ...
user avatar
0 votes
2 answers
9 views

Using roslaunch with gdb gives error 'tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device'

I'm trying to debug my node with gdb but I consistently get two errors, and I don't know if they are related. First of all, I added ...
user avatar
0 votes
2 answers
15 views

What is an ideal way of debugging a segmentation fault in ROS?

Hi, I generally use gdb to debug my run time errors in my C++ programs. But in ros as it spins n waits for the msgs in topics, the gdb doesn't really work well. So I want to know if there is another ...
user avatar
0 votes
1 answer
11 views

Navigation stack tutorial: move_base crashes: bad_alloc thrown, gdb output attached

Hi, This is a question that is related to http://answers.ros.org/question/3800/error-on-navstack-with-p3dx-robot-aborting-because It is a follow-up in the sense that in the previous question I ...
user avatar
0 votes
1 answer
6 views

Remove GCC optimizations

Hi, I'm trying to debug an issue with some code via GDB, but some values are apparently optimized away. How can I disable compiler optimization in CMakeLists.txt? I tried doing ...
user avatar
0 votes
1 answer
34 views

gdb says "program is not being run" upon gazebo

While I'm trying to solve this issue, I'm stuck at gdb that's suggested by a commenter. I'm new to gdb (though I'm used to the debugger feature on Eclipse). I'm referring to this instruction. Phenom: ...
IsaacS's user avatar
  • 4,502
0 votes
1 answer
5 views

how to debug a package dependent on multiple packages?

Hi everybody, I am trying a global planner based on D* lite. I am using launch files in sbpl_lattice_planner. But move_base dies as soon as goal is passed through nav_view! The problem is how to run ...
user avatar
0 votes
2 answers
6 views

Is there functionality built into ros to get nodes to print a stacktrace on crash?

When ROS nodes crash, modifying launch files to run under gdb is often required to get a stack trace. And a full reattempt to produce the conditions of the crash is necessary. 75% of crash failures (...
user avatar