public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64
       [not found] <20071026210801.9454.pdubuc@cas.org>
@ 2009-10-07 13:48 ` pdubuc at cas dot org
  2009-10-12 17:34 ` pdubuc at cas dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pdubuc at cas dot org @ 2009-10-07 13:48 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |work at paul dot dubuc dot
                   |                            |org


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64
       [not found] <20071026210801.9454.pdubuc@cas.org>
  2009-10-07 13:48 ` [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64 pdubuc at cas dot org
@ 2009-10-12 17:34 ` pdubuc at cas dot org
  2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pdubuc at cas dot org @ 2009-10-12 17:34 UTC (permalink / raw)
  To: gdb-prs


------- 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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64
       [not found] <20071026210801.9454.pdubuc@cas.org>
  2009-10-07 13:48 ` [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64 pdubuc at cas dot org
  2009-10-12 17:34 ` pdubuc at cas dot org
@ 2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
  2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
  2010-05-07 17:54 ` jan dot kratochvil at redhat dot com
  4 siblings, 0 replies; 5+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-10-12 17:42 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan dot kratochvil at redhat
                   |                            |dot com


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64
       [not found] <20071026210801.9454.pdubuc@cas.org>
                   ` (2 preceding siblings ...)
  2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
@ 2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
  2010-05-07 17:54 ` jan dot kratochvil at redhat dot com
  4 siblings, 0 replies; 5+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-10-12 17:42 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From jan dot kratochvil at redhat dot com  2009-10-12 17:42 -------
AFAIK FSF GDB can read i386 core on x86_64 but its gcore does not produce valid
core for i386 processes on x86_64 GDB.
This is fixed by these 3rd party patches:
http://cvs.fedora.redhat.com/viewvc/rpms/gdb/devel/gdb-6.5-gcore-i386-on-amd64.patch?view=co
http://cvs.fedora.redhat.com/viewvc/rpms/gdb/devel/gdb-6.8-bz254229-gcore-prpsinfo.patch?view=co
Please verify it and update this Bug Summary.


-- 


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64
       [not found] <20071026210801.9454.pdubuc@cas.org>
                   ` (3 preceding siblings ...)
  2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
@ 2010-05-07 17:54 ` jan dot kratochvil at redhat dot com
  4 siblings, 0 replies; 5+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-05-07 17:54 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From jan dot kratochvil at redhat dot com  2010-05-07 17:54 -------


*** This bug has been marked as a duplicate of 11467 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |DUPLICATE


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-07 17:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20071026210801.9454.pdubuc@cas.org>
2009-10-07 13:48 ` [Bug corefiles/9454] gdb 6.7 can't read gcore file for 32-bit processes on x86_64 pdubuc at cas dot org
2009-10-12 17:34 ` pdubuc at cas dot org
2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
2009-10-12 17:42 ` jan dot kratochvil at redhat dot com
2010-05-07 17:54 ` jan dot kratochvil at redhat 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).