Skip to contentSkip to conversation

qemu: qemu_mutex_lock: Invalid argument

Qemu-devel Rick Vernam 3 participants 4 messages Sep 14, 2010 – Sep 27, 2010

lore
Share & tools
lore
#0 lore raw

I don't have nearly enough info to file a proper bug report.

I am running qemu-kvm-0.13.0 rc1
starting qemu like so:
/root/qemu/bin/qemu-system-x86_64 -cpu host -enable-kvm -drive file=/root/qemu/w2k3_server.raw,if=virtio,aio=native -net nic,model=virtio,macaddr=52:54:00:12:34:56 -net tap,ifname=tap0 -localtime - usb -usbdevice tablet -vga std -vnc :25581 -monitor stdio -m 512 -runas rick

Every now and again, qemu will up and quit leaving only the following message:
qemu: qemu_mutex_lock: Invalid argument

At the moment I can't stop what I'm doing to go learn how to debug qemu, but I'd be happy if anybody is interested in suggesting something I could do to provide some info about this bug...
Would it be helpful to build with -O0 -g and run in gdb, then get a bt when it dies?
I haven't put this into production yet, so I can still afford downtime & re- compiles...etc.

thanks..

host machine is:
2.6.32-gentoo-r7 x86_64 Intel(R) Xeon(R) CPU E5450 @ 3.00GHz GenuineIntel GNU/Linux

guest os is Windows Server 2003, Standard Edition. Service Pack 2. Red Het VirtIO Ethernet Adapter Driver Version: 5.1.209.605 Red Hat VirtIO SCSI Controller Driver Version: 6.0.0.10

here is how I ran configure:
./configure --prefix=/root/qemu --target-list=x86_64-softmmu --extra-cflags="- march=native -O2 -pipe" --extra-ldflags="-march=native -O2 -pipe" --audio-drv- list= --audio-card-list= --disable-curses --disable-curl --enable-vnc-tls -- enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-vnc-thread

#1 lore raw
Quoted 30 lines · Rick Vernam

I don't have nearly enough info to file a proper bug report.

I am running qemu-kvm-0.13.0 rc1
starting qemu like so:
/root/qemu/bin/qemu-system-x86_64 -cpu host -enable-kvm -drive file=/root/qemu/w2k3_server.raw,if=virtio,aio=native -net nic,model=virtio,macaddr=52:54:00:12:34:56 -net tap,ifname=tap0 -localtime - usb -usbdevice tablet -vga std -vnc :25581 -monitor stdio -m 512 -runas rick

Every now and again, qemu will up and quit leaving only the following message:
qemu: qemu_mutex_lock: Invalid argument

At the moment I can't stop what I'm doing to go learn how to debug qemu, but I'd be happy if anybody is interested in suggesting something I could do to provide some info about this bug...
Would it be helpful to build with -O0 -g and run in gdb, then get a bt when it dies?
I haven't put this into production yet, so I can still afford downtime & re- compiles...etc.

thanks..

host machine is:
2.6.32-gentoo-r7 x86_64 Intel(R) Xeon(R) CPU E5450 @ 3.00GHz GenuineIntel GNU/Linux

guest os is Windows Server 2003, Standard Edition.  Service Pack 2. Red Het VirtIO Ethernet Adapter Driver Version: 5.1.209.605 Red Hat VirtIO SCSI Controller Driver Version: 6.0.0.10

Quoted 7 lines

here is how I ran configure:
./configure --prefix=/root/qemu --target-list=x86_64-softmmu --extra-cflags="- march=native -O2 -pipe" --extra-ldflags="-march=native -O2 -pipe" --audio-drv- list= --audio-card-list= --disable-curses --disable-curl --enable-vnc-tls -- enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-vnc-thread

There is two patch for that
http://patchwork.ozlabs.org/patch/62420/
http://patchwork.ozlabs.org/patch/62263/

On of these patch is already in master:
http://git.qemu.org/qemu.git/commit/?id=ac71103dc6b408775ae72067790ab367912f75ec

Signature · 2 lines
Corentin Chary
http://xf.iksaif.net
#2 lore raw

Hi Rick,

2010/9/15 Corentin Chary <[email protected]>:

Quoted 39 lines · Rick Vernam
Quoted 30 lines

I don't have nearly enough info to file a proper bug report.

I am running qemu-kvm-0.13.0 rc1
starting qemu like so:
/root/qemu/bin/qemu-system-x86_64 -cpu host -enable-kvm -drive file=/root/qemu/w2k3_server.raw,if=virtio,aio=native -net nic,model=virtio,macaddr=52:54:00:12:34:56 -net tap,ifname=tap0 -localtime - usb -usbdevice tablet -vga std -vnc :25581 -monitor stdio -m 512 -runas rick

