Skip to contentSkip to conversation

qemu-i386 segfaults when running wine on a x86 CPU?

Qemu-devel James Supancic 3 participants 5 messages Jun 1, 2006 – Jun 3, 2006

lore
Share & tools
lore
#0 lore raw

When I run
qemu-i386 /usr/bin/wine
I get
qemu: uncaught target signal 11 (Segmentation fault) - exiting

I am using the wine version I compiled and installed for my x86 host, not the one from the qemu website. Do I have to compile my wine version with some special options to use it with qemu-i386 or set some special configuration settings?

I know I don't need qemu-i386 to run wine compiled for x86 CPUs on an x86 CPU. I am trying to figure out how to make a version of wine that will work with qemu-i386, after I figure this out I intend to move the wine installation over to a sparc CPU.

Thank you for your time,
James Supancic

#1 lore raw
Quoted 9 lines · James Supancic

When I run
qemu-i386 /usr/bin/wine
I get
qemu: uncaught target signal 11 (Segmentation fault) - exiting

I know I don't need qemu-i386 to run wine compiled for x86 CPUs on an x86 CPU. I am trying to figure out how to make a version of wine that will work with qemu-i386, after I figure this out I intend to move the wine installation over to a sparc CPU.

Qemu's user mode emulation only works for Linux -> Linux at the moment, i.e. programs compiled for Linux can be run on a Linux host. (The useful part is of course that programs compiled for a different CPU architecture than the host's can be run.)

However, encouraging progress has been made on qemu-darwin-user, which will do what you want to do. See here:
http://wiki.opendarwin.org/index.php/Darwine:qemu-darwin-user

- Josh

#2 lore raw

But, I am using a version of wine on Linux compiled for Linux? wine is a Linux program is it not?

I got the segfault when I ran
qemu-i386 /usr/bin/wine

when I run file /usr/bin/wine I get
/usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped.

I should be able to run 32-bit ELF executable compiled for Intel 80386 CPUs with qemu-i386, shouldn't I?

Note that, I didn't even try to run a Win32 executable with wine, I just tried to run "wine", it should have printed its command line options/help and exited without doing anything strange...

Thank you for your time,
James Supancic

Quoted 23 lines · Joshua Root
Quoted 9 lines · James Supancic

When I run
qemu-i386 /usr/bin/wine
I get
qemu: uncaught target signal 11 (Segmentation fault) - exiting

I know I don't need qemu-i386 to run wine compiled for x86 CPUs on an x86 CPU. I am trying to figure out how to make a version of wine that will work with qemu-i386, after I figure this out I intend to move the wine installation over to a sparc CPU.

Qemu's user mode emulation only works for Linux -> Linux at the moment, i.e. programs compiled for Linux can be run on a Linux host. (The useful part is of course that programs compiled for a different CPU architecture than the host's can be run.)

However, encouraging progress has been made on qemu-darwin-user, which will do what you want to do. See here:
http://wiki.opendarwin.org/index.php/Darwine:qemu-darwin-user

- Josh

#3 lore raw
Quoted 2 lines · James Supancic

But, I am using a version of wine on Linux compiled for Linux? wine is a Linux program is it not?

Oops, I wasn't paying attention and thought your message was posted to darwine-devel. Sorry!

- Josh

#4 lore raw
In reply to James Supancic

Hi,

Quoted 2 lines · James Supancic

But, I am using a version of wine on Linux compiled for Linux? wine is a Linux program is it not?

Well, partly so. It actually does quite a lot of fiddling to fake a Windows memory layout for one. I remember that there were some problems with stack protectors and other permission restricting Linux setups. It should be possible to support that startup routine, though.

Just out of interest: Are you running with or without kqemu?

Ciao,
Dscho