Bug 116489 - deadlock in ucb TaskManager
Summary: deadlock in ucb TaskManager
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
6.0.0.0.beta1
Hardware: All All
: medium critical
Assignee: Not Assigned
URL:
Whiteboard: target:6.1.0 target:6.0.4
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-19 10:42 UTC by Michael Meeks
Modified: 2018-03-19 17:25 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meeks 2018-03-19 10:42:47 UTC
Pretty simple deadlock - patch in gerrit shortly ...

Thread 10 (Thread 0x7f9ce4d30700 (LWP 26693)):
#0  0x00007f9d3765db7c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f9d3765883b in __GI___pthread_mutex_lock (mutex=0x3255ec0) at ../nptl/pthread_mutex_lock.c:116
#2  0x00007f9d38c74680 in osl_acquireMutex(oslMutexImpl*) (pMutex=<optimized out>) at /opt/collaboraoffice5.3/debugsource/sal/osl/unx/mutex.cxx:99
#3  0x00007f9d3bb2c242 in osl::Mutex::acquire() (this=0x3256fe8) at /opt/collaboraoffice5.3/debugsource/include/osl/mutex.hxx:56
#4  0x00007f9d3bb2c242 in osl::Guard<osl::Mutex>::Guard (t=..., this=<synthetic pointer>) at /opt/collaboraoffice5.3/debugsource/include/osl/mutex.hxx:129
#5  0x00007f9d3bb2c242 in fileaccess::TaskManager::getCommandId() (this=0x3256fe0) at /opt/collaboraoffice5.3/debugsource/ucb/source/ucp/file/filtask.cxx:145
#6  0x00007f9d3bb075de in fileaccess::BaseContent::execute(com::sun::star::ucb::Command const&, int, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&) (this=0x7f9cece887e8, aCommand=..., CommandId=0, Environment=...) at /opt/collaboraoffice5.3/debugsource/ucb/source/ucp/file/bc.cxx:313
#7  0x00007f9d3bab6bc5 in ucbhelper::Content_Impl::executeCommand(com::sun::star::ucb::Command const&) (this=0x7f9cdc050f80, rCommand=...) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:1306
#8  0x00007f9d3bab8d3c in ucbhelper::Content::executeCommand(rtl::OUString const&, com::sun::star::uno::Any const&) (this=this@entry=0x7f9ce4d2f6e0, rCommandName=..., rCommandArgument=...) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:579
#9  0x00007f9d3bab11d5 in (anonymous namespace)::OFileAccess::openFileReadWrite(rtl::OUString const&) (this=0x7f9cb9350978, FileURL=...) at /opt/collaboraoffice5.3/debugsource/ucb/source/core/FileAccess.cxx:593
#10 0x00007f9d3bab2978 in (anonymous namespace)::OFileAccess::openFileWrite(rtl::OUString const&) (this=<optimized out>, FileURL=...) at /opt/collaboraoffice5.3/debugsource/ucb/source/core/FileAccess.cxx:559
#11 0x00007f9d3aae5c0c in ZipOutputEntry::createBufferFile() (this=0x93787a0) at /opt/collaboraoffice5.3/debugsource/package/source/zipapi/ZipOutputEntry.cxx:110
#12 0x00007f9d3ab0f1c2 in DeflateThread::doWork() (this=0x110a9960) at /opt/collaboraoffice5.3/debugsource/package/source/zippackage/ZipPackageStream.cxx:471
#13 0x00007f9d3a2ea768 in comphelper::ThreadPool::ThreadWorker::execute() (this=0x46677f0) at /opt/collaboraoffice5.3/debugsource/comphelper/source/misc/threadpool.cxx:66
#14 0x00007f9d323d8516 in salhelper::Thread::run() (this=0x46677f0) at /opt/collaboraoffice5.3/debugsource/salhelper/source/thread.cxx:40
#15 0x00007f9d323d871a in osl::threadFunc(void*) (param=0x4667800) at /opt/collaboraoffice5.3/debugsource/include/osl/thread.hxx:185
#16 0x00007f9d38c7ac87 in osl_thread_start_Impl(void*) (pData=0x4668220) at /opt/collaboraoffice5.3/debugsource/sal/osl/unx/thread.cxx:240
#17 0x00007f9d37656724 in start_thread (arg=0x7f9ce4d30700) at pthread_create.c:457
#18 0x00007f9d38982e8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