Every now and again, qemu will up and quit leaving only the following message:
qemu: qemu_mutex_lock: Invalid argument

At the moment I can't stop what I'm doing to go learn how to debug qemu, but I'd be happy if anybody is interested in suggesting something I could do to provide some info about this bug...
Would it be helpful to build with -O0 -g and run in gdb, then get a bt when it dies?
I haven't put this into production yet, so I can still afford downtime & re- compiles...etc.

thanks..

host machine is:
2.6.32-gentoo-r7 x86_64 Intel(R) Xeon(R) CPU E5450 @ 3.00GHz GenuineIntel GNU/Linux

guest os is Windows Server 2003, Standard Edition.  Service Pack 2. Red Het VirtIO Ethernet Adapter Driver Version: 5.1.209.605 Red Hat VirtIO SCSI Controller Driver Version: 6.0.0.10

Quoted 7 lines

here is how I ran configure:
./configure --prefix=/root/qemu --target-list=x86_64-softmmu --extra-cflags="- march=native -O2 -pipe" --extra-ldflags="-march=native -O2 -pipe" --audio-drv- list= --audio-card-list= --disable-curses --disable-curl --enable-vnc-tls -- enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-vnc-thread

Quoted 2 lines

There is two patch for that
http://patchwork.ozlabs.org/patch/62420/

Can you try the patch above? If it works, I need to ask Anthony to pick it up for 0.13.

Thanks,

Yoshi

Quoted 10 lines

http://patchwork.ozlabs.org/patch/62263/

On of these patch is already in master:
http://git.qemu.org/qemu.git/commit/?id=ac71103dc6b408775ae72067790ab367912f75ec

--
Corentin Chary
http://xf.iksaif.net

#3 lore raw
Quoted 45 lines · On Wednesday 15 September 2010 05:46:55 Yoshiaki Tamura wrote:

Hi Rick,

2010/9/15 Corentin Chary <[email protected]>:

Quoted 32 lines · Rick Vernam
Quoted 31 lines

I don't have nearly enough info to file a proper bug report.

I am running qemu-kvm-0.13.0 rc1
starting qemu like so:
/root/qemu/bin/qemu-system-x86_64 -cpu host -enable-kvm -drive file=/root/qemu/w2k3_server.raw,if=virtio,aio=native -net nic,model=virtio,macaddr=52:54:00:12:34:56 -net tap,ifname=tap0

(quoted diff) +0 -2
-localtime - usb -usbdevice tablet -vga std -vnc :25581 -monitor stdio
-m 512 -runas rick

Every now and again, qemu will up and quit leaving only the following
message: qemu: qemu_mutex_lock: Invalid argument

At the moment I can't stop what I'm doing to go learn how to debug qemu, but I'd be happy if anybody is interested in suggesting something I could do to provide some info about this bug...
Would it be helpful to build with -O0 -g and run in gdb, then get a bt when it dies?
I haven't put this into production yet, so I can still afford downtime & re- compiles...etc.

thanks..

host machine is:
2.6.32-gentoo-r7 x86_64 Intel(R) Xeon(R) CPU E5450 @ 3.00GHz GenuineIntel GNU/Linux

guest os is Windows Server 2003, Standard Edition. Service Pack 2. Red Het VirtIO Ethernet Adapter Driver Version: 5.1.209.605 Red Hat VirtIO SCSI Controller Driver Version: 6.0.0.10

Quoted 9 lines
Quoted 6 lines

here is how I ran configure:
./configure --prefix=/root/qemu --target-list=x86_64-softmmu --extra-cflags="- march=native -O2 -pipe" --extra-ldflags="-march=native -O2 -pipe" --audio-drv- list= --audio-card-list= --disable-curses --disable-curl --enable-vnc-tls -- enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-vnc-thread

There is two patch for that
http://patchwork.ozlabs.org/patch/62420/

Quoted 2 lines

Can you try the patch above? If it works, I need to ask Anthony to pick it up for 0.13.

I have not encountered this problem since applying the patch. So I sure would like to see it in 0.13.

Thanks,
-Rick

Quoted 14 lines

Thanks,

Yoshi

Quoted 9 lines

http://patchwork.ozlabs.org/patch/62263/

On of these patch is already in master:
http://git.qemu.org/qemu.git/commit/?id=ac71103dc6b408775ae72067790ab3679
12f75ec

--
Corentin Chary
http://xf.iksaif.net