gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #31868] Tes run_swfdec_testsuite_m some times fail w


From: Benjamin Wolsey
Subject: [Gnash-commit] [bug #31868] Tes run_swfdec_testsuite_m some times fail with a segfault
Date: Sat, 05 Mar 2011 08:35:11 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3

Update of bug #31868 (project gnash):

                  Status:               Confirmed => Ready For Test         

    _______________________________________________________

Follow-up Comment #13:

The full diagnosis is as follows:

movie_definitions are kept alive by movie_root and the MovieLibrary. The
latter is static.

SWFParsers are all owned by a movie_definition, running in a separate thread.

As long as movie_root is alive, its MovieLoader thread can continue to create
new movie_definitions and place them in the library.

gprocessor called MovieFactory::clear(), which in turn clears the library, but
movie_root was still alive and occasionally managed to add another
movie_definition to the MovieLibrary after this was cleared. The
movie_definition was then kept alive until static destruction occurred. Its
parser thus continued to use resources from main (RunResources), as well as
accessing static resources such as LogFile, which may be destroyed before or
after  MovieLibrary.

So the correct fix currently is indeed to make sure movie_root is destroyed
before MovieFactory::clear() is called. In future the situation would be
improved by reducing the number of statics further and cutting down on
threading.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31868>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]