This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64


------- Additional Comments From pdubuc at cas dot org  2009-10-12 17:34 -------
This bug appears to be fixed in version 7.0 for a gdb that is built as a 32-bit
process using the -m32 compiler option or the --build=i686-redhat-linux
configure flag.  A 64-bit gdb will attach to a 32-bit process and display the
stack trace but still will not produce a readable core with gcore:

> ./a.out32 &
[1]     30765

> /projects/pmd25/bin/Linux/gdb64
GNU gdb (GDB) 7.0
Copyright (C) 2009 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/>.
(gdb) attach 30765
Attaching to process 30765
Reading symbols from /home/pmd23/gdb.test/a.out32...done.
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
0xffffe410 in __kernel_vsyscall ()
(gdb) where
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x00a20620 in __nanosleep_nocancel () from /lib/tls/libc.so.6
#2  0x00a2044c in sleep () from /lib/tls/libc.so.6
#3  0x08048390 in main () at loop.c:3
(gdb) gcore
Saved corefile core.30765
(gdb) q
A debugging session is active.

        Inferior 1 [process 30765] will be detached.

Quit anyway? (y or n) y
Detaching from program: /home/pmd23/gdb.test/a.out32, process 30765

> /projects/pmd25/bin/Linux/gdb64 ./a.out32 ./core.30765
GNU gdb (GDB) 7.0
Copyright (C) 2009 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 /home/pmd23/gdb.test/a.out32...done.

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/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/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 `/home/pmd23/gdb.test/a.out32'.

warning: Couldn't recognize general-purpose registers in core file.
#0  0x00000000 in ?? ()
(gdb) where
#0  0x00000000 in ?? ()
(gdb)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9454

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]