spring/spring — comment on commit 56cc5063c97b9c50b26d058f497e6cc4f9173cb2
File:  line 0
By jk3064:

this _causes_ a deadlock on exit:
(gdb) bt
#0 0xffffe424 in __kernel_vsyscall ()
#1 0xb7f4e489 in __lll_lock_wait () from /lib/libpthread.so.0
#2 0xb7f4978b in _L_lock_507 () from /lib/libpthread.so.0
#3 0xb7f495cb in pthread_mutex_lock () from /lib/libpthread.so.0
#4 0x086ff9ee in boost::pthread::pthread_mutex_scoped_lock::pthread_mutex_scoped_lock (this=0xbfffe118, m_=0xb3b2d1f0) at /usr/local/include/boost/thread/pthread/pthread_mutex_scoped_lock.hpp:26
#5 0x086fff87 in boost::recursive_mutex::lock (this=0xb3b2d1f0) at /usr/local/include/boost/thread/pthread/recursive_mutex.hpp:124
#6 0x087044c9 in boost::unique_lock::lock (this=0xbfffe198) at /usr/local/include/boost/thread/locks.hpp:412
#7 0x08701164 in boost::unique_lock::unique_lock (this=0xbfffe198, m_=...) at /usr/local/include/boost/thread/locks.hpp:290
#8 0x08d5f51b in CSoundSource::StreamStop (this=0xb3b2d1f0) at /mnt/d/spiele/spring.git/rts/System/Sound/SoundSource.cpp:255
#9 0x08d51628 in AudioChannel::StreamStop (this=0x96a6080) at /mnt/d/spiele/spring.git/rts/System/Sound/AudioChannel.cpp:274
#10 0x088b7468 in LuaUnsyncedCtrl::StopSoundStream () at /mnt/d/spiele/spring.git/rts/Lua/LuaUnsyncedCtrl.cpp:653
#11 0x08d6a49a in luaD_precall (L=0xf290980, func=0x13c5d220, nresults=0) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:319
#12 0x08d7dfed in luaV_execute (L=0xf290980, nexeccalls=1) at /mnt/d/spiele/spring.git/rts/lib/lua/src/lvm.cpp:612
#13 0x08d6a714 in luaD_call (L=0xf290980, func=0x13c5d210, nResults=-1) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:377
#14 0x08d62770 in f_call (L=0xf290980, ud=0xbfffe57c) at /mnt/d/spiele/spring.git/rts/lib/lua/src/lapi.cpp:812
#15 0x08d69a93 in luaD_rawrunprotected (L=0xf290980, f=0x8d62746 , ud=0xbfffe57c) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:116
#16 0x08d6aa95 in luaD_pcall (L=0xf290980, func=0x8d62746 , u=0xbfffe57c, old_top=120, ef=0) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:463
#17 0x08d62807 in lua_pcall (L=0xf290980, nargs=1, nresults=-1, errfunc=0) at /mnt/d/spiele/spring.git/rts/lib/lua/src/lapi.cpp:833
#18 0x08d65ddb in luaB_pcall (L=0xf290980) at /mnt/d/spiele/spring.git/rts/lib/lua/src/lbaselib.cpp:377
#19 0x08d6a49a in luaD_precall (L=0xf290980, func=0x13c5d208, nresults=-1) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:319
#20 0x08d7dfed in luaV_execute (L=0xf290980, nexeccalls=2) at /mnt/d/spiele/spring.git/rts/lib/lua/src/lvm.cpp:612
#21 0x08d6a714 in luaD_call (L=0xf290980, func=0x13c5d1a0, nResults=0) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:377
#22 0x08d62770 in f_call (L=0xf290980, ud=0xbfffe94c) at /mnt/d/spiele/spring.git/rts/lib/lua/src/lapi.cpp:812
#23 0x08d69a93 in luaD_rawrunprotected (L=0xf290980, f=0x8d62746 , ud=0xbfffe94c) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:116
#24 0x08d6aa95 in luaD_pcall (L=0xf290980, func=0x8d62746 , u=0xbfffe94c, old_top=8, ef=0) at /mnt/d/spiele/spring.git/rts/lib/lua/src/ldo.cpp:463
#25 0x08d62807 in lua_pcall (L=0xf290980, nargs=0, nresults=0, errfunc=0) at /mnt/d/spiele/spring.git/rts/lib/lua/src/lapi.cpp:833
#26 0x08811442 in CLuaHandle::RunCallInTraceback (this=0xf28f8c8, inArgs=0, outArgs=0, errfuncIndex=0, traceback="") at /mnt/d/spiele/spring.git/rts/Lua/LuaHandle.cpp:446
#27 0x08811548 in CLuaHandle::RunCallInTraceback (this=0xf28f8c8, hs=..., inArgs=0, outArgs=0, errfuncIndex=0) at /mnt/d/spiele/spring.git/rts/Lua/LuaHandle.cpp:474
#28 0x0881fb74 in CLuaHandle::RunCallIn (this=0xf28f8c8, hs=..., inArgs=0, outArgs=0) at /mnt/d/spiele/spring.git/rts/Lua/LuaHandle.h:472
#29 0x0889b419 in CLuaUI::Shutdown (this=0xf28f8c8) at /mnt/d/spiele/spring.git/rts/Lua/LuaUI.cpp:345
#30 0x0889add1 in CLuaUI::~CLuaUI (this=0xf28f8c8, __in_chrg=) at /mnt/d/spiele/spring.git/rts/Lua/LuaUI.cpp:237
#31 0x0889ae81 in CLuaUI::~CLuaUI (this=0xf28f8c8, __in_chrg=) at /mnt/d/spiele/spring.git/rts/Lua/LuaUI.cpp:241
#32 0x0889a170 in CLuaUI::FreeHandler () at /mnt/d/spiele/spring.git/rts/Lua/LuaUI.cpp:113
#33 0x08775d37 in CGuiHandler::~CGuiHandler (this=0xf278870, __in_chrg=) at /mnt/d/spiele/spring.git/rts/Game/UI/GuiHandler.cpp:117
#34 0x08775f0b in CGuiHandler::~CGuiHandler (this=0xf278870, __in_chrg=) at /mnt/d/spiele/spring.git/rts/Game/UI/GuiHandler.cpp:126
#35 0x086cf13a in SafeDelete (a=@0x965b1a0) at /mnt/d/spiele/spring.git/rts/System/Util.h:106
#36 0x086c16ca in CGame::~CGame (this=0x9aeb9f8, __in_chrg=) at /mnt/d/spiele/spring.git/rts/Game/Game.cpp:375
#37 0x086c1a29 in CGame::~CGame (this=0x9aeb9f8, __in_chrg=) at /mnt/d/spiele/spring.git/rts/Game/Game.cpp:440
#38 0x08c72436 in SpringApp::Shutdown () at /mnt/d/spiele/spring.git/rts/System/SpringApp.cpp:1021
#39 0x08c72398 in SpringApp::Run (this=0xbfffebf0, argc=1, argv=0xbfffed14) at /mnt/d/spiele/spring.git/rts/System/SpringApp.cpp:1004
#40 0x08c54d10 in MainFunc (argc=1, argv=0xbfffed14, ret=0xbfffec48) at /mnt/d/spiele/spring.git/rts/System/Main.cpp:51
#41 0x08c54f73 in Run (argc=1, argv=0xbfffed14) at /mnt/d/spiele/spring.git/rts/System/Main.cpp:62
#42 0x08c54fc0 in main (argc=1, argv=0xbfffed14) at /mnt/d/spiele/spring.git/rts/System/Main.cpp:92