* Should a x86 gdb work under an x86_64 kernel?
@ 2008-02-25 14:49 Theodore Ts'o
2008-02-25 16:14 ` Jeff Dike
2008-03-03 11:56 ` Andi Kleen
0 siblings, 2 replies; 3+ messages in thread
From: Theodore Ts'o @ 2008-02-25 14:49 UTC (permalink / raw)
To: linux-kernel
Hi,
I've noticed that if I try to use a 32-bit x86 gdb to debug a
32-bit program under a 64-bit x86_64 kernel, gdb (version 6.6-debian,
from Ubuntu Gutsy) immediately core dumps as soon as I run the test
program under the debugger. Is this normal/expected/known bug?
I haven't tried bisecting it yet, but it's been broken as early
as a little after 2.6.25-rc1, in late January. But before I spend a
large amount of time doing the bisect, I thought I'd ask if anyone has
heard of this issue. Does this sound familiar?
- Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Should a x86 gdb work under an x86_64 kernel?
2008-02-25 14:49 Should a x86 gdb work under an x86_64 kernel? Theodore Ts'o
@ 2008-02-25 16:14 ` Jeff Dike
2008-03-03 11:56 ` Andi Kleen
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Dike @ 2008-02-25 16:14 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: linux-kernel
On Mon, Feb 25, 2008 at 09:49:43AM -0500, Theodore Ts'o wrote:
> I've noticed that if I try to use a 32-bit x86 gdb to debug a
> 32-bit program under a 64-bit x86_64 kernel, gdb (version 6.6-debian,
> from Ubuntu Gutsy) immediately core dumps as soon as I run the test
> program under the debugger. Is this normal/expected/known bug?
Probably - UML broke too.
Roland found the bug and posted a patch fairly quickly -
http://marc.info/?l=linux-kernel&m=120365510230307&q=raw
Jeff
--
Work email - jdike at linux dot intel dot com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Should a x86 gdb work under an x86_64 kernel?
2008-02-25 14:49 Should a x86 gdb work under an x86_64 kernel? Theodore Ts'o
2008-02-25 16:14 ` Jeff Dike
@ 2008-03-03 11:56 ` Andi Kleen
1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2008-03-03 11:56 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: linux-kernel
"Theodore Ts'o" <tytso@mit.edu> writes:
> Hi,
>
> I've noticed that if I try to use a 32-bit x86 gdb to debug a
> 32-bit program under a 64-bit x86_64 kernel, gdb (version 6.6-debian,
> from Ubuntu Gutsy) immediately core dumps as soon as I run the test
> program under the debugger. Is this normal/expected/known bug?
It's clearly a bug. x86-64 compat user space should be 99+% compatible
and running full 32bit user land with a 64bit kernel is supposed to work.
The main exceptions are a few programs that rely on the 3GB address space
(these can be used with linux32 --3gb), some programs which
make bogus assumptions about /proc,/sys which cannot be fixed
and a few programs which use obscure driver specific ioctls with
no compat wrapper.
-Andi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-03 11:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25 14:49 Should a x86 gdb work under an x86_64 kernel? Theodore Ts'o
2008-02-25 16:14 ` Jeff Dike
2008-03-03 11:56 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox