public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug corefiles/11523] New: gdb failed to read 32bit AVX coredump by gcore
@ 2010-04-20 16:38 hjl dot tools at gmail dot com
2010-04-20 16:40 ` [Bug corefiles/11523] " hjl dot tools at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-04-20 16:38 UTC (permalink / raw)
To: gdb-prs
On Linux/AVX, I got
[hjl@gnu-18 xml]$ ./gdb 32
GNU gdb (GDB) 7.1.50.20100419-cvs
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /export/home/hjl/bugs/gdb/xml/32...done.
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
Function "info_command" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
.gdbinit:8: Error in sourced command file:
Argument required (one or more breakpoint numbers).
(gdb) b main
Breakpoint 1 at 0x80483e4: file x.c, line 12.
(gdb) r
Starting program: /export/home/hjl/bugs/gdb/xml/32
Breakpoint 1, main () at x.c:12
12 double y = foo (1.1);
(gdb) p $ymm0
$1 = {v8_float = {0, 0, 0, 0, 0, 0, 0, 0}, v4_double = {0, 0, 0, 0},
v32_int8 = {0 <repeats 32 times>}, v16_int16 = {0 <repeats 16 times>},
v8_int32 = {0, 0, 0, 0, 0, 0, 0, 0}, v4_int64 = {0, 0, 0, 0}, v2_int128 = {
0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
(gdb) gcore
Saved corefile core.4776
(gdb) c
Continuing.
1.100000
Program exited normally.
(gdb) q
[hjl@gnu-18 xml]$ ./gdb 32 core.4776
GNU gdb (GDB) 7.1.50.20100419-cvs
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /export/home/hjl/bugs/gdb/xml/32...done.
[New Thread 4776]
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `/export/home/hjl/bugs/gdb/xml/32'.
Program terminated with signal 5, Trace/breakpoint trap.
#0 0xa76d32e0 in ?? ()
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
Function "info_command" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
.gdbinit:8: Error in sourced command file:
Argument required (one or more breakpoint numbers).
(gdb) p $ymm0
$1 = void
(gdb) p $xmm0
$2 = {v4_float = {0, 0, 0, 0}, v2_double = {0, 0}, v16_int8 = {
0 <repeats 16 times>}, v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0}, v4_int32 = {0,
0, 0, 0}, v2_int64 = {0, 0}, uint128 = 0}
(gdb)
--
Summary: gdb failed to read 32bit AVX coredump by gcore
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: corefiles
AssignedTo: unassigned at sourceware dot org
ReportedBy: hjl dot tools at gmail dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11523
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug corefiles/11523] gdb failed to read 32bit AVX coredump by gcore
2010-04-20 16:38 [Bug corefiles/11523] New: gdb failed to read 32bit AVX coredump by gcore hjl dot tools at gmail dot com
@ 2010-04-20 16:40 ` hjl dot tools at gmail dot com
2010-04-20 17:03 ` hjl dot tools at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-04-20 16:40 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-04-20 16:40 -------
Created an attachment (id=4738)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4738&action=view)
A testcase
[hjl@gnu-6 core-2]$ readelf -n core.4776
Notes at offset 0x000001f4 with length 0x0000054c:
Owner Data size Description
CORE 0x0000007c NT_PRPSINFO (prpsinfo structure)
CORE 0x00000090 NT_PRSTATUS (prstatus structure)
LINUX 0x00000340 NT_X86_XSTATE (x86 XSAVE extended state)
CORE 0x000000b0 NT_AUXV (auxiliary vector)
[hjl@gnu-6 core-2]$
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11523
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug corefiles/11523] gdb failed to read 32bit AVX coredump by gcore
2010-04-20 16:38 [Bug corefiles/11523] New: gdb failed to read 32bit AVX coredump by gcore hjl dot tools at gmail dot com
2010-04-20 16:40 ` [Bug corefiles/11523] " hjl dot tools at gmail dot com
@ 2010-04-20 17:03 ` hjl dot tools at gmail dot com
2010-04-20 18:44 ` hjl dot tools at gmail dot com
2010-07-12 14:34 ` hjl dot tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-04-20 17:03 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-04-20 17:03 -------
Created an attachment (id=4739)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4739&action=view)
A testcase
This one has a working 32bit coredump.
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #4738 is|0 |1
obsolete| |
http://sourceware.org/bugzilla/show_bug.cgi?id=11523
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug corefiles/11523] gdb failed to read 32bit AVX coredump by gcore
2010-04-20 16:38 [Bug corefiles/11523] New: gdb failed to read 32bit AVX coredump by gcore hjl dot tools at gmail dot com
2010-04-20 16:40 ` [Bug corefiles/11523] " hjl dot tools at gmail dot com
2010-04-20 17:03 ` hjl dot tools at gmail dot com
@ 2010-04-20 18:44 ` hjl dot tools at gmail dot com
2010-07-12 14:34 ` hjl dot tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-04-20 18:44 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-04-20 18:44 -------
A patch is posted at
http://sourceware.org/ml/gdb-patches/2010-04/msg00625.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11523
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug corefiles/11523] gdb failed to read 32bit AVX coredump by gcore
2010-04-20 16:38 [Bug corefiles/11523] New: gdb failed to read 32bit AVX coredump by gcore hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2010-04-20 18:44 ` hjl dot tools at gmail dot com
@ 2010-07-12 14:34 ` hjl dot tools at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-07-12 14:34 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-04-21 20:23 -------
Subject: Bug 11523
CVSROOT: /cvs/src
Module name: src
Changes by: hjl@sourceware.org 2010-04-21 20:22:20
Modified files:
gdb : ChangeLog amd64-linux-tdep.c i386-linux-tdep.c
Log message:
Properly read i386 coredump.
2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
PR corefiles/11523
* amd64-linux-tdep.c (amd64_linux_core_read_description): Check
XCR0 first.
* i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
there is no .reg-xstate section.
(i386_linux_core_read_description): Check XCR0 first.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11662&r2=1.11663
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/amd64-linux-tdep.c.diff?cvsroot=src&r1=1.35&r2=1.36
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/i386-linux-tdep.c.diff?cvsroot=src&r1=1.76&r2=1.77
------- Additional Comments From hjl dot tools at gmail dot com 2010-07-12 14:34 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=11523
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-07-12 14:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20 16:38 [Bug corefiles/11523] New: gdb failed to read 32bit AVX coredump by gcore hjl dot tools at gmail dot com
2010-04-20 16:40 ` [Bug corefiles/11523] " hjl dot tools at gmail dot com
2010-04-20 17:03 ` hjl dot tools at gmail dot com
2010-04-20 18:44 ` hjl dot tools at gmail dot com
2010-07-12 14:34 ` hjl dot tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).