This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug corefiles/11467] New: amd64 gdb generates corrupted 32bit core file
- From: "hjl dot tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 2 Apr 2010 13:47:52 -0000
- Subject: [Bug corefiles/11467] New: amd64 gdb generates corrupted 32bit core file
- Reply-to: sourceware-bugzilla at sourceware dot org
[hjl@gnu-6 avx]$ /export/build/gnu/gdb/build-x86_64-linux/gdb/gdb 32
GNU gdb (GDB) 7.1.50.20100402-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/avx/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]
/export/home/hjl/bugs/gdb/avx/.gdbinit:8: Error in sourced command file:
Argument required (one or more breakpoint numbers).
(gdb) b main
Breakpoint 1 at 0x8048438: file arg-1.c, line 25.
(gdb) r
Starting program: /export/home/hjl/bugs/gdb/avx/32
Breakpoint 1, main () at arg-1.c:25
25 test (n1, n2, n3);
(gdb) gcore core.i386-linux
Saved corefile core.i386-linux
(gdb) c
Continuing.
Program exited normally.
(gdb) q
[hjl@gnu-6 avx]$ /export/build/gnu/gdb/build-x86_64-linux/gdb/gdb 32 core.i386-linux
GNU gdb (GDB) 7.1.50.20100402-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/avx/32...done.
[New Thread 27328]
warning: Couldn't recognize general-purpose registers in core file.
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/avx/32'.
Program terminated with signal 5, Trace/breakpoint trap.
warning: Couldn't recognize general-purpose registers in core file.
#0 0x00000000 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]
/export/home/hjl/bugs/gdb/avx/.gdbinit:8: Error in sourced command file:
Argument required (one or more breakpoint numbers).
(gdb) q
[hjl@gnu-6 avx]$ file core.i386-linux
core.i386-linux: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV),
SVR4-style, from 'x/32'
[hjl@gnu-6 avx]$
--
Summary: amd64 gdb generates corrupted 32bit core file
Product: gdb
Version: 7.1
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=11467
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.