Gdb assertion failure when using core dumps: "find_inferior_pid: Assertion `pid != 0' failed"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb |
Confirmed
|
Medium
|
|||
gdb (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Under Natty, I experience an odd issue when trying to use a core dump with gdb. In particular, when exiting gdb, I can see the following error message:
/build/
Steps to reproduce:
1) Start bash and type "ulimit -c unlimited" to enable core dumps.
2) Compile any C or C++ source file that causes a segfault. (One has already been attached)
3) Run the executable and then type "gdb progname dump", where progname is the name of the program and dump is the core dump.
4) Type "run" in gdb, wait for the program to crash and type "quit", "y".
5) The following is displayed:
/build/
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
/build/
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
---
Architecture: i386
CheckboxSubmission: c8e668fe14ff2a4
CheckboxSystem: b845c366ea09c60
DistroRelease: Ubuntu 11.04
InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Release i386 (20100429.4)
NonfreeKernelMo
Package: gdb 7.2-1ubuntu11
PackageArchitec
ProcEnviron:
LANGUAGE=el_GR:en
LANG=el_GR.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: natty running-unity
Uname: Linux 2.6.38-13-generic i686
UpgradeStatus: Upgraded to natty on 2011-10-15 (65 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Changed in gdb: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
apport information