* [Qemu-devel] Problem with running machine code specified in the program
@ 2004-08-30 6:00 Hans Yang
2004-08-30 13:12 ` Paul Brook
2004-09-03 13:34 ` cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program) Lennert Buytenhek
0 siblings, 2 replies; 4+ messages in thread
From: Hans Yang @ 2004-08-30 6:00 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
I got "qemu: uncaught target signal 11 (Segmentation fault) - exiting" when
running program like that:
typedef int (*native_f)();
typedef struct {
native_f func;
} ST;
int main()
{
ST p;
const int code[1] = {
0xe1a0f00e // mov pc, lr
};
p.func = (native_f)code;
p.func();
return 0;
}
My platform details:
CPU: Intel Pentium 4 2.40G
OS: Fedora Core release 2
Compiler: arm-linux-gcc 2.95.3
Emulator: qemu-arm 0.6.0
[-- Attachment #2: Type: text/html, Size: 6605 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Problem with running machine code specified in the program
2004-08-30 6:00 [Qemu-devel] Problem with running machine code specified in the program Hans Yang
@ 2004-08-30 13:12 ` Paul Brook
2004-09-03 13:34 ` cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program) Lennert Buytenhek
1 sibling, 0 replies; 4+ messages in thread
From: Paul Brook @ 2004-08-30 13:12 UTC (permalink / raw)
To: qemu-devel, yangh
On Monday 30 August 2004 07:00, Hans Yang wrote:
> I got "qemu: uncaught target signal 11 (Segmentation fault) - exiting" when
> running program like that:
Works for me with on i386 Debian Sid with qemu CVS+arm patches. Look in the
list archives for my arm patch(es).
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program)
2004-08-30 6:00 [Qemu-devel] Problem with running machine code specified in the program Hans Yang
2004-08-30 13:12 ` Paul Brook
@ 2004-09-03 13:34 ` Lennert Buytenhek
2004-09-03 14:42 ` Lennert Buytenhek
1 sibling, 1 reply; 4+ messages in thread
From: Lennert Buytenhek @ 2004-09-03 13:34 UTC (permalink / raw)
To: yangh, qemu-devel
On Mon, Aug 30, 2004 at 02:00:39PM +0800, Hans Yang wrote:
> I got "qemu: uncaught target signal 11 (Segmentation fault) - exiting" when
> running program like that:
I was running into this too, and just checked it out. You should do:
1. Run 'setarch i686 qemu-arm' instead of 'qemu-arm'.
2. Downgrade to the original 2.6.5 kernel that came with FC2.
It seems that qemu-arm broke somewhere between fedora's version of
2.6.6 and 2.6.8, their current kernel. I'm trying the intermediate
releases right now.
cheers,
Lennert
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program)
2004-09-03 13:34 ` cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program) Lennert Buytenhek
@ 2004-09-03 14:42 ` Lennert Buytenhek
0 siblings, 0 replies; 4+ messages in thread
From: Lennert Buytenhek @ 2004-09-03 14:42 UTC (permalink / raw)
To: yangh, qemu-devel
On Fri, Sep 03, 2004 at 03:34:00PM +0200, Lennert Buytenhek wrote:
> > I got "qemu: uncaught target signal 11 (Segmentation fault) - exiting" when
> > running program like that:
>
> I was running into this too, and just checked it out. You should do:
>
> 1. Run 'setarch i686 qemu-arm' instead of 'qemu-arm'.
> 2. Downgrade to the original 2.6.5 kernel that came with FC2.
>
> It seems that qemu-arm broke somewhere between fedora's version of
> 2.6.6 and 2.6.8, their current kernel. I'm trying the intermediate
> releases right now.
OK, here are my findings.
I tried qemu-arm from qemu 0.5.5 and from all daily qemu CVS snapshots
between 20040504 and 20040901. Of those, there are actually only 16
different qemu-arm binaries (with a distinct md5 sum), so I only used
those.
I tried the Fedora Core 2 kernels 2.6.5-1.358 (original), 2.6.6-1.427,
2.6.6-1.435, 2.6.6-1.435.2.1, 2.6.6-1.435.2.3, 2.6.7-1.494.2.2 and
2.6.8-1.521 (the latest.)
On all kernels, you get a sig11 if you run without 'setarch i686'.
If you run with 'setarch i686', kernel 2.6.6-1.435.2.3 still runs
everything fine, but 2.6.7-1.494.2.2 breaks all qemu versions except
for the 20040519 CVS snapshot. And on the kernel after that,
2.6.8-1.521, all qemu versions are broken. If I then try to set
vm.legacy_vm_layout to 1, 20040519 starts working again, but all
other snapshots before and after remain broken.
Puzzled.
--L
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-09-03 14:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-30 6:00 [Qemu-devel] Problem with running machine code specified in the program Hans Yang
2004-08-30 13:12 ` Paul Brook
2004-09-03 13:34 ` cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program) Lennert Buytenhek
2004-09-03 14:42 ` Lennert Buytenhek
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 NNTP newsgroup(s).