RHBA-2015:2089

Type: Bug fix
Severity: None
Published: 2015-11-19
Red Hat Enterprise Linux 7

The GNU Debugger (GDB) allows users to debug programs written in various programming languages including C, C++, and Fortran. Notably, this update fixes the following bugs: * GDB on 64-bit IBM Power Systems incorrectly deallocated a memory block that held the symbol table for the binary being debugged, which caused a segmentation fault when GDB tried to access that symbol table. To solve this problem, the specific memory block has been made persistent, and GDB can now access the needed information later during the debugging session, without reading an invalid memory region. (BZ#1190506) * The ptrace system call requires resuming threads individually. While resuming threads of a process, for example, with the "continue" command, if an already-resumed thread N causes a process exit, for example, by calling the _exit() function, the resumption of the remaining threads fails with the ESRCH (No such process) error because the process no longer exists. Previously, GDB did not expect this scenario and aborted the resumption command with a "ptrace: No such process." error message. Consequently, a subsequent "detach" command then failed an internal assertion due to inconsistent internal state. With this update, if a thread disappears while being resumed, GDB proceeds to collect the thread's exit status. As a result, the resumption command ends with the expected "Inferior exited normally" message and the subsequent "detach" command no longer crashes in the described scenario. (BZ#1184724) * While dealing with certain backtraces, for example, a corrupted stack with a cycle, GDB was incorrectly creating two frames with the same internal frame ID in the backtrace. Each frame having its unique internal ID is an invariant assumed throughout GDB. Consequently, GDB entered an infinite loop when trying to evaluate a value on the current frame, which then caused Out of Memory (OOM) killer to kill the GDB process. To address this problem, GDB has been fixed to explicitly check if there are no duplicate internal frame IDs during the backtrace unwinding process. If they are, processing of the backtrace is stopped and the user is warned about the possible stack corruption. As a result, GDB can now perform a backtrace without entering an infinite loop in the described scenario. (BZ#1225569) * When GDB refreshes the thread list out of the libthread_db library, it finds a thread with PID -1 (the clone's parent), which is not yet on the thread list. Previously, GDB tried to attach to that bogus PID, which failed, and GDB emitted an internal error message. Consequently, if a pthreaded program had a thread that called clone(CLONE_VM) directly, and then that clone hit a debug event, for example, a breakpoint, GDB issued an internal error, which affected the debugging session. This problem occurred because the "clone" call cleared the parent thread's TID field in the glibc's thread data structure. GDB has been fixed to detect the bogus PID -1 earlier and to display a warning message to the user. As a result, the debugging session is no longer affected in the described scenario. (BZ#1210889) This update adds the following enhancements: * GDB now includes support for SystemTap Static Defined Tracing (SDT) probes on the 64-bit ARM architecture. This enables GDB to use the new, faster probes-based dynamic linker interface, which in turn improves the performance of loading shared libraries of a debugged program by orders of magnitude. (BZ#1247107) * GDB is now able to perform reverse debugging to debug programs on PowerPC architectures. This can be done by using commands such as "record", "reverse-next", "reverse-step", or "reverse-continue". This feature greatly increases the productivity of the user debugging complex programs. (BZ#1218710) Users of gdb are advised to upgrade to these updated packages, which fix these bugs and add these enhancements.

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T23:03:15.203Z UTC

Official vendor advisory

Red Hat Enterprise Linux 7

View source
Observed 2026-11-27T23:03:15.203Z UTC. Last updated 2026-10-07T09:16:40.358Z UTC.

Upstream Advisory

Affected Packages

  • gdb 7.6.1-80.el7

  • gdb-doc 7.6.1-80.el7

  • gdb-gdbserver 7.6.1-80.el7

Interested in being alerted when there are new versions of gdb and the other packages? Set up an alert.
RHBA-2015:2089: gdb bug fix and enhancement update | Package Alert