Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920825

Summary: app-emulation/qemu-8.2.0 qemu-system-m68k segfault ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r3/work/alsa-lib-1.2.10/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
Product: Gentoo Linux Reporter: immolo <immoloism>
Component: Current packagesAssignee: Virtualization Team <virtualization>
Status: CONFIRMED ---    
Severity: normal CC: dilfridge, germtoo, m68k
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: strace output

Description immolo 2023-12-27 20:47:20 UTC
Created attachment 880757 [details]
strace output

Since updating to qemu-8.2.0 running the command:
qemu-system-m68k -M q800 -serial mon:stdio -m 1000M -drive file=gentoo-17.0.qcow2,format=qcow2 -append "root=/dev/sda1 rw console=ttyS0" -kernel vmlinux

Gives the error:

ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r3/work/alsa-lib-1.2.10/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
sdl: SDL_OpenAudioDevice for playback failed
sdl: Reason: ALSA: Couldn't open audio device: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r3/work/alsa-lib-1.2.10/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
sdl: SDL_OpenAudioDevice for playback failed
sdl: Reason: ALSA: Couldn't open audio device: No such file or directory
audio: Could not create a backend for voice `asc.out'
Segmentation fault

Downgrading back to 8.1.3 solves the issue or as a workaround setting `-audio none` allows it to work as well.

To reproduce from a clean stage3

1. set system to ~amd64
2. install qemu-8.2.0
3. Use https://wiki.debian.org/M68k/QemuSystemM68k to create a quick m68k vm to hit the error.