sdl audio system freezes when closing sounds system if libsdl1.2debian-alsa is selected and pulseaudio server is running

Bug #501703 reported by Anni Mäkelä
14
This bug affects 3 people
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.so.0
#1 0x00007fd0a04da87e in SDL_WaitThread () from /usr/lib/libSDL-1.2.so.0
#2 0x00007fd0a04d244a in SDL_AudioQuit () from /usr/lib/libSDL-1.2.so.0
#3 0x00007fd0a04d1935 in SDL_QuitSubSystem () from /usr/lib/libSDL-1.2.so.0
#4 0x00007fd0a0b79735 in Mix_CloseAudio () from /usr/lib/libSDL_mixer-1.2.so.0
#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.so.0

Problem here is that libsdl1.2debian-alsa is default package which doesn't work well with pulseaudio.

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)
NonfreeKernelModules: fglrx
Package: libsdl1.2debian-alsa 1.2.13-4ubuntu4
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: libsdl1.2
Uname: Linux 2.6.31-16-generic x86_64

Revision history for this message
Anni Mäkelä (anni-makela) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libsdl1.2 (Ubuntu):
status: New → Confirmed
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.