Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 435819 - gdb crash w/ unknown ptrace event 5
gdb crash w/ unknown ptrace event 5
Product: Fedora
Classification: Fedora
Component: gdb (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Jan Kratochvil
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-03-03 18:29 EST by Tom Tromey
Modified: 2014-08-11 01:46 EDT (History)
1 user (show)

See Also:
Fixed In Version: 6.6-45.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-03-16 15:28:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tom Tromey 2008-03-03 18:29:04 EST
I'm trying to run gdb on gcc, but have it follow-fork
and debug into the cc1 subprocess.  I'm using an up-to-date F8.
Here is the transcript of the session:

gdb --args /home/tromey/incremental/install/bin/gcc -O2 -S

(Note that I'm running in Emacs using a special (local) mode,
which I think adds -fullname --annotate=3, in case that matters)

Current directory is ~/incremental/T/
GNU gdb Red Hat Linux (6.6-43.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) set detach-on-fork off
(gdb) set follow-fork-mode child
(gdb) b internal_error
Function "internal_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (internal_error) pending.
(gdb) r
Starting program: /home/tromey/incremental/install/bin/gcc -O2 -S
[Thread debugging using libthread_db enabled]
../../gdb/linux-nat.c:623: internal-error: unknown ptrace event 5
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
../../gdb/linux-nat.c:623: internal-error: unknown ptrace event 5
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n

Debugger exited abnormally with code 1
Comment 1 Jan Kratochvil 2008-03-10 16:28:22 EDT
Reproduced on F8 gdb-6.6-44.fc8.x86_64, it works on Rawhide, to be backported.
Comment 2 Jan Kratochvil 2008-03-13 18:45:13 EDT
Comitted to the F-8 CVS:
* Thu Mar 13 2008 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-45
- Backport of follow-fork-mode child fixes (BZ 435819).
Comment 3 Fedora Update System 2008-03-16 09:18:07 EDT
gdb-6.6-45.fc8 has been submitted as an update for Fedora 8
Comment 4 Fedora Update System 2008-03-16 15:28:35 EDT
gdb-6.6-45.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.