AC97 sound card crashes QEMU

Bug #1246890 reported by John Arbuckle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

The AC97 sound card does not work. It stops QEMU on startup. The cause appears to be some kind of deadlock.

Steps to reproduce:
Just add -soundhw ac97 to QEMU's arguments. Example: qemu-system-ppc -soundhw ac97

The example above is all it takes to reproduce the problem.

This problem has been observed on Mac OS X and Debian Linux.

I question whether the ac97 support ever worked. It is a file that was taken from VirtualBox and added to QEMU. I do know that VirtualBox's support for the ac97 sound card works perfectly.

The exact line of code that stops QEMU in its tracks is located in the file main-loop.c, in the function os_host_main_loop_wait(), the call made to qemu_mutex_lock_iothread(). The is where QEMU stops under Mac OS X.

Revision history for this message
John Arbuckle (programmingkidx) wrote :

This problem also affects qemu-system-i386.

Revision history for this message
Jan Kiszka (jan-kiszka) wrote : Re: [Bug 1246890] [NEW] AC97 sound card crashes QEMU

On 2013-10-31 21:48, John Arbuckle wrote:
> Public bug reported:
>
> The AC97 sound card does not work. It stops QEMU on startup. The cause
> appears to be some kind of deadlock.
>
> Steps to reproduce:
> Just add -soundhw ac97 to QEMU's arguments. Example: qemu-system-ppc -soundhw ac97
>
> The example above is all it takes to reproduce the problem.
>
> This problem has been observed on Mac OS X and Debian Linux.
>
> I question whether the ac97 support ever worked. It is a file that was
> taken from VirtualBox and added to QEMU. I do know that VirtualBox's
> support for the ac97 sound card works perfectly.
>
> The exact line of code that stops QEMU in its tracks is located in the
> file main-loop.c, in the function os_host_main_loop_wait(), the call
> made to qemu_mutex_lock_iothread(). The is where QEMU stops under Mac OS
> X.
>
> ** Affects: qemu
> Importance: Undecided
> Status: New
>

Maybe this is just a regression: I'm using ac97 for a win7 guest for a
while, and since recently (don't recall when precisely, some weeks
maybe) I'm getting "main-loop: WARNING: I/O thread spun for 1000
iterations", a temporarily stuck guest and broken sound output. This
used to work fine. Someone has to bisect, I didn't find the time yet.

Jan

Revision history for this message
John Arbuckle (programmingkidx) wrote :

Turns out this problem was with another program called AudioJack. It interferes with QEMU and prevents sound from working. Uninstalling AudioJack made the AC97 sound card work again under Mac OS 10.6.

Changed in qemu:
status: New → Fix Committed
Thomas Huth (th-huth)
Changed in qemu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.