bugGnash - The GNU Flash player - Bugs: bug #42416, deadlock on exit

 
 

bug #42416: deadlock on exit

Submitted by:  Sandro Santilli <strk>
Submitted on:  Sat 24 May 2014 01:37:46 PM UTC  
 
Category: NoneSeverity: 5 - Blocker
Release: NoneStatus: Need Info
Privacy: PublicAssigned to: Bastiaan Jacques <bjacques>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 12 Jun 2014 12:59:06 PM UTC, comment #4:

If you've done with all your changes I could try running my tests again. Just tell me when the dust poses.

Sandro Santilli <strk>
Project Member
Mon 26 May 2014 09:40:12 AM UTC, comment #3:

Not really, I was just running my "test_all_tests" script (for file in `find_all_swf_files`; do gnash $file; done) and at one point (after quitting one window) no new window came out, so I attached the process with gdb and the stacktrace is below.

Again, it could be related to the fact that meanwhile I was installing/upgrading sound-related things so could be there was an hard lock on the audio backend.

In any case if it was a deadlock due to a race condition it would not be easy to reproduce :/

Sandro Santilli <strk>
Project Member
Sat 24 May 2014 08:31:10 PM UTC, comment #2:

Can you please provide steps to reproduce?

Bastiaan Jacques <bjacques>
Project MemberIn charge of this item.
Sat 24 May 2014 01:41:03 PM UTC, comment #1:

Sorry my backtrace could be specific to the fact I'm messing up with pulseaudio. Will try to fix that locally, but also see
a possible deadlock on a buildbot: http://gnashdev.org:8010/builders/jessie-linux-i386/builds/1298/steps/make_anal/logs/stdio

Sandro Santilli <strk>
Project Member
Sat 24 May 2014 01:37:46 PM UTC, original submission:

Got the process stuck on exit.
Attaching it with gdb gave this stacktrace:

(gdb) bt
#0 0x00007fdd68f891f8 in pthread_join (threadid=140588372457216,
thread_return=0x0) at pthread_join.c:92
#1 0x00007fdd654f8cb6 in SDL_WaitThread ()
from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#2 0x00007fdd654f107a in SDL_AudioQuit ()
from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#3 0x00007fdd654eff95 in SDL_QuitSubSystem ()
from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#4 0x00007fdd6b2e7b83 in gnash::sound::SDL_sound_handler::~SDL_sound_handler
(this=0x7fdd6dcc7310, __in_chrg=<optimized out>)
at /usr/src/gnash/gnash-head/libsound/sdl/sound_handler_sdl.cpp:131
#5 0x00007fdd6b2e7bc9 in gnash::sound::SDL_sound_handler::~SDL_sound_handler
(this=0x7fdd6dcc7310, __in_chrg=<optimized out>)
at /usr/src/gnash/gnash-head/libsound/sdl/sound_handler_sdl.cpp:133
#6 0x00007fdd6c525019 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x7fdd6dd00fb0)
at /usr/include/c++/4.8/bits/shared_ptr_base.h:144
#7 0x00007fdd6c540aef in ~__shared_count (this=0x7fffa7e47110,
__in_chrg=<optimized out>)
at /usr/include/c++/4.8/bits/shared_ptr_base.h:553
#8 ~__shared_ptr (this=0x7fffa7e47108, __in_chrg=<optimized out>)
at /usr/include/c++/4.8/bits/shared_ptr_base.h:810
#9 ~shared_ptr (this=0x7fffa7e47108, __in_chrg=<optimized out>)

Assigning to bjacques as he recently removed barriers and mutexes. This is with Gnash 0.8.11dev (master-22144-6cb7f6f)

Sandro Santilli <strk>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bjacques (Posted a comment)
  • -unavailable- added by strk (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 12 Jun 2014 09:40:50 AM UTCbjacquesStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup