From 48a54070b42c55d53a4c9f2c28271e17c967d170 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 21 Apr 2011 11:26:34 +0300 Subject: Stopgap fixes for the crash on exit, fdo#36301 Hacks just intended as debugging aids, suggested by caolan. But as this does prevent the crash, I removed the debugging printfs and assertions, and commit as we don't have any proper fix anyway. --- configmgr/source/components.cxx | 5 +++++ configmgr/source/rootaccess.cxx | 9 +++++++++ 2 files changed, 14 insertions(+) (limited to 'configmgr/source') diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index 108e08fa7a12..e20ddad2eb45 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -510,12 +510,16 @@ css::beans::Optional< css::uno::Any > Components::getExternalValue( return value; } +int tempHACK = 0; + Components::Components( css::uno::Reference< css::uno::XComponentContext > const & context): context_(context) { lock_ = lock(); + tempHACK = 1; + OSL_ASSERT(context.is()); RTL_LOGFILE_TRACE_AUTHOR("configmgr", "sb", "begin parsing"); parseXcsXcuLayer( @@ -594,6 +598,7 @@ Components::Components( Components::~Components() { flushModifications(); + tempHACK = 0; } void Components::parseFileLeniently( diff --git a/configmgr/source/rootaccess.cxx b/configmgr/source/rootaccess.cxx index ef5982e3a56d..90e5675b35a3 100644 --- a/configmgr/source/rootaccess.cxx +++ b/configmgr/source/rootaccess.cxx @@ -284,6 +284,8 @@ void RootAccess::removeChangesListener( } } +extern int tempHACK; + void RootAccess::commitChanges() throw (css::lang::WrappedTargetException, css::uno::RuntimeException) { @@ -291,6 +293,13 @@ void RootAccess::commitChanges() Broadcaster bc; { osl::MutexGuard g(*lock_); + + // OSL_ENSURE(tempHACK, "fucktastic!, seriously busted lifecycles\n"); + if (!tempHACK) + { + return; + } + checkLocalizedPropertyAccess(); int finalizedLayer; Modifications globalMods; -- cgit