sdl audio system freezes when closing sounds system if libsdl1.2debian-alsa is selected and pulseaudio server is running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libsdl1.2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
SDL sound system has background thread which should exit when audio system is closed (with sql quit for example). But if pulseaudio is in use sdl alsa driver freezes in thread join for sound thread.
This is easy to reproduce with wesnoth:
#0 0x00007fd09db3fcfd in pthread_join () from /lib/libpthread
#1 0x00007fd0a04da87e in SDL_WaitThread () from /usr/lib/
#2 0x00007fd0a04d244a in SDL_AudioQuit () from /usr/lib/
#3 0x00007fd0a04d1935 in SDL_QuitSubSystem () from /usr/lib/
#4 0x00007fd0a0b79735 in Mix_CloseAudio () from /usr/lib/
#5 0x00000000008c81dd in ?? ()
#6 0x00000000004154d0 in ?? ()
#7 0x0000000000422157 in ?? ()
#8 0x00000000004225c6 in ?? ()
#9 0x00007fd09dd72abd in __libc_start_main () from /lib/libc.so.6
#10 0x0000000000411079 in ?? ()
#11 0x00007fff0c2c2b98 in ?? ()
#12 0x000000000000001c in ?? ()
#13 0x0000000000000001 in ?? ()
#14 0x00007fff0c2c4bb7 in ?? ()
#15 0x0000000000000000 in ?? ()
(gdb) threads
Undefined command: "threads". Try "help".
(gdb) info threads
4 Thread 0x7fd098c57910 (LWP 12494) 0x00007fd09ddf7ed1 in nanosleep () from /lib/libc.so.6
3 Thread 0x7fd091e2d910 (LWP 12496) 0x00007fd09de27373 in poll () from /lib/libc.so.6
2 Thread 0x7fd09162c910 (LWP 12497) 0x00007fd09de27373 in poll () from /lib/libc.so.6
* 1 Thread 0x7fd0a11cc710 (LWP 12493) 0x00007fd09db3fcfd in pthread_join () from /lib/libpthread
Problem here is that libsdl1.
ProblemType: Bug
Architecture: amd64
Date: Wed Dec 30 19:55:53 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelMo
Package: libsdl1.
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: libsdl1.2
Uname: Linux 2.6.31-16-generic x86_64
Status changed to 'Confirmed' because the bug affects multiple users.