vs.

Thread 1 (Thread 0x7f9d3df0ca40 (LWP 26668)):
#0  0x00007f9d3765b4a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007f9d38c6ea7e in osl_waitCondition(oslCondition, TimeValue const*) (Condition=0x878b790, pTimeout=<optimized out>) at /opt/collaboraoffice5.3/debugsource/sal/osl/unx/conditn.cxx:201
#2  0x00007f9d3a2e98c7 in osl::Condition::wait(TimeValue const*) (pTimeout=0x7ffc8cba0390, this=<optimized out>) at /opt/collaboraoffice5.3/debugsource/include/osl/conditn.hxx:93
#3  0x00007f9d3a2e98c7 in osl::Condition::wait(TimeValue const&) (timeout=..., this=<optimized out>) at /opt/collaboraoffice5.3/debugsource/include/osl/conditn.hxx:97
#4  0x00007f9d3a2e98c7 in comphelper::ThreadTaskTag::waitUntilDone() (this=<optimized out>) at /opt/collaboraoffice5.3/debugsource/comphelper/source/misc/threadpool.cxx:336
#5  0x00007f9d3a2e9cc9 in comphelper::ThreadPool::waitUntilDone(std::shared_ptr<comphelper::ThreadTaskTag> const&) (this=0x46644e8, rTag=...) at /opt/collaboraoffice5.3/debugsource/comphelper/source/misc/threadpool.cxx:283
#6  0x00007f9d3aae8792 in ZipOutputStream::finish() (this=this@entry=0x7ffc8cba06c0) at /opt/collaboraoffice5.3/debugsource/package/source/zipapi/ZipOutputStream.cxx:171
#7  0x00007f9d3aaf6f15 in ZipPackage::writeTempFile() (this=this@entry=0x7f9cb95e7bc0) at /opt/collaboraoffice5.3/debugsource/package/source/zippackage/ZipPackage.cxx:1254
#8  0x00007f9d3aaf8f77 in ZipPackage::commitChanges() (this=0x7f9cb95e7bc0) at /opt/collaboraoffice5.3/debugsource/package/source/zippackage/ZipPackage.cxx:1384
#9  0x00007f9d3c409601 in OStorage_Impl::Commit() (this=0xe1f28d0) at /opt/collaboraoffice5.3/debugsource/package/source/xstor/xstorage.cxx:1245
#10 0x00007f9d3c409f82 in OStorage::commit() (this=0x7f9ce437adc8) at /opt/collaboraoffice5.3/debugsource/package/source/xstor/xstorage.cxx:3945
#11 0x00007f9d3adba431 in SfxMedium::StorageCommit_Impl() (this=this@entry=0x86ee660) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/docfile.cxx:1629
#12 0x00007f9d3adc80eb in SfxMedium::Commit() (this=this@entry=0x86ee660) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/docfile.cxx:673
#13 0x00007f9d3ae352e4 in SfxObjectShell::SaveTo_Impl(SfxMedium&, SfxItemSet const*) (this=this@entry=0xe93c4d0, rMedium=..., pSet=pSet@entry=0x0) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/objstor.cxx:1653
#14 0x00007f9d3ae38bfd in SfxObjectShell::PreDoSaveAs_Impl(rtl::OUString const&, rtl::OUString const&, SfxItemSet&) (this=this@entry=0xe93c4d0, rFileName=..., aFilterName=..., rItemSet=...) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/objstor.cxx:2813
#15 0x00007f9d3ae396d4 in SfxObjectShell::CommonSaveAs_Impl(INetURLObject const&, rtl::OUString const&, SfxItemSet&) (this=this@entry=0xe93c4d0, aURL=..., aFilterName=..., rItemSet=...) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/objstor.cxx:2683
#16 0x00007f9d3ae1e952 in SfxObjectShell::APISaveAs_Impl(rtl::OUString const&, SfxItemSet&) (this=0xe93c4d0, aFileName=..., rItemSet=...) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/objserv.cxx:310
#17 0x00007f9d3ae6bc2f in SfxBaseModel::impl_store(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, bool) (this=this@entry=0x7f9ced2ae6e8, sURL=..., seqArguments=..., bSaveTo=bSaveTo@entry=false) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/sfxbasemodel.cxx:3034
#18 0x00007f9d3ae6d27e in SfxBaseModel::storeAsURL(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (this=0x7f9ced2ae6e8, rURL=..., rArgs=...) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/sfxbasemodel.cxx:1629
#19 0x00007f9d3ae04989 in SfxStoringHelper::GUIStoreModel(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&, rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, bool, rtl::OUString const&, SignatureState) (this=this@entry=0x7ffc8cba1c00, xModel=..., aSlotName=..., aArgsSequence=..., bPreselectPassword=bPreselectPassword@entry=false, _aSuggestedName=..., nDocumentSignatureState=nDocumentSignatureState@entry=SignatureState::NOSIGNATURES) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/guisaveas.cxx:1715
#20 0x00007f9d3ae21d04 in SfxObjectShell::ExecFile_Impl(SfxRequest&) (this=0xe93c4d0, rReq=...) at /opt/collaboraoffice5.3/debugsource/sfx2/source/doc/objserv.cxx:651
#21 0x00007f9d3acc7a73 in SfxShell::CallExec(void (*)(SfxShell*, SfxRequest&), SfxRequest&) (rReq=..., pFunc=<optimized out>, this=0xe93c4d0) at /opt/collaboraoffice5.3/debugsource/include/sfx2/shell.hxx:214
#22 0x00007f9d3acc7a73 in SfxShell::ExecuteSlot(SfxRequest&, SfxInterface const*) (this=0xe93c4d0, rReq=..., pIF=<optimized out>, pIF@entry=0x0) at /opt/collaboraoffice5.3/debugsource/sfx2/source/control/shell.cxx:440
#23 0x00007f9d0ecd712d in ScTabViewShell::ExecuteSave(SfxRequest&) (this=0x7000150, rReq=...) at /opt/collaboraoffice5.3/debugsource/sc/source/ui/view/tabvwsha.cxx:734
#24 0x00007f9d3acab750 in SfxShell::CallExec(void (*)(SfxShell*, SfxRequest&), SfxRequest&) (rReq=..., pFunc=<optimized out>, this=0x7000150) at /opt/collaboraoffice5.3/debugsource/include/sfx2/shell.hxx:214
#25 0x00007f9d3acab750 in SfxDispatcher::Call_Impl(SfxShell&, SfxSlot const&, SfxRequest&, bool) (this=0x8c24cb0, rShell=..., rSlot=..., rReq=..., bRecord=<optimized out>) at /opt/collaboraoffice5.3/debugsource/sfx2/source/control/dispatch.cxx:376
#26 0x00007f9d3acabc21 in SfxDispatcher::Execute_(SfxShell&, SfxSlot const&, SfxRequest&, SfxCallMode) (this=<optimized out>, rShell=..., rSlot=..., rReq=..., eCallMode=<optimized out>) at /opt/collaboraoffice5.3/debugsource/sfx2/source/control/dispatch.cxx:944
#27 0x00007f9d3aca8f6c in SfxBindings::Execute_Impl(SfxRequest&, SfxSlot const*, SfxShell*) (this=0x7a71bd0, aReq=..., pSlot=pSlot@entry=0x7f9d0f371718 <aScTabViewShellSlots_Impl+88>, pShell=pShell@entry=0x7000150) at /opt/collaboraoffice5.3/debugsource/sfx2/source/control/bindings.cxx:1171
#28 0x00007f9d3acef15c in SfxDispatchController_Impl::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> const&) (this=0x6dd4760, aURL=..., aArgs=..., rListener=...) at /opt/collaboraoffice5.3/debugsource/sfx2/source/control/unoctitm.cxx:752
#29 0x00007f9d3acf06fd in SfxOfficeDispatch::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (this=0x7f9ce4378188, aURL=..., aArgs=...) at /opt/collaboraoffice5.3/debugsource/sfx2/source/control/unoctitm.cxx:230
#30 0x00007f9d3a912e0e in framework::MenuBarManager::Select(Menu*) (this=0x7f9ce5e9f980, pMenu=<optimized out>) at /opt/collaboraoffice5.3/debugsource/framework/source/uielement/menubarmanager.cxx:1033
#31 0x00007f9d3bccb063 in Link<Menu*, bool>::Call(Menu*) const (data=0xe7159c0, this=0xe715a20) at /opt/collaboraoffice5.3/debugsource/include/tools/link.hxx:84
#32 0x00007f9d3bccb063 in Menu::Select() (this=0xe7159c0) at /opt/collaboraoffice5.3/debugsource/vcl/source/window/menu.cxx:307
#33 0x00007f9d3bd4052a in Link<void*, void>::Call(void*) const (data=<optimized out>, this=0x517e788) at /opt/collaboraoffice5.3/debugsource/include/tools/link.hxx:84
#34 0x00007f9d3bd4052a in ImplHandleUserEvent (pSVEvent=0x517e780) at /opt/collaboraoffice5.3/debugsource/vcl/source/window/winproc.cxx:1957
#35 0x00007f9d3bd4052a in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) (_pWindow=0x2f051e0, nEvent=SalEvent::UserEvent, pEvent=0x517e780) at /opt/collaboraoffice5.3/debugsource/vcl/source/window/winproc.cxx:2507
#36 0x00007f9d3bff6e87 in SalFrame::CallCallback(SalEvent, void const*) const (pEvent=0x517e780, nEvent=SalEvent::UserEvent, this=0x2f05b70) at /opt/collaboraoffice5.3/debugsource/vcl/inc/salframe.hxx:276
#37 0x00007f9d3bff6e87 in SalGenericDisplay::DispatchInternalEvent() (this=0x2ec60f0) at /opt/collaboraoffice5.3/debugsource/vcl/unx/generic/app/gendisp.cxx:86
#38 0x00007f9d2822795b in GtkData::userEventFn(void*) (data=data@entry=0x22c6da0) at /opt/collaboraoffice5.3/debugsource/vcl/unx/gtk/gtkdata.cxx:857
#39 0x00007f9d282279d1 in call_userEventFn(void*) (data=0x22c6da0) at /opt/collaboraoffice5.3/debugsource/vcl/unx/gtk/gtkdata.cxx:867
#40 0x00007f9d36ac8015 in g_main_dispatch (context=0x2e6b6d0) at gmain.c:3154
#41 0x00007f9d36ac8015 in g_main_context_dispatch (context=context@entry=0x2e6b6d0) at gmain.c:3769
#42 0x00007f9d36ac8388 in g_main_context_iterate (context=context@entry=0x2e6b6d0, block=block@entry=0, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3840
#43 0x00007f9d36ac842c in g_main_context_iteration (context=0x2e6b6d0, may_block=0) at gmain.c:3901
#44 0x00007f9d28226d4b in GtkData::Yield(bool, bool) (this=0x22c6da0, bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>) at /opt/collaboraoffice5.3/debugsource/vcl/unx/gtk/gtkdata.cxx:499
#45 0x00007f9d3bf41a51 in ImplYield (nReleased=0, i_bAllEvents=false, i_bWait=<optimized out>) at /opt/collaboraoffice5.3/debugsource/vcl/source/app/svapp.cxx:507
#46 0x00007f9d3bf41a51 in Application::Yield() () at /opt/collaboraoffice5.3/debugsource/vcl/source/app/svapp.cxx:561
#47 0x00007f9d3bca0ce4 in Dialog::Execute() (this=0x6e6a510) at /opt/collaboraoffice5.3/debugsource/vcl/source/window/dialog.cxx:962
#48 0x00007f9d3bc4a8a4 in (anonymous namespace)::executeErrorDialog (nButtonMask=<optimized out>, rMessage=..., rContext=..., eClassification=com::sun::star::task::InteractionClassification_ERROR, pParent=0x0) at /opt/collaboraoffice5.3/debugsource/uui/source/iahndl-errorhandler.cxx:103
#49 0x00007f9d3bc4a8a4 in UUIInteractionHelper::handleErrorHandlerRequest(com::sun::star::task::InteractionClassification, unsigned int, std::vector<rtl::OUString, std::allocator<rtl::OUString> > const&, com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com::sun::star::task::XInteractionContinuation> > const&, bool, bool&, rtl::OUString&) (this=this@entry=0x104cc740, eClassification=com::sun::star::task::InteractionClassification_ERROR, nErrorCode=nErrorCode@entry=106518, rArguments=..., rContinuations=..., bObtainErrorStringOnly=bObtainErrorStringOnly@entry=false, bHasErrorString=@0x7ffc8cba3550: false, rErrorString=...) at /opt/collaboraoffice5.3/debugsource/uui/source/iahndl-errorhandler.cxx:266
#50 0x00007f9d3bc51172 in UUIInteractionHelper::handleInteractiveIOException(com::sun::star::uno::Reference<com::sun::star::task::XInteractionRequest> const&, bool, bool&, rtl::OUString&) (this=this@entry=0x104cc740, rRequest=..., bObtainErrorStringOnly=bObtainErrorStringOnly@entry=false, bHasErrorString=@0x7ffc8cba3550: false, rErrorString=...) at /opt/collaboraoffice5.3/debugsource/uui/source/iahndl-ioexceptions.cxx:292
#51 0x00007f9d3bc41e9c in UUIInteractionHelper::handleRequest_impl(com::sun::star::uno::Reference<com::sun::star::task::XInteractionRequest> const&, bool, bool&, rtl::OUString&) (this=this@entry=0x104cc740, rRequest=..., bObtainErrorStringOnly=bObtainErrorStringOnly@entry=false, bHasErrorString=@0x7ffc8cba3550: false, rErrorString=...) at /opt/collaboraoffice5.3/debugsource/uui/source/iahndl.cxx:494
#52 0x00007f9d3bc44a55 in UUIInteractionHelper::handleRequest(com::sun::star::uno::Reference<com::sun::star::task::XInteractionRequest> const&) (this=0x104cc740, rRequest=...) at /opt/collaboraoffice5.3/debugsource/uui/source/iahndl.cxx:185
#53 0x00007f9d3bc57a94 in (anonymous namespace)::UUIInteractionHandler::handle(com::sun::star::uno::Reference<com::sun::star::task::XInteractionRequest> const&) (this=0x7f9cece6d978, rRequest=...) at /opt/collaboraoffice5.3/debugsource/uui/source/interactionhandler.cxx:153

