[Libreoffice-bugs] [Bug 114025] deadlock from lock dialog: Singleton vs. SolarMutex in framework

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Nov 24 14:43:02 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=114025

--- Comment #4 from Michael Meeks <michael.meeks at collabora.com> ---

Of course, you fix one - and another one arrives:

>(gdb) bt
> #0  0x00007ffff73e98d7 in __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
> #1  0x00007ffff73eacaa in __GI_abort () at abort.c:78
> #2  0x00007ffff73e2866 in __assert_fail_base (fmt=0x7ffff751de40 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion at entry=0x7fffecd75ab0 "ImplGetSVData()->mpDefInst->GetYieldMutex()->IsCurrentThread() && \"SolarMutex not owned!\"", file=file at entry=0x7fffecd75a78 "/data/opt/libreoffice/master/vcl/source/app/dbggui.cxx", line=line at entry=47, function=function at entry=0x7fffecd76380 <ImplDbgTestSolarMutex()::__PRETTY_FUNCTION__> "void ImplDbgTestSolarMutex()") at assert.c:92
> #3  0x00007ffff73e2912 in __GI___assert_fail (assertion=0x7fffecd75ab0 "ImplGetSVData()->mpDefInst->GetYieldMutex()->IsCurrentThread() && \"SolarMutex not owned!\"", file=0x7fffecd75a78 "/data/opt/libreoffice/master/vcl/source/app/dbggui.cxx", line=47, function=0x7fffecd76380 <ImplDbgTestSolarMutex()::__PRETTY_FUNCTION__> "void ImplDbgTestSolarMutex()") at assert.c:101
> #4  0x00007fffec90d2ab in ImplDbgTestSolarMutex() () at /data/opt/libreoffice/master/vcl/source/app/dbggui.cxx:47
> #5  0x00007fffedc6835c in DbgTestSolarMutex() () at /data/opt/libreoffice/master/tools/source/debug/debug.cxx:73
> #6  0x00007ffff14d97f1 in SfxBroadcaster::AddListener(SfxListener&) (this=0x1ea24f0, rListener=...) at /data/opt/libreoffice/master/svl/source/notify/SfxBroadcaster.cxx:94
> #7  0x00007ffff14ecc0f in SfxListener::StartListening(SfxBroadcaster&, bool) (this=0x1e8a2e0, rBroadcaster=..., bPreventDuplicates=false) at /data/opt/libreoffice/master/svl/source/notify/lstner.cxx:106
> #8  0x00007ffff1c7e1cb in SfxPickListImpl::SfxPickListImpl(unsigned int) (this=0x1e8a2e0, nAllowedMenuSize=25) at /data/opt/libreoffice/master/sfx2/source/appl/sfxpicklist.cxx:201
> #9  0x00007ffff1c7df92 in SfxPickList::SfxPickList(unsigned int) (this=0x7ffff27f5790 <SfxPickList::ensure()::aUniqueInstance>, nAllowedMenuSize=25) at /data/opt/libreoffice/master/sfx2/source/appl/sfxpicklist.cxx:181
> #10 0x00007ffff1c7e09f in SfxPickList::ensure() () at /data/opt/libreoffice/master/sfx2/source/appl/sfxpicklist.cxx:193
> #11 0x00007ffff1bd92f9 in SfxApplication::Initialize_Impl() (this=0x1ea24f0) at /data/opt/libreoffice/master/sfx2/source/appl/appinit.cxx:223
> #12 0x00007ffff1bc1484 in SfxApplication::GetOrCreate() () at /data/opt/libreoffice/master/sfx2/source/appl/app.cxx:150
> #13 0x00007ffff1fdf091 in (anonymous namespace)::SfxGlobalEvents_Impl::SfxGlobalEvents_Impl(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) (this=0x1d10cd0, rxContext=uno::Reference to (cppu::ComponentContext *) 0x7d9fb0) at /data/opt/libreoffice/master/sfx2/source/notify/globalevents.cxx:149
> #14 0x00007ffff1fe0a57 in (anonymous namespace)::Instance::Instance(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) (this=0x7ffff27f6810 <_ZZN3rtl13StaticWithArgIN12_GLOBAL__N_18InstanceEN3com3sun4star3uno9ReferenceINS6_17XComponentContextEEENS1_9SingletonEE3getERKS9_E8instance>, context=uno::Reference to (cppu::ComponentContext *) 0x7d9fb0) at /data/opt/libreoffice/master/sfx2/source/notify/globalevents.cxx:422
> #15 0x00007ffff1fe0b61 in rtl::StaticWithArg<(anonymous namespace)::Instance, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>, (anonymous namespace)::Singleton>::get(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) (rData=uno::Reference to (cppu::ComponentContext *) 0x7d9fb0) at /data/opt/libreoffice/master/include/rtl/instance.hxx:455
> #16 0x00007ffff1fe0ab7 in com_sun_star_comp_sfx2_GlobalEventBroadcaster_get_implementation(com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (context=0x7d9fb0) at /data/opt/libreoffice/master/sfx2/source/notify/globalevents.cxx:441
> #17 0x00007ffff3e83865 in std::_Function_handler<com::sun::star::uno::XInterface* (com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&), com::sun::star::uno::XInterface* (*)(com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&)>::_M_invoke(std::_Any_data const&, com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (__functor=..., __args#0=0x7d9fb0, __args#1=empty uno::Sequence) at /usr/include/c++/4.8/functional:2057
> #18 0x00007ffff3e77a59 in std::function<com::sun::star::uno::XInterface* (com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&)>::operator()(com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) const (this=0x7412a0, __args#0=0x7d9fb0, __args#1=empty uno::Sequence) at /usr/include/c++/4.8/functional:2471
> #19 0x00007ffff3e672e3 in cppuhelper::ServiceManager::Data::Implementation::createInstance(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, bool) (this=0x741290, context=uno::Reference to (cppu::ComponentContext *) 0x7d9fb0, singletonRequest=true) at /data/opt/libreoffice/master/cppuhelper/source/servicemanager.cxx:665
> #20 0x00007ffff3e66959 in (anonymous namespace)::SingletonFactory::createInstanceWithContext(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) (this=0x6d0210, Context=uno::Reference to (cppu::ComponentContext *) 0x7d9fb0) at /data/opt/libreoffice/master/cppuhelper/source/servicemanager.cxx:520
> #21 0x00007ffff3df7bb2 in cppu::ComponentContext::lookupMap(rtl::OUString const&) (this=0x7d9f60, rName="/singletons/com.sun.star.frame.theGlobalEventBroadcaster") at /data/opt/libreoffice/master/cppuhelper/source/component_context.cxx:305
> #22 0x00007ffff3df85a4 in cppu::ComponentContext::getValueByName(rtl::OUString const&) (this=0x7d9f60, rName="/singletons/com.sun.star.frame.theGlobalEventBroadcaster") at /data/opt/libreoffice/master/cppuhelper/source/component_context.cxx:381
> #23 0x00007fffec3eeb92 in com::sun::star::frame::theGlobalEventBroadcaster::get(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) (the_context=uno::Reference to (cppu::ComponentContext *) 0x7d9fb0) at /data/opt/libreoffice/master/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/frame/theGlobalEventBroadcaster.hpp:36
> #24 0x00007fffec3ecba1 in Dialog::Execute() (this=0x1985870) at /data/opt/libreoffice/master/vcl/source/window/dialog.cxx:1070

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171124/929cb61a/attachment.html>


More information about the Libreoffice-bugs mailing list