2 Jan 2004 03:52
Segmentation fault with 0.50 and 0.51 and fedora core ls
Michael Torrie <torriem <at> chem.byu.edu>
2004-01-02 02:52:08 GMT
2004-01-02 02:52:08 GMT
I'm still having many problems using qemu to run all but the most basic static-ish x86 executables on my yellowdog ppc box. qemu just dies with a segmentation fault. I can run xterm, xeyes, ddd, and adobe acrobat reader, all from my x86 fedora core box (copying over the appropriate libraries for glibc, x11, etc). However, most other exes, even a simple exe like ls, fail with the segmentation fault. Since no one else is reporting this problem on the list, I think that perhaps it is an interaction between qemu and the ntpl-threaded glibc 2.3.3 that fedora core ships with. To replicate the problem, copy over ls and any dependent libraries to the yellowdog 3.0.1 box. run ls with qemu 0.51. qemu will quit with a segmentation fault. Doing some simple debugging indicates that there is a null pointer that is dereferenced somewhere in the synthetic cpu code. See my other posts from last month for the exact place in the code; I don't have the capabilities to debug qemu until I return from vacation.
On Jan 2, 2004, at 10:16 AM, Fabrice Bellard wrote:
> Hi,
>
> QEMU only works on sparc-linux. However, if someone gives me an access
> to a sparc/solaris workstation, I can try to make the system emulator
> work.
>
> Fabrice.
>
> Yelich, Scott D. wrote:
>> hello everyone...
>> I was going to see what the status of qemu was/is for sparc.
>> When you get the software try to "configure" ... you get some bad
>> substitutions
>> errors (the configure path with he % in front, and then the
>> source_path%/, after
>> that, it's "uname -p" instead of "uname -m" :-< ) ... even after
>> that, compiling
>> fails on the first target (dropping the -n in the config-host.h file
>> seems to get past
>> that, but then the compile just blows up. :-<
>> Does anyone have a binary of this for solaris/sparc/2.8?
>> I'm willing to test/make/configure/etc.
>> Scott
>> **********************************************************************
>> This communication is confidential and is intended only for the
> It seems really more simple than trying to make two glibc available on
> your system...
What does this have to do with my problem of qemu segfaulting when I run
x86 binaries? qemu builds and runs just fine. So that's not the
problem. It already compiles. Making qemu static will not help my
problem with glibc (remember it's the x86 glibc that's causing the
problems, not the ppc version). This is a bug in how qemu interacts
with the x86 glibc (in the gnemul folder). Not saying that it's not
related to the ppc glibc; just that what you're telling me doesn't seem
to fit with my problem.
To recap, xeyes, xterm, ddd, acrobat reader all work under qemu. I
copied them straight off my fedora core box. on my ppc yellowdog box,
qemu can run them just fine. Even a simple hello world that I compiled
works. However most other binaries cause qemu to segfault with a null
pointer problem, caused most likely by an interaction between qemu and
the x86 glibc stored in the /usr/gnemul folder.
Michael
Michael
RSS Feed