qemu on PPC with recent distro (was Re: qemu with recent wine?)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
I'm trying to figure out why qemu-0.5.3 doesn't work on PPC with a recent x86 distro (Mandrake 10)
Here's what I tried:
[wim@an-leabhar-i wim]$ qemu-i386 -L /home/ARCHS/mdk_x86/ /home/ARCHS/mdk_x86/bin/pwd
qemu: uncaught target signal 11 (Segmentation fault) - exiting
[wim@an-leabhar-i wim]$ qemu-i386 -L /home/ARCHS/mdk_x86/ /home/ARCHS/mdk_x86/bin/sh -c pwd
qemu: uncaught target signal 11 (Segmentation fault) - exiting
[wim@an-leabhar-i wim]$ qemu-i386 -L /home/ARCHS/mdk_x86/ /home/ARCHS/mdk_x86/bin/ash.static -c pwd /common/home/wim
So, ash.static works, all other commands result in Segmentation fault.
Here's a diff of the strace of /bin/pwd vs /bin/ash.static -c pwd To me it doesn't make much sense, but hopefully is does to you guys.
Wim
qemu-strace renamed from qemu-strace-ash.static +0 -1
@@ -1,4 +1,4 @@ -execve("/usr/local/bin/qemu-i386", ["qemu-i386", "-L",
"/home/ARCHS/mdk_x86/", "/home/ARCHS/mdk_x86/bin/ash.static", "-c", "pwd"], [/* 46 vars */]) = 0 +execve("/usr/local/bin/qemu-i386", ["qemu-i386", "-L", "/home/ARCHS/mdk_x86/", "/home/ARCHS/mdk_x86/bin/pwd"], [/* 46 vars */]) = 0
uname({sys="Linux", node="an-leabhar-i.eee.strath.ac.uk", ...}) = 0
brk(0) = 0x60e23000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
@@ -1435,28 +1435,41 @@
open("/home/ARCHS/mdk_x86//glibc-2.3.3-10mdk.i586.rpm",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
-open("/home/ARCHS/mdk_x86/bin/ash.static", O_RDONLY) = 3 -fstat(3, {st_mode=S_IFREG|0755, st_size=503608, ...}) = 0 +open("/home/ARCHS/mdk_x86/bin/pwd", O_RDONLY) = 3
+fstat(3, {st_mode=S_IFREG|0755, st_size=11800, ...}) = 0
geteuid() = 364 getegid() = 109 lseek(3, 0, SEEK_SET) = 0
-read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\340\200"...,
128) = 128
+read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\320\212"...,
128) = 128
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x30016000
lseek(3, 52, SEEK_SET) = 52
-read(3, "\1\0\0\0\0\0\0\0\0\200\4\10\0\200\4\10\354\220\7\0\354"...,
96) = 96
+read(3, "\6\0\0\0004\0\0\0004\200\4\0104\200\4\10\340\0\0\0\340"...,
224) = 224
+lseek(3, 276, SEEK_SET) = 276
+read(3, "/lib/ld-linux.so.2\0", 19) = 19
+open("/home/ARCHS/mdk_x86//lib/ld-linux.so.2", O_RDONLY) = 4
+lseek(4, 0, SEEK_SET) = 0
+read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\f\0\000"...,
128) = 128
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x30027000
mprotect(0x300a7000, 4096, PROT_NONE) = 0
munmap(0x30016000, 4096) = 0
-mmap(0x8048000, 499712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x8048000 +mmap(0x8048000, 12288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x8048000
brk(0) = 0x60e44000
brk(0x60e69000) = 0x60e69000
-mmap(0x80c2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x79000) = 0x80c2000 +mmap(0x804b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x804b000
+lseek(4, 52, SEEK_SET) = 52
+read(4, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\24V\1\0\24V\1\0\5\0\0"...,
160) = 160
+mmap(NULL, 33554432, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x300a8000
+brk(0) = 0x60e69000
+brk(0x60e8c000) = 0x60e8c000
+mmap(0x300a8000, 90112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0) = 0x300a8000 +mmap(0x300be000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x15000) = 0x300be000
+close(4) = 0
+close(4) = -1 EBADF (Bad file
descriptor)
close(3) = 0 getuid() = 364 geteuid() = 364 getgid() = 109 getegid() = 109
-mmap(0x80c4000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x80c4000
rt_sigaction(SIGHUP, {0x6000d48c, ~[], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGINT, {0x6000d48c, ~[], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {0x6000d48c, ~[], SA_SIGINFO}, NULL, 8) = 0
@@ -1522,26 +1535,10 @@
rt_sigaction(SIGRT_31, {0x6000d48c, ~[], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGRT_32, {0x6000d48c, ~[], SA_SIGINFO}, NULL, 8) = 0 uname({sys="Linux", node="an-leabhar-i.eee.strath.ac.uk", ...}) = 0
-fcntl64(0, F_GETFD) = 0 -fcntl64(1, F_GETFD) = 0 -fcntl64(2, F_GETFD) = 0 -geteuid() = 364 -getuid() = 364 getegid() = 109 -getgid() = 109
-mmap(0x80c8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x80c8000 -mmap(0x80c9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x80c9000 -rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, 8) = 0
-getpid() = 3161
-getcwd("/common/home/wim", 256) = 17
-geteuid() = 364
-getppid() = 3160-rt_sigaction(SIGINT, {0x6000d48c, ~[], SA_SIGINFO}, NULL, 8) = 0 -rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 -rt_sigaction(SIGHUP, {SIG_DFL}, NULL, 8) = 0 -rt_sigaction(SIGTSTP, {SIG_DFL}, NULL, 8) = 0 -rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0 -mmap(0x80c9000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x80c9000 -write(1, "/common/home/wim\n", 17/common/home/wim
-) = 17
-exit_group(0) = ?
+mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x320a8000
+--- SIGSEGV (Segmentation fault) @ 0 (0) --- +rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
+write(2, "qemu: uncaught target signal 11 "..., 63qemu: uncaught target signal 11 (Segmentation fault) - exiting
+) = 63
+exit_group(-11) = ?
Quoted 21 lines
6. Re: qemu with recent wine snapshot? (Richard Zidlicky)
Message: 6
Date: Wed, 7 Apr 2004 19:44:09 +0200
From: Richard Zidlicky <[email protected]>
Subject: Re: [Qemu-devel] qemu with recent wine snapshot?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-1Quoted 4 lines · Wim Vanderbauwhede
Hi Richard,
ash.static works (I can do ls, cd, pwd )
The strace output is very large, what exactly are you looking for?perhaps some "wrong" library got into your path, grep it for open to see which libraries are used.
Richard
Quoted 2 lines · Wim Vanderbauwhede
I'm trying to figure out why qemu-0.5.3 doesn't work on PPC with a recent x86 distro (Mandrake 10)
Dear Wim,
There is a small usability wiki at the following address:
http://am.xs4all.nl/phpwiki/index.php/Qemu
Mandrake 10 is reported not to work under x86 (pc emulation mode). Very interesting to see that it does not work under PPC too.
Cheers,
Jean-Michel
Thanks a lot, Jean-Michel, the problem was indeed with Mandrake 10. Now I'm using RedHat 9 and it works!
Cheers,
Wim
Quoted 14 lines · Jean-Michel POURE
Quoted 2 lines · Wim Vanderbauwhede
I'm trying to figure out why qemu-0.5.3 doesn't work on PPC with a recent x86 distro (Mandrake 10)
Dear Wim,
There is a small usability wiki at the following address:
http://am.xs4all.nl/phpwiki/index.php/QemuMandrake 10 is reported not to work under x86 (pc emulation mode). Very interesting to see that it does not work under PPC too.
Cheers,
Jean-Michel
Quoted 2 lines · Wim Vanderbauwhede
Thanks a lot, Jean-Michel, the problem was indeed with Mandrake 10. Now I'm using RedHat 9 and it works!
Dear Vim,
Do not hesitate to make a screenshot and upload it to the wiki. Qemu needs fancy screenshots, especially of the PPC platform.
Cheers,
Jean-Michel