[pulseaudio-tickets] [Bug 42942] memory leak in pa_threaded_mainloop_free

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 15 06:57:35 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=42942

--- Comment #4 from Tanu Kaskinen <tanuk at iki.fi> 2012-03-15 06:57:35 PDT ---
2011/12/31:01:41 < mezcalero> coling: hmm, Ford_Prefect was asking about
RUNNING_ON_VALGRIND and not freeing static data in non-valgrind mode
2011/12/31:01:42 < mezcalero> coling: now he is offline
2011/12/31:01:42 < mezcalero> coling: just wanted to give the answer
2011/12/31:01:42 < mezcalero> coling: so that you guys know what this is about
2011/12/31:01:42 < mezcalero> coling: basically, the freeing of static data is
done for gcc destructors
2011/12/31:01:42 < mezcalero> and gcc destructors are fucked up in
multi-threaded programs and in the context of libraries
2011/12/31:01:42 < mezcalero> coling: which is why we normally don't do
anything in them
2011/12/31:01:43 < mezcalero> coling: except if you set RUNNING_ON_VALGRIND
2011/12/31:01:43 < mezcalero> coling: the assumption here is that you set that
env var only when in single threaded apps
2011/12/31:01:43 < mezcalero> coling: with other words: this logic matters, and
can't simply be dropped
2011/12/31:01:43 < mezcalero> coling: and it is not about speeding things up,
it is about ensuring that multi-threaded apps work correctly

Also, later:

2012/01/02:12:52 < Ford_Prefect> mezcalero: thanks for explaining. I'll fix
things up and dump this as documentation somewhere for future generations.

...just as a reminder ;)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the pulseaudio-bugs mailing list