sirikata/sirikata — Issue #475: Crash in SDL audio on exit
Author: ewencp
Created: 2012-01-18 16:43:45+00:00
State: open

SDL's audio thread is crashing on exit on Linux sometimes:

#0 0x00007fffed03ea75 in raise () from /lib/libc.so.6
#1 0x00007fffed0425c0 in abort () from /lib/libc.so.6
#2 0x00007fffa3b5bb02 in pa_tls_set () from /usr/lib/libpulsecommon-0.9.21.so
#3 0x00007fffa3b5c095 in pa_thread_self () from /usr/lib/libpulsecommon-0.9.21.so
#4 0x00007fffa3d9cfdc in pa_threaded_mainloop_lock () from /usr/lib/libpulse.so.0
#5 0x00007fffa47b4d79 in pa_simple_drain () from /usr/lib/libpulse-simple.so.0
#6 0x00007ffff4083668 in SDL_RunAudio (devicep=) at ./src/audio/SDL_audio.c:535
#7 0x00007ffff40ac625 in SDL_RunThread (data=0xe56760) at ./src/thread/SDL_thread.c:211
#8 0x00007ffff41052b9 in RunThread (data=0x187d) at ./src/thread/pthread/SDL_systhread.c:48
#9 0x00007ffff3e599ca in start_thread () from /lib/libpthread.so.0
#10 0x00007fffed0f170d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Another thread is currently doing:

#0 0x00007ffff3e5b03d in pthread_join () from /lib/libpthread.so.0
#1 0x00007ffff40ac76e in SDL_WaitThread (thread=0x1d39680, status=0x0) at ./src/thread/SDL_thread.c:284
#2 0x00007ffff40828b1 in close_audio_device (device=0x11da400) at ./src/audio/SDL_audio.c:728
#3 0x00007ffff4082928 in SDL_CloseAudioDevice (devid=) at ./src/audio/SDL_audio.c:1129
#4 0x00007fffdc0a864f in Sirikata::SDL::AudioSimulation::iStop (this=0x20913c0, lt=...) at /home/ewencp/sirikata.sirikata/liboh/plugins/sdlaudio/SDLAudio.cpp:131