Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13754 - Qemu segmentation fault

Attached to Project: Arch Linux
Opened by Lacsap (lacsap) - Wednesday, 11 March 2009, 18:28 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 27 April 2009, 16:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Hi,

When running qemu with socket (listen), qemu return with segmentation fault.
With user or tap nic, no problem.

Additional info:
* package version(s)
* config and/or log files etc.

QEMU PC emulator version 0.10.0, Copyright (c) 2003-2008 Fabrice Bellard
Other recent post exists : http://www.linux-kvm.com/content/kvm-segfault-when-using-tcp-socket-network-interface


Steps to reproduce : qemu -hda disk -m 192 -localtime -k fr -net nic -net socket,listen=:1234
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 27 April 2009, 16:44 GMT
Reason for closing:  Upstream
Comment by Lacsap (lacsap) - Friday, 13 March 2009, 20:50 GMT
"qemu -hda disk -m 192 -localtime -k fr -net nic -net socket,listen=:1234" started with root user do the same segmentation fault.
Comment by Lacsap (lacsap) - Friday, 27 March 2009, 17:52 GMT
After upgraded kernel26 (2.6.28.7-2 -> 2.6.28.8-1), the segmentation fault still remain.

Found in /var/log/everything.log :
kernel: kvm: 5853: cpu0 unhandled wrmsr: 0xc0010117 data 0
Comment by Lacsap (lacsap) - Friday, 27 March 2009, 18:01 GMT
See http://bugs.archlinux.org/task/13861 for more tests.
On this bug report, on second point, for KO, read

vdekvm -hda test -net nic -net vde,sock=/tmp/switch

and not

vdeqemu -hda test -net nic -net vde,sock=/tmp/switch

(a bad ctrl-c/ctrl-v)
Comment by Lacsap (lacsap) - Friday, 27 March 2009, 18:47 GMT
# qemu | grep -i version

QEMU PC emulator version 0.10.0, Copyright (c) 2003-2008 Fabrice Bellard

# kvm | grep -i version

QEMU PC emulator version 0.9.1 (kvm-84), Copyright (c) 2003-2008 Fabrice Bellard

# grep -i qemu /var/log/pacman.log | tail -n 1

installed qemu (0.10.0-1)
Comment by Lacsap (lacsap) - Wednesday, 01 April 2009, 18:53 GMT
upgraded qemu (0.10.0-1 -> 0.10.1-1)
segmentation fault still remain
dmesg | tail :
qemu[5710]: segfault at 0 ip b7a73063 sp bfd59cfc error 4 in libc-2.9.so[b7a00000+140000]
Comment by Lacsap (lacsap) - Wednesday, 01 April 2009, 18:55 GMT
If I can help, say me how...
Comment by Tobias Powalowski (tpowa) - Monday, 06 April 2009, 18:31 GMT
seems like an upstream issue, you could report it there
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 10 April 2009, 02:03 GMT
Hi, i do some quick reseach in the source code @ net.c file from qemu, seems a problem of don't check correct parameters, then tries to using null pointer.

Then a fix is putting a name parameter:

[djgera@gerardo ~]$ qemu -cdrom /home/data/iso/archlinux/archlinux-2009.02-core-i686.iso -net nic -net socket,listen=:10000
Segmentation fault
[djgera@gerardo ~]$ qemu -cdrom /home/data/iso/archlinux/archlinux-2009.02-core-i686.iso -net nic -net socket,name=xxx,listen=:10000
Works :)
Comment by Lacsap (lacsap) - Friday, 10 April 2009, 19:24 GMT
Upgraded qemu (0.10.2-1 -> 0.10.2-2) and 0.10.2-2 doesn't solve the check.

But effectivly, qemu and qemu --enable-kvm with name=xxx parameter works :-)

Thanks.

So, if I understand, this is not an upstream issue, this a qemu problem ?
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 12 April 2009, 00:26 GMT
:)

Yes is a upstream (qemu) issue. Please report to qemu devs. ;)

Loading...