Questions tagged [gdb]

The GNU Debugger usually called just GDB

is the standard debugger for the GNU software system. It is a portable debugger that runs on many Unix-like systems and works for many programming languages, including Ada, Java, C, C++, Objective-C, FreeBASIC, Free Pascal and Fortran.

92 questions
25
votes
5 answers

warning: GDB: Failed to set controlling terminal: Operation not permitted

I'm using Code-Blocks IDE in my Ubuntu 12.10.But when I'm trying to debug any project, I got the following warning: warning: GDB: Failed to set controlling terminal: Operation not permitted What should I do now ?
25
votes
7 answers

How can I install "gdb-arm-none-eabi" on Ubuntu 18.04 (Bionic Beaver)?

In previous versions of Ubuntu, GDB for ARM Cortex processors was part of the package gdb-arm-none-eabi. Searching https://packages.ubuntu.com/ for gdb-arm-none-eabi for Ubuntu 18.04 doesn't return any results. Am I missing something or why isn't…
15
votes
4 answers

How can I get python stack trace information using GDB?

I am using GDB to debug a segmentation fault in my python application on Kubuntu 12.04. Supposedly GDB version 7 has built-in macros for extracting information about the python stack (http://docs.python.org/devguide/gdb.html), but I am having…
Luke
  • 919
14
votes
1 answer

GDB crashes with: ImportError: No module named libstdcxx.v6.printers

I have a problem with GDB. Whenever I try to debug any C++ program, just after running it, GDB gives this error: (gdb) run Starting program: /home/errikos/Workspaces/tests/a.out Traceback (most recent call last): File…
ergysdo
  • 1,039
11
votes
1 answer

False "application not responding" box is creating havoc with GDB

I'm trying to debug a C++ application using GDB and the Qt Creator IDE. Every time the debugger stops on a breakpoint, Ubuntu (v 17.10) thinks the application is frozen and issues the dialog box with the warning that "{application} is not…
Carlton
  • 311
10
votes
3 answers

Upgrade from gdb 7.7 to 7.8

How to upgrade my GDB debugger from the current version which is 7.7 to the next version which is 7.8, Also I'm working on Ubuntu 14.04.1?
9
votes
1 answer

How to update glibc on ubuntu 20.04 due to security vulnerability

I am trying to update glibc 2.31-0ubuntu9.2. As an internal scan has picked this up as vulnerable. https://nvd.nist.gov/vuln/detail/CVE-2021-33574#range-6777140 When I use sudo apt-get update then sudo apt install glibc I am getting nowhere with…
lcfc
  • 91
8
votes
1 answer

How to get an apache core dump?

I am having problems with my 14.10 Ubuntu Server. Upon performing certain actions my apache2 restarts with a segmentation fault error. In order to debug this issue I would like to create a core dump. I have done the following: added…
8
votes
1 answer

Setting up GDB pretty printing in Ubuntu 13.10

I tried to set up GDB pretty printing (for easier work with standard containers) according to this anwer. Instead of using python pretty printers code from svn I used the ones that ship with ubuntu. After going through the rest of the process I…
nietaki
  • 247
7
votes
0 answers

Error while reading shared library symbols for /lib/ld-linux.so.2

When I try and run these commands (in order): gdb -tui main layout regs b main r s It gives me a ton of errors on the 'r' command, giving the error in the title, so I can't even debug my program. It's nothing complex, just a main.c file, a…
swiftcode
  • 171
6
votes
1 answer

What would cause an installed application to not be recognized as such?

I need to revert my version of gdb back to a previous release so that it is compatible with a certain tool. I currently have gdb 7.7.1 installed. If I enter gdb into the terminal and hit enter, gdb runs. However, when I run sudo apt-get remove gdb,…
6
votes
1 answer

how to install gdb and valgrind in ubuntu

If I type gdb on my terminal prompt, gdb opens up , but when I run commands like next, weird stuff shows up like: _libc_start_main (main=0x40060d
, argc=1, argv=0x7fffffffdfc8, init=, fini=, rtld_fini=
user3694356
  • 61
  • 1
  • 1
  • 2
5
votes
2 answers

How can I debug Ubuntu's kernel?

How can I debug Ubuntu's kernel? Are there any debug symbols available, or should I recompile the kernel with debug info?
qwe
  • 53
5
votes
1 answer

Why debug packages don't include sources?

I was expecting that after installing the package libgtk-3-0-dbg I would get DDD to show the source code when stepping into gtk+, however I had to download the source package myself (from here) and move it to the proper /build directory :(
knocte
  • 1,016
  • 1
  • 12
  • 25
5
votes
1 answer

gdb uses wrong python

When I launch gdb (on Ubuntu 12.04 LTS) it immediately crashes with the following output: BlockquoteTraceback (most recent call last): File "/usr/lib/python2.7/site.py", line 562, in main() File "/usr/lib/python2.7/site.py", line…
Isak T.
  • 151
1
2 3 4 5 6 7