#54 0x00007f9d3bac3e6b in ucbhelper::cancelCommandExecution(com::sun::star::ucb::IOErrorCode, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandProcessor> const&) (eError=eError@entry=com::sun::star::ucb::IOErrorCode_NOT_EXISTING, rArgs=..., xEnv=..., rMessage=..., xContext=...) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/provider/cancelcommandexecution.cxx:101

        uno::Reference<
            task::XInteractionHandler > xIH = xEnv->getInteractionHandler();
        if ( xIH.is() )
        {
            xIH->handle( xRequest.get() );

#55 0x00007f9d3bb0d2df in fileaccess::throw_handler(int, int, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&, rtl::OUString const&, fileaccess::BaseContent*, bool) (errorCode=errorCode@entry=12, minorCode=minorCode@entry=2, xEnv=..., aUncPath=..., pContent=pContent@entry=0x7f9cb9631b70, isHandled=isHandled@entry=false) at /opt/collaboraoffice5.3/debugsource/ucb/source/ucp/file/filglob.cxx:367

    void throw_handler(
        sal_Int32 errorCode,
        sal_Int32 minorCode,
        const Reference< XCommandEnvironment >& xEnv,
        const OUString& aUncPath,
        BaseContent* pContent,
        bool isHandled )
...
            cancelCommandExecution(
                ioErrorCode,
                generateErrorArguments(aUncPath),
                xEnv,
                "an error occurred during file opening",
                xComProc);

#56 0x00007f9d3bb2c61b in fileaccess::TaskManager::endTask(int, rtl::OUString const&, fileaccess::BaseContent*) (this=0x3256fe0, CommandId=CommandId@entry=13973, aUncPath=..., pContent=pContent@entry=0x7f9cb9631b70) at /opt/collaboraoffice5.3/debugsource/ucb/source/ucp/file/filtask.cxx:89

TaskManager::endTask( sal_Int32 CommandId,
                      const OUString& aUncPath,
                      BaseContent* pContent)
{
    osl::MutexGuard aGuard( m_aMutex );
    ...
    if( ErrorCode != TASKHANDLER_NO_ERROR )
        throw_handler(
            ErrorCode,
            MinorCode,
            xComEnv,
            aUncPath,
            pContent,
            isHandled);
...
	This is the deadlock ...

#57 0x00007f9d3bb0367a in fileaccess::BaseContent::endTask(int) (this=this@entry=0x7f9cb9631b70, CommandId=CommandId@entry=13973) at /opt/collaboraoffice5.3/debugsource/ucb/source/ucp/file/bc.cxx:1223
#58 0x00007f9d3bb07675 in fileaccess::BaseContent::execute(com::sun::star::ucb::Command const&, int, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&) (this=0x7f9cb9631b70, aCommand=..., CommandId=13973, Environment=...) at /opt/collaboraoffice5.3/debugsource/ucb/source/ucp/file/bc.cxx:416
#59 0x00007f9d3bab6bc5 in ucbhelper::Content_Impl::executeCommand(com::sun::star::ucb::Command const&) (this=0x7085760, rCommand=...) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:1306
#60 0x00007f9d3bab7a6f in ucbhelper::Content::getPropertyValuesInterface(com::sun::star::uno::Sequence<rtl::OUString> const&) (this=this@entry=0x7ffc8cba3ef0, rPropertyNames=...) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:514
#61 0x00007f9d3bab829f in ucbhelper::Content::getPropertyValues(com::sun::star::uno::Sequence<rtl::OUString> const&) (this=this@entry=0x7ffc8cba3ef0, rPropertyNames=...) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:472
#62 0x00007f9d3babcc59 in ucbhelper::Content::getPropertyValue(rtl::OUString const&) (this=this@entry=0x7ffc8cba3ef0, rPropertyName=...) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:449
#63 0x00007f9d3babd034 in ucbhelper::Content::isDocument() (this=this@entry=0x7ffc8cba3ef0) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:1075
#64 0x00007f9d3babd22f in ucbhelper::Content::openStream() (this=this@entry=0x7ffc8cba3ef0) at /opt/collaboraoffice5.3/debugsource/ucbhelper/source/client/content.cxx:715
#65 0x00007f9d3bc167e7 in utl::MediaDescriptor::impl_openStreamWithURL(rtl::OUString const&, bool) (this=this@entry=0x7ffc8cba4760, sURL=..., bLockFile=bLockFile@entry=true) at /opt/collaboraoffice5.3/debugsource/unotools/source/misc/mediadescriptor.cxx:743
#66 0x00007f9d3bc1714f in utl::MediaDescriptor::impl_addInputStream(bool) (this=this@entry=0x7ffc8cba4760, bLockFile=bLockFile@entry=true) at /opt/collaboraoffice5.3/debugsource/unotools/source/misc/mediadescriptor.cxx:518
#67 0x00007f9d3bc177c5 in utl::MediaDescriptor::addInputStreamOwnLock() (this=this@entry=0x7ffc8cba4760) at /opt/collaboraoffice5.3/debugsource/unotools/source/misc/mediadescriptor.cxx:487
#68 0x00007f9d3a7490da in filter::config::TypeDetection::impl_openStream(utl::MediaDescriptor&) (this=this@entry=0x7f9ced274708, rDescriptor=...) at /opt/collaboraoffice5.3/debugsource/filter/source/config/cache/typedetection.cxx:1141
#69 0x00007f9d3a74937f in filter::config::TypeDetection::impl_askDetectService(rtl::OUString const&, utl::MediaDescriptor&) (this=this@entry=0x7f9ced274708, sDetectService=..., rDescriptor=...) at /opt/collaboraoffice5.3/debugsource/filter/source/config/cache/typedetection.cxx:994
#70 0x00007f9d3a74a5e4 in filter::config::TypeDetection::impl_detectTypeFlatAndDeep(utl::MediaDescriptor&, std::list<filter::config::FlatDetectionInfo, std::allocator<filter::config::FlatDetectionInfo> > const&, bool, std::vector<rtl::OUString, std::allocator<rtl::OUString> >&, rtl::OUString&) (this=this@entry=0x7f9ced274708, rDescriptor=..., lFlatTypes=..., bAllowDeep=bAllowDeep@entry=true, rUsedDetectors=..., rLastChance=...) at /opt/collaboraoffice5.3/debugsource/filter/source/config/cache/typedetection.cxx:947
#71 0x00007f9d3a74ae76 in filter::config::TypeDetection::queryTypeByDescriptor(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, unsigned char) (this=0x7f9ced274708, lDescriptor=..., bAllowDeep=<optimized out>) at /opt/collaboraoffice5.3/debugsource/filter/source/config/cache/typedetection.cxx:428
#72 0x00007f9d3a85a660 in framework::LoadEnv::impl_detectTypeAndFilter() (this=this@entry=0x7f9d24fbb400) at /opt/collaboraoffice5.3/debugsource/framework/source/loadenv/loadenv.cxx:760
#73 0x00007f9d3a85d6cd in framework::LoadEnv::startLoading() (this=this@entry=0x7f9d24fbb400) at /opt/collaboraoffice5.3/debugsource/framework/source/loadenv/loadenv.cxx:362
#74 0x00007f9d3a7f2832 in framework::LoadDispatcher::impl_dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> const&) (this=0x7f9d24fbb3a0, rURL=..., lArguments=..., xListener=...) at /opt/collaboraoffice5.3/debugsource/framework/source/dispatch/loaddispatcher.cxx:115
#75 0x00007f9d3a7f3728 in framework::LoadDispatcher::dispatchWithReturnValue(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (this=<optimized out>, rURL=..., lArguments=...) at /opt/collaboraoffice5.3/debugsource/framework/source/dispatch/loaddispatcher.cxx:62
#76 0x00007f9d3a2e784a in comphelper::SynchronousDispatch::dispatch(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, rtl::OUString const&, rtl::OUString const&, int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (xStartPoint=..., sURL=..., sTarget=..., nFlags=nFlags@entry=0, lArguments=...) at /opt/collaboraoffice5.3/debugsource/comphelper/source/misc/synchronousdispatch.cxx:64
#77 0x00007f9d3af5951f in desktop::DispatchWatcher::executeDispatchRequests(std::vector<desktop::DispatchWatcher::DispatchRequest, std::allocator<desktop::DispatchWatcher::DispatchRequest> > const&, bool) (this=this@entry=0x7f9d25197838, aDispatchRequestsList=..., bNoTerminate=bNoTerminate@entry=false) at /opt/collaboraoffice5.3/debugsource/desktop/source/app/dispatchwatcher.cxx:546
#78 0x00007f9d3af62872 in desktop::RequestHandler::ExecuteCmdLineRequests(desktop::ProcessDocumentsRequest&, bool) (aRequest=..., noTerminate=noTerminate@entry=false) at /opt/collaboraoffice5.3/debugsource/desktop/source/app/officeipcthread.cxx:1408
#79 0x00007f9d3af62bb1 in desktop::ProcessEventsClass_Impl::ProcessDocumentsEvent(desktop::ProcessEventsClass_Impl*, void*) (pEvent=0x7f9d18001aa0) at /opt/collaboraoffice5.3/debugsource/desktop/source/app/officeipcthread.cxx:290
#80 0x00007f9d3bd4052a in Link<void*, void>::Call(void*) const (data=<optimized out>, this=0x7f9d18001be8) at /opt/collaboraoffice5.3/debugsource/include/tools/link.hxx:84
#81 0x00007f9d3bd4052a in ImplHandleUserEvent (pSVEvent=0x7f9d18001be0) at /opt/collaboraoffice5.3/debugsource/vcl/source/window/winproc.cxx:1957
#82 0x00007f9d3bd4052a in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) (_pWindow=0x2f051e0, nEvent=SalEvent::UserEvent, pEvent=0x7f9d18001be0) at /opt/collaboraoffice5.3/debugsource/vcl/source/window/winproc.cxx:2507
#83 0x00007f9d3bff6e87 in SalFrame::CallCallback(SalEvent, void const*) const (pEvent=0x7f9d18001be0, nEvent=SalEvent::UserEvent, this=0x2f05b70) at /opt/collaboraoffice5.3/debugsource/vcl/inc/salframe.hxx:276
#84 0x00007f9d3bff6e87 in SalGenericDisplay::DispatchInternalEvent() (this=0x2ec60f0) at /opt/collaboraoffice5.3/debugsource/vcl/unx/generic/app/gendisp.cxx:86
#85 0x00007f9d2822795b in GtkData::userEventFn(void*) (data=data@entry=0x22c6da0) at /opt/collaboraoffice5.3/debugsource/vcl/unx/gtk/gtkdata.cxx:857
#86 0x00007f9d282279d1 in call_userEventFn(void*) (data=0x22c6da0) at /opt/collaboraoffice5.3/debugsource/vcl/unx/gtk/gtkdata.cxx:867
#87 0x00007f9d36ac8015 in g_main_dispatch (context=0x2e6b6d0) at gmain.c:3154
#88 0x00007f9d36ac8015 in g_main_context_dispatch (context=context@entry=0x2e6b6d0) at gmain.c:3769
#89 0x00007f9d36ac8388 in g_main_context_iterate (context=context@entry=0x2e6b6d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3840
#90 0x00007f9d36ac842c in g_main_context_iteration (context=0x2e6b6d0, may_block=1) at gmain.c:3901
#91 0x00007f9d28226d4b in GtkData::Yield(bool, bool) (this=0x22c6da0, bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>) at /opt/collaboraoffice5.3/debugsource/vcl/unx/gtk/gtkdata.cxx:499
#92 0x00007f9d3bf41a51 in ImplYield (nReleased=0, i_bAllEvents=false, i_bWait=<optimized out>) at /opt/collaboraoffice5.3/debugsource/vcl/source/app/svapp.cxx:507
#93 0x00007f9d3bf41a51 in Application::Yield() () at /opt/collaboraoffice5.3/debugsource/vcl/source/app/svapp.cxx:561
#94 0x00007f9d3bf43925 in Application::Execute() () at /opt/collaboraoffice5.3/debugsource/vcl/source/app/svapp.cxx:469
#95 0x00007f9d3af49165 in desktop::Desktop::DoExecute() () at /opt/collaboraoffice5.3/debugsource/desktop/source/app/app.cxx:1388
#96 0x00007f9d3af49165 in desktop::Desktop::Main() (this=0x7ffc8cba61c0) at /opt/collaboraoffice5.3/debugsource/desktop/source/app/app.cxx:1720
#97 0x00007f9d3bf47de6 in ImplSVMain() () at /opt/collaboraoffice5.3/debugsource/vcl/source/app/svmain.cxx:185
#98 0x00007f9d3bf47ed2 in SVMain() () at /opt/collaboraoffice5.3/debugsource/vcl/source/app/svmain.cxx:223
#99 0x00007f9d3af6a2aa in soffice_main() () at /opt/collaboraoffice5.3/debugsource/desktop/source/app/sofficemain.cxx:166
#100 0x000000000040075b in sal_main () at /opt/collaboraoffice5.3/debugsource/desktop/source/app/main.c:48
#101 0x000000000040075b in main (argc=<optimized out>, argv=<optim
Comment 1 Michael Meeks 2018-03-19 10:43:12 UTC
Best not to call out to the UI Interaction Handler (etc.) holding the TaskManager lock.
Comment 2 Michael Meeks 2018-03-19 10:44:53 UTC
https://gerrit.libreoffice.org/51544
Comment 3 Commit Notification 2018-03-19 12:48:50 UTC
Michael Meeks committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=5b1442ec1e6946ec3a3b9d8cfdd57ac1437d23ab

tdf#116489 - fix ucb TaskManager deadlock.

It will be available in 6.1.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2018-03-19 17:25:50 UTC
Michael Meeks committed a patch related to this issue.
It has been pushed to "libreoffice-6-0":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=87c70df3d17d222f738054c49d5349a1de2806ec&h=libreoffice-6-0

tdf#116489 - fix ucb TaskManager deadlock.

It will be available in 6.0.4.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.