Bug 17298 - gcore: Couldn't get registers: No such process.
Summary: gcore: Couldn't get registers: No such process.
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: threads (show other bugs)
Version: 7.8
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 18:48 IST by Jan Kratochvil
Modified: 2014-08-21 18:49 IST (History)
1 user (show)

See Also:
Host:
Target: x86_64-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2014-08-21 18:48:36 IST
Program received signal SIGABRT, Aborted.
[...]
(gdb) gcore foobar
Couldn't get registers: No such process.
(gdb) info threads
[...]
(gdb) gcore foobar
Saved corefile foobar
(gdb)

gcore tries to access the exited thread:
[Thread 0x7ffff7fce700 (LWP 6895) exited]
ptrace(PTRACE_GETREGS, 6895, 0, 0x7fff18167dd0) = -1 ESRCH (No such process)
Comment 1 Jan Kratochvil 2014-08-21 18:49:11 IST
Fixed for 7.8 by:

commit 14adc931130880d75eccc023cbaec68790960235
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Aug 21 20:36:20 2014 +0200

    Fix 'gcore' with exited threads