Clear out log handlers when disposing Debug to avoid crashers.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Tue, 15 Nov 2011 21:43:22 +0000 (13:43 -0800)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Wed, 16 Nov 2011 18:57:13 +0000 (10:57 -0800)
commitd2f0ae453240153b21ab3434681cfd6739c9790b
treef701cf0ab83bdf99aee659dc5224d91ecba5f3f4
parentbbbae1cb632f4a86221bcf71c9402efd1ec95416
Clear out log handlers when disposing Debug to avoid crashers.

In cases where the IndividualAggregator is destroyed and instantiated
again (as in some of our tests), we could end up calling the Debug
log handlers after destroying the Debug instance (resulting in
g_static_rec_mutex_lock/unlock calls on an invalid freed mutex,
causing a segfault).

Closes: bgo#664158 - Stale log handler can cause segfault when
re-creating Aggregator in a single run
NEWS
folks/debug.vala