[libav-bugs] [Bug 523] deadlock

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Mon May 27 10:04:14 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=523

--- Comment #3 from Martin Storsjö <martin at martin.st> 2013-05-27 10:04:14 CEST ---
Ok, so the issue I saw in the android libc probably is something completely
different.

What's happening on cygwin is that something nasty happens with the threads
that are blocked waiting for a cond variable when the program exits. Currently
these threads are joined and cleaned up avfilter_graph_free() called from
exit_program() in avconv.c, and exit_program is called at exit (set up via
atexit()).

So the cure seems to be to simply make sure to join all threads before exiting
(or don't bother to join them), or perhaps if you still have them running at
that point, don't have them waiting for a cond variable at that point.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list