You are not logged in.

#1 2007-01-02 18:17:12

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

[Solved] QEMU segfaults on me

I've installed QEMU and whenever I try to run it it gives me "Segmentation fault". I've tried installing Windows XP (with SP2) and some old Ubuntu I had laying around, as well as the linux-test image from the QEMU site.

I installed kqemu since it is supposed to speed up QEMU, but I've since removed it in an attempt to solve the problem. However it stills segfauts on me.

$ qemu -nographic -hda linux.img -kernel bzImage-2.4.21 -append "console=ttyS0 root=/dev/hda sb=0x220,5,1,5 ide2=noprobe ide3=noprobe ide4=noprobe ide5=noprobe" -snapshot
(qemu) Segmentation fault

$ qemu-system-x86_64 -nographic -hda linux.img -kernel bzImage-2.4.21 -append "console=ttyS0 root=/dev/hda sb=0x220,5,1,5 ide2=noprobe ide3=noprobe ide4=noprobe ide5=noprobe" -snapshot
(qemu) Segmentation fault

$ qemu -cdrom winxpsp2.iso -hda win.qcow -m 256 -boot d
Segmentation fault

$ qemu-system-x86_64 -cdrom winxpsp2.iso -hda win.qcow -m 256 -boot d
Segmentation fault

I'm running Arch64 with vanilla kernel 2.6.19.1 (I used makepkg to create the kqemu package for my kernel).

EDIT: I saw that the following was added to /var/log/messages.log:

Jan  2 19:23:53 grimreaper qemu[15845]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fffdd1247b8 error 14
Jan  2 19:24:20 grimreaper qemu-system-x86[15851]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fff2b2a38f8 error 14


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#2 2007-01-02 18:32:01

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [Solved] QEMU segfaults on me

Yes, qemu is broken since "ages". See http://bugs.archlinux.org/task/5874

I uploaded a fixed package at http://www.archlinux.de/~pierre/package … pkg.tar.gz

Offline

#3 2007-01-02 20:49:13

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: [Solved] QEMU segfaults on me

Ah, thanks, I should have thought of searching for existing bugs. Though I read on the QEMU forums a new version should come out in january so perhaps it'll work then.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#4 2007-01-03 00:24:34

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: [Solved] QEMU segfaults on me

Hmm, is -kernel-kqemu disabled in that build? It tells me that it's an invalid option. :-/

Hmm.. looking at their FAQ I saw this:

I tried to compile qvm86/kqemu using gcc 3, but my kernel is compiled under gcc 4 so that doesn't work. I demand that you fix this compiler dependency so I can run a gcc 4 compiled kqemu/qvm86 with my gcc 4 kernel.

Already done. kqemu and qvm86 work fine with gcc 4. As explained in another entry, only the dynamic translator has an issue with compilers that are not gcc 3. Since the accelerators (kqemu and qvm86) do not do any translation, this bug doesn't affect them.

You can get away with compiling main qemu with gcc 3 and an accelerator with gcc 4. That works fine. Note that this may require a bit of ./configure trickery - details needed.

So the problem could be your build is using gcc3 while my kernel and kqemu is using gcc4.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#5 2007-01-03 08:35:17

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [Solved] QEMU segfaults on me

To use kqemu on Arch64 you`l have to start qemu with " qemu-system-x86_64".

Offline

Board footer

Powered by FluxBB