Bug 121228 - CppUnitTester hang on windows machine
Summary: CppUnitTester hang on windows machine
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-07 05:51 UTC by Juergen Funk (CIB)
Modified: 2021-02-15 04:53 UTC (History)
4 users (show)

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 Juergen Funk (CIB) 2018-11-07 05:51:42 UTC
Problem: cppunittester.exe

After Build it make the unit-test with the cppunittester.exe, but the cppunittester.exe hang, and on the Jenkins-slave kvm-windows 10 machine can not shoot down the processes. 
In some cases in the process-list you can see 1 to 8 cppunittester-proceses. On my Laptop with Win10 i can kill this prcesses, and it's not always, but on the kvm-windows10 it's always.

A stack-trace follow in Comment 1
Comment 1 Juergen Funk (CIB) 2018-11-07 05:58:12 UTC
This following stack-trace this was made on my Laptop Windows 10, in the process-list it hang two cppunittester.exe, and the stack-traces was identical except the pointers.
Here the trace:

ntdll.dll!NtWaitForAlertByThreadId()
ntdll.dll!RtlpWaitOnAddressWithTimeout()
ntdll.dll!RtlpWaitOnCriticalSection()
ntdll.dll!RtlpEnterCriticalSectionContended()
ntdll.dll!RtlEnterCriticalSection()
sal3.dll!osl_acquireMutex(_oslMutexImpl * Mutex=0x000002b9e405cc90) at d:\src\lo\lhm\lo6.1\sal\osl\w32\mutex.cxx(66)
sysdtrans.dll!osl::Mutex::acquire() at d:\src\lo\lhm\lo6.1\include\osl\mutex.hxx(56)
sysdtrans.dll!osl::ClearableGuard<osl::Mutex>::ClearableGuard<osl::Mutex>(osl::Mutex & t={...}) at d:\src\lo\lhm\lo6.1\include\osl\mutex.hxx(164)
sysdtrans.dll!CWinClipbImpl::~CWinClipbImpl() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(66)
sysdtrans.dll!CWinClipbImpl::`scalar deleting destructor'(unsigned int)
sysdtrans.dll!std::default_delete<CWinClipbImpl>::operator()(CWinClipbImpl * _Ptr=0x000002b9e3d62d70) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(1195)
sysdtrans.dll!std::unique_ptr<CWinClipbImpl,std::default_delete<CWinClipbImpl> >::reset(CWinClipbImpl * _Ptr=0x0000000000000000) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(1433)
sysdtrans.dll!CWinClipboard::disposing() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipboard.cxx(220)
cppuhelper3MSC.dll!cppu::WeakComponentImplHelperBase::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\implbase.cxx(102)
sysdtrans.dll!cppu::PartialWeakComponentImplHelper<com::sun::star::datatransfer::clipboard::XSystemClipboard,com::sun::star::datatransfer::clipboard::XFlushableClipboard,com::sun::star::lang::XServiceInfo>::dispose() at d:\src\lo\lhm\lo6.1\include\cppuhelper\compbase.hxx(93)
cppuhelper3MSC.dll!cppu::OFactoryComponentHelper::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\factory.cxx(415)
cppuhelper3MSC.dll!cppu::OComponentHelper::release() at d:\src\lo\lhm\lo6.1\cppuhelper\source\component.cxx(90)
cppuhelper3MSC.dll!cppu::OFactoryComponentHelper::release() at d:\src\lo\lhm\lo6.1\cppuhelper\source\factory.cxx(257)
cppuhelper3MSC.dll!com::sun::star::uno::Reference<com::sun::star::lang::XSingleComponentFactory>::~Reference<com::sun::star::lang::XSingleComponentFactory>() at d:\src\lo\lhm\lo6.1\include\com\sun\star\uno\reference.hxx(110)
cppuhelper3MSC.dll!cppuhelper::ServiceManager::Data::Implementation::~Implementation()
cppuhelper3MSC.dll!cppuhelper::ServiceManager::Data::Implementation::`scalar deleting destructor'(unsigned int)
cppuhelper3MSC.dll!std::_Ref_count<cppuhelper::ServiceManager::Data::Implementation>::_Destroy() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(153)
cppuhelper3MSC.dll!std::_Ref_count_base::_Decref() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(113)
cppuhelper3MSC.dll!std::_Ptr_base<cppuhelper::ServiceManager::Data::Implementation>::_Decref() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(339)
cppuhelper3MSC.dll!std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>::~shared_ptr<cppuhelper::ServiceManager::Data::Implementation>() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(567)
cppuhelper3MSC.dll!std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >::~pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >()
cppuhelper3MSC.dll!std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >::`scalar deleting destructor'(unsigned int)
cppuhelper3MSC.dll!std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void * __ptr64> >::destroy<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >(std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > * _Ptr=0x000002b9bd797480) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(745)
cppuhelper3MSC.dll!std::allocator_traits<std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void * __ptr64> > >::destroy<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >(std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> > & _Al={...}, std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > * _Ptr=0x000002b9bd797480) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(865)
cppuhelper3MSC.dll!std::_Wrap_alloc<std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void * __ptr64> > >::destroy<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >(std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > * _Ptr=0x000002b9bd797480) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(1004)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000002b9bd797460) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2041)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000002b9ba2e6760) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000002b9ba2e61e0) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000002b9ba29fdb0) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000002b9ba3076b0) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::clear() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1472)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::erase(std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > > > _First={...}, std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > > > _Last={...}) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1448)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Tidy() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2168)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::~_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1091)
cppuhelper3MSC.dll!std::map<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > >::~map<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > >()
cppuhelper3MSC.dll!cppuhelper::ServiceManager::Data::~Data()
cppuhelper3MSC.dll!cppuhelper::ServiceManager::disposing() at d:\src\lo\lhm\lo6.1\cppuhelper\source\servicemanager.cxx(903)
cppuhelper3MSC.dll!cppu::WeakComponentImplHelperBase::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\implbase.cxx(102)
cppuhelper3MSC.dll!cppu::PartialWeakComponentImplHelper<com::sun::star::lang::XServiceInfo,com::sun::star::lang::XMultiServiceFactory,com::sun::star::lang::XMultiComponentFactory,com::sun::star::container::XSet,com::sun::star::container::XContentEnumerationAccess,com::sun::star::beans::XPropertySet,com::sun::star::beans::XPropertySetInfo,com::sun::star::lang::XEventListener,com::sun::star::lang::XInitialization>::dispose() at d:\src\lo\lhm\lo6.1\include\cppuhelper\compbase.hxx(93)
cppuhelper3MSC.dll!cppu::try_dispose(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface> & xInstance={...}) at d:\src\lo\lhm\lo6.1\cppuhelper\source\component_context.cxx(67)
cppuhelper3MSC.dll!cppu::ComponentContext::disposing() at d:\src\lo\lhm\lo6.1\cppuhelper\source\component_context.cxx(458)
cppuhelper3MSC.dll!cppu::WeakComponentImplHelperBase::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\implbase.cxx(102)
cppuhelper3MSC.dll!cppu::PartialWeakComponentImplHelper<com::sun::star::uno::XComponentContext,com::sun::star::container::XNameContainer>::dispose() at d:\src\lo\lhm\lo6.1\include\cppuhelper\compbase.hxx(93)
test-setupvcl.dll!`anonymous namespace'::Hook::deinitHook(`anonymous-namespace'::Hook * __formal=0x0000000000000000, LinkParamNone * __formal=0x0000000000000000) at d:\src\lo\lhm\lo6.1\test\source\setupvcl.cxx(52)
test-setupvcl.dll!`anonymous namespace'::Hook::LinkStubdeinitHook(void * instance=0x0000000000000000, LinkParamNone * data=0x0000000000000000) at d:\src\lo\lhm\lo6.1\test\source\setupvcl.cxx(37)
vcllo.dll!Link<LinkParamNone * __ptr64,void>::Call(LinkParamNone * data=0x0000000000000000) at d:\src\lo\lhm\lo6.1\include\tools\link.hxx(84)
vcllo.dll!DeInitVCL() at d:\src\lo\lhm\lo6.1\vcl\source\app\svmain.cxx(526)
vclbootstrapprotector.dll!`anonymous namespace'::Protector::~Protector() at d:\src\lo\lhm\lo6.1\test\source\vclbootstrapprotector.cxx(34)
vclbootstrapprotector.dll!`anonymous namespace'::Protector::`scalar deleting destructor'(unsigned int)
cppunitd_dll.dll!CppUnit::ProtectorChain::pop() at d:\src\lo\lhm\lo6.1\workdir\unpackedtarball\cppunit\src\cppunit\protectorchain.cpp(56)
cppunitd_dll.dll!CppUnit::TestResult::popProtector() at d:\src\lo\lhm\lo6.1\workdir\unpackedtarball\cppunit\src\cppunit\testresult.cpp(197)
cppunittester.exe!`anonymous namespace'::ProtectedFixtureFunctor::run() at d:\src\lo\lhm\lo6.1\sal\cppunittester\cppunittester.cxx(324)
cppunittester.exe!sal_main() at d:\src\lo\lhm\lo6.1\sal\cppunittester\cppunittester.cxx(465)
cppunittester.exe!main(int argc=23, char * * argv=0x000002b9ba2506a0) at d:\src\lo\lhm\lo6.1\sal\cppunittester\cppunittester.cxx(372)
cppunittester.exe!invoke_main() at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl(65)
cppunittester.exe!__scrt_common_main_seh() at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl(253)
cppunittester.exe!__scrt_common_main() at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl(296)
cppunittester.exe!mainCRTStartup() at f:\dd\vctools\crt\vcstartup\src\startup\exe_main.cpp(17)
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()

Tipp: is better you copy in your own editor, all steps in one line
Comment 2 Markus Mohrhard 2018-11-07 06:23:37 UTC
There should be another thread. We need backtraces for all threads to have an idea why the main thread is blocked in the mutex. Seems that it is somehow related to the clipboard thread which might do some stupid stuff.
Comment 3 Juergen Funk (CIB) 2018-11-07 06:35:11 UTC
Morning Markus, so early

you right i see two other threads with the clipboard-stuff, i post this asap.
A other info i test with LO6.1.4
Comment 4 Juergen Funk (CIB) 2018-11-07 06:45:50 UTC
That is the first thread:

win32u.dll!NtUserGetMessage()
user32.dll!GetMessageW()
sysdtrans.dll!CMtaOleClipboard::run() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\mtaoleclipb.cxx(711)
sysdtrans.dll!CMtaOleClipboard::oleThreadProc(void * pParam=0x000001f7204b0928) at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\mtaoleclipb.cxx(733)
ucrtbased.dll!invoke_thread_procedure(unsigned int(*)(void *) procedure=0x00007ff9c2bcbff0, void * const context=0x000001f7204b0928) t minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(92)
ucrtbased.dll!thread_start<unsigned int (__cdecl*)(void * __ptr64)>(void * const parameter=0x000001f720769d60) at minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(115)
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()





And that is the second one

ntdll.dll!RtlUnwindEx()
ntdll.dll!__C_specific_handler()
rpcrt4.dll!__GSHandlerCheck_SEH()
ntdll.dll!RtlpExecuteHandlerForException()
ntdll.dll!RtlDispatchException()
ntdll.dll!KiUserExceptionDispatch()
KernelBase.dll!RaiseException()
rpcrt4.dll!RpcpRaiseException()
rpcrt4.dll!RpcRaiseException()
combase.dll!NdrExtpProxySendReceive(void * pThis=0x0000000000000003, _MIDL_STUB_MESSAGE * pStubMsg=0x00000037e78ff100) at onecore\com\combase\ndr\ndrole\proxy.cxx(1971)
rpcrt4.dll!NdrpClientCall3()
rpcrt4.dll!NdrClientCall3()
[Inline Frame] combase.dll!IEnumFORMATETC_RemoteNext_Proxy(IEnumFORMATETC *) at onecore\com\combase\proxy\idl\daytona\objfre\amd64\mega_p.c(1254)
combase.dll!IEnumFORMATETC_Next_Proxy(IEnumFORMATETC * This, unsigned long celt, tagFORMATETC * rgelt, unsigned long * pceltFetched=0x0000000000000000) at onecore\com\combase\proxy\proxy\call_as.c(1680)
sysdtrans.dll!CDOTransferable::initFlavorList() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\dtobj\dotransferable.cxx(284)
sysdtrans.dll!CDOTransferable::create(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> & rxContext={...}, sal::systools::COMReference<IDataObject> pIDataObject={...}) at d:\src\lo\lhm\lo6.1\dtrans\source\win32\dtobj\dotransferable.cxx(181)
sysdtrans.dll!CWinClipbImpl::getContents() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(101)
sysdtrans.dll!CWinClipboard::notifyAllClipboardListener() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipboard.cxx(180)
sysdtrans.dll!CWinClipbImpl::onClipboardContentChanged() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(178)
sysdtrans.dll!CMtaOleClipboard::clipboardChangedNotifierThreadProc(void * pParam=0x000001f7204b0928) at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\mtaoleclipb.cxx(765)
ucrtbased.dll!invoke_thread_procedure(unsigned int(*)(void *) procedure=0x00007ff9c2bcb150, void * const context=0x000001f7204b0928) at minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(92)
ucrtbased.dll!thread_start<unsigned int (__cdecl*)(void * __ptr64)>(void * const parameter=0x000001f720768c50) at minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(115)
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()

I think the other threads are unimportant (wsupdate, GdiPlus, 4x TppWorkerThread)

Thanks for help
Comment 5 Jan-Marek Glogowski 2018-11-07 07:06:28 UTC
An additional missing information is the SolarMutex structure, which holds a member with the thread id of the process / thread locking the mutex. This implies you need to post a consistent backtrace of all threads with their TIDs.

Recently there was a commit from Mike using a newer API to handle the Windows clipboard, which might also help, but still the main problem is to understand why just you are seeing those assumed deadlocks. It may help to update your build environment (Cygwin + MSVS) too.
Comment 6 Juergen Funk (CIB) 2018-11-07 07:58:38 UTC
Hi Jan

it is right the backtrace in Comment 1 was from yesterday, now here the first backtrace again and compatible to Comment 4

ntdll.dll!NtWaitForAlertByThreadId()
ntdll.dll!RtlpWaitOnAddressWithTimeout()
ntdll.dll!RtlpWaitOnCriticalSection()
ntdll.dll!RtlpEnterCriticalSectionContended()
ntdll.dll!RtlEnterCriticalSection()
sal3.dll!osl_acquireMutex(_oslMutexImpl * Mutex=0x000001f7207680f0) at d:\src\lo\lhm\lo6.1\sal\osl\w32\mutex.cxx(66)
sysdtrans.dll!osl::Mutex::acquire() at d:\src\lo\lhm\lo6.1\include\osl\mutex.hxx(56)
sysdtrans.dll!osl::ClearableGuard<osl::Mutex>::ClearableGuard<osl::Mutex>(osl::Mutex & t={...}) at d:\src\lo\lhm\lo6.1\include\osl\mutex.hxx(164)
sysdtrans.dll!CWinClipbImpl::~CWinClipbImpl() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(66)
sysdtrans.dll!CWinClipbImpl::`scalar deleting destructor'(unsigned int)
sysdtrans.dll!std::default_delete<CWinClipbImpl>::operator()(CWinClipbImpl * _Ptr=0x000001f7204b0920) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(1195)
sysdtrans.dll!std::unique_ptr<CWinClipbImpl,std::default_delete<CWinClipbImpl> >::reset(CWinClipbImpl * _Ptr=0x0000000000000000) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(1433)
sysdtrans.dll!CWinClipboard::disposing() at d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipboard.cxx(220)
cppuhelper3MSC.dll!cppu::WeakComponentImplHelperBase::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\implbase.cxx(102)
sysdtrans.dll!cppu::PartialWeakComponentImplHelper<com::sun::star::datatransfer::clipboard::XSystemClipboard,com::sun::star::datatransfer::clipboard::XFlushableClipboard,com::sun::star::lang::XServiceInfo>::dispose() at d:\src\lo\lhm\lo6.1\include\cppuhelper\compbase.hxx(93)
cppuhelper3MSC.dll!cppu::OFactoryComponentHelper::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\factory.cxx(415)
cppuhelper3MSC.dll!cppu::OComponentHelper::release() at d:\src\lo\lhm\lo6.1\cppuhelper\source\component.cxx(90)
cppuhelper3MSC.dll!cppu::OFactoryComponentHelper::release() at d:\src\lo\lhm\lo6.1\cppuhelper\source\factory.cxx(257)
cppuhelper3MSC.dll!com::sun::star::uno::Reference<com::sun::star::lang::XSingleComponentFactory>::~Reference<com::sun::star::lang::XSingleComponentFactory>() at d:\src\lo\lhm\lo6.1\include\com\sun\star\uno\reference.hxx(110)
cppuhelper3MSC.dll!cppuhelper::ServiceManager::Data::Implementation::~Implementation()
cppuhelper3MSC.dll!cppuhelper::ServiceManager::Data::Implementation::`scalar deleting destructor'(unsigned int)
cppuhelper3MSC.dll!std::_Ref_count<cppuhelper::ServiceManager::Data::Implementation>::_Destroy() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(153)
cppuhelper3MSC.dll!std::_Ref_count_base::_Decref() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(113)
cppuhelper3MSC.dll!std::_Ptr_base<cppuhelper::ServiceManager::Data::Implementation>::_Decref() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(339)
cppuhelper3MSC.dll!std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>::~shared_ptr<cppuhelper::ServiceManager::Data::Implementation>() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\memory(567)
cppuhelper3MSC.dll!std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >::~pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >()
cppuhelper3MSC.dll!std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >::`scalar deleting destructor'(unsigned int)
cppuhelper3MSC.dll!std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void * __ptr64> >::destroy<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >(std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > * _Ptr=0x000001f77a078050) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(745)
cppuhelper3MSC.dll!std::allocator_traits<std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void * __ptr64> > >::destroy<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >(std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> > & _Al={...}, std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > * _Ptr=0x000001f77a078050) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(865)
cppuhelper3MSC.dll!std::_Wrap_alloc<std::allocator<std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void * __ptr64> > >::destroy<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >(std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > * _Ptr=0x000001f77a078050) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(1004)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000001f77a078030) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2041)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000001f776b15180) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000001f776b15a80) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000001f776ad6fe0) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Erase(std::_Tree_node<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> >,void *> * _Rootnode=0x000001f776b371d0) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2037)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::clear() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1472)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::erase(std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > > > _First={...}, std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > > > _Last={...}) at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1448)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::_Tidy() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(2168)
cppuhelper3MSC.dll!std::_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >::~_Tree<std::_Tmap_traits<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > >,0> >() at c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1091)
cppuhelper3MSC.dll!std::map<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > >::~map<rtl::OUString,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>,std::less<rtl::OUString>,std::allocator<std::pair<rtl::OUString const ,std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation> > > >()
cppuhelper3MSC.dll!cppuhelper::ServiceManager::Data::~Data()
cppuhelper3MSC.dll!cppuhelper::ServiceManager::disposing() at d:\src\lo\lhm\lo6.1\cppuhelper\source\servicemanager.cxx(903)
cppuhelper3MSC.dll!cppu::WeakComponentImplHelperBase::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\implbase.cxx(102)
cppuhelper3MSC.dll!cppu::PartialWeakComponentImplHelper<com::sun::star::lang::XServiceInfo,com::sun::star::lang::XMultiServiceFactory,com::sun::star::lang::XMultiComponentFactory,com::sun::star::container::XSet,com::sun::star::container::XContentEnumerationAccess,com::sun::star::beans::XPropertySet,com::sun::star::beans::XPropertySetInfo,com::sun::star::lang::XEventListener,com::sun::star::lang::XInitialization>::dispose() at d:\src\lo\lhm\lo6.1\include\cppuhelper\compbase.hxx(93)
cppuhelper3MSC.dll!cppu::try_dispose(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface> & xInstance={...}) at d:\src\lo\lhm\lo6.1\cppuhelper\source\component_context.cxx(67)
cppuhelper3MSC.dll!cppu::ComponentContext::disposing() at d:\src\lo\lhm\lo6.1\cppuhelper\source\component_context.cxx(458)
cppuhelper3MSC.dll!cppu::WeakComponentImplHelperBase::dispose() at d:\src\lo\lhm\lo6.1\cppuhelper\source\implbase.cxx(102)
cppuhelper3MSC.dll!cppu::PartialWeakComponentImplHelper<com::sun::star::uno::XComponentContext,com::sun::star::container::XNameContainer>::dispose() at d:\src\lo\lhm\lo6.1\include\cppuhelper\compbase.hxx(93)
test-setupvcl.dll!`anonymous namespace'::Hook::deinitHook(`anonymous-namespace'::Hook * __formal=0x0000000000000000, LinkParamNone * __formal=0x0000000000000000) at d:\src\lo\lhm\lo6.1\test\source\setupvcl.cxx(52)
test-setupvcl.dll!`anonymous namespace'::Hook::LinkStubdeinitHook(void * instance=0x0000000000000000, LinkParamNone * data=0x0000000000000000) at d:\src\lo\lhm\lo6.1\test\source\setupvcl.cxx(37)
vcllo.dll!Link<LinkParamNone * __ptr64,void>::Call(LinkParamNone * data=0x0000000000000000) at d:\src\lo\lhm\lo6.1\include\tools\link.hxx(84)
vcllo.dll!DeInitVCL() at d:\src\lo\lhm\lo6.1\vcl\source\app\svmain.cxx(526)
vclbootstrapprotector.dll!`anonymous namespace'::Protector::~Protector() at d:\src\lo\lhm\lo6.1\test\source\vclbootstrapprotector.cxx(34)
vclbootstrapprotector.dll!`anonymous namespace'::Protector::`scalar deleting destructor'(unsigned int)
cppunitd_dll.dll!CppUnit::ProtectorChain::pop() at d:\src\lo\lhm\lo6.1\workdir\unpackedtarball\cppunit\src\cppunit\protectorchain.cpp(56)
cppunitd_dll.dll!CppUnit::TestResult::popProtector() at d:\src\lo\lhm\lo6.1\workdir\unpackedtarball\cppunit\src\cppunit\testresult.cpp(197)
cppunittester.exe!`anonymous namespace'::ProtectedFixtureFunctor::run() at d:\src\lo\lhm\lo6.1\sal\cppunittester\cppunittester.cxx(324)
cppunittester.exe!sal_main() at d:\src\lo\lhm\lo6.1\sal\cppunittester\cppunittester.cxx(465)
cppunittester.exe!main(int argc=23, char * * argv=0x000001f776a7ef40) at d:\src\lo\lhm\lo6.1\sal\cppunittester\cppunittester.cxx(372)
cppunittester.exe!invoke_main() at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl(65)
cppunittester.exe!__scrt_common_main_seh() at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl(253)
cppunittester.exe!__scrt_common_main() at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl(296)
cppunittester.exe!mainCRTStartup() at f:\dd\vctools\crt\vcstartup\src\startup\exe_main.cpp(17)
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()

But this hang i can reproduce on two machines, here the info
kvm-windows  : 1607 (Build 14393.2551), cygwin64 (uname -r) 2.9.0(0.318/5/3)
LaptopWindows: 1803 (Build 17134.345) , cygwin64            2.10.0(0.325/5/3)
Comment 7 Thorsten Behrens (allotropia) 2018-11-07 09:35:41 UTC
confirm, occasional lockup on Win@42 tinderbox too
Comment 8 Markus Mohrhard 2018-11-07 23:04:36 UTC
(In reply to Juergen Funk (CIB) from comment #4)
> That is the first thread:
> 
> win32u.dll!NtUserGetMessage()
> user32.dll!GetMessageW()
> sysdtrans.dll!CMtaOleClipboard::run() at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\mtaoleclipb.cxx(711)
> sysdtrans.dll!CMtaOleClipboard::oleThreadProc(void *
> pParam=0x000001f7204b0928) at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\mtaoleclipb.cxx(733)
> ucrtbased.dll!invoke_thread_procedure(unsigned int(*)(void *)
> procedure=0x00007ff9c2bcbff0, void * const context=0x000001f7204b0928) t
> minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(92)
> ucrtbased.dll!thread_start<unsigned int (__cdecl*)(void * __ptr64)>(void *
> const parameter=0x000001f720769d60) at
> minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(115)
> kernel32.dll!BaseThreadInitThunk()
> ntdll.dll!RtlUserThreadStart()
> 
> 
> 
> 
> 
> And that is the second one
> 
> ntdll.dll!RtlUnwindEx()
> ntdll.dll!__C_specific_handler()
> rpcrt4.dll!__GSHandlerCheck_SEH()
> ntdll.dll!RtlpExecuteHandlerForException()
> ntdll.dll!RtlDispatchException()
> ntdll.dll!KiUserExceptionDispatch()
> KernelBase.dll!RaiseException()
> rpcrt4.dll!RpcpRaiseException()
> rpcrt4.dll!RpcRaiseException()
> combase.dll!NdrExtpProxySendReceive(void * pThis=0x0000000000000003,
> _MIDL_STUB_MESSAGE * pStubMsg=0x00000037e78ff100) at
> onecore\com\combase\ndr\ndrole\proxy.cxx(1971)
> rpcrt4.dll!NdrpClientCall3()
> rpcrt4.dll!NdrClientCall3()
> [Inline Frame] combase.dll!IEnumFORMATETC_RemoteNext_Proxy(IEnumFORMATETC *)
> at onecore\com\combase\proxy\idl\daytona\objfre\amd64\mega_p.c(1254)
> combase.dll!IEnumFORMATETC_Next_Proxy(IEnumFORMATETC * This, unsigned long
> celt, tagFORMATETC * rgelt, unsigned long * pceltFetched=0x0000000000000000)
> at onecore\com\combase\proxy\proxy\call_as.c(1680)
> sysdtrans.dll!CDOTransferable::initFlavorList() at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\dtobj\dotransferable.cxx(284)
> sysdtrans.dll!CDOTransferable::create(const
> com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &
> rxContext={...}, sal::systools::COMReference<IDataObject>
> pIDataObject={...}) at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\dtobj\dotransferable.cxx(181)
> sysdtrans.dll!CWinClipbImpl::getContents() at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(101)
> sysdtrans.dll!CWinClipboard::notifyAllClipboardListener() at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipboard.cxx(180)
> sysdtrans.dll!CWinClipbImpl::onClipboardContentChanged() at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(178)
> sysdtrans.dll!CMtaOleClipboard::clipboardChangedNotifierThreadProc(void *
> pParam=0x000001f7204b0928) at
> d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\mtaoleclipb.cxx(765)
> ucrtbased.dll!invoke_thread_procedure(unsigned int(*)(void *)
> procedure=0x00007ff9c2bcb150, void * const context=0x000001f7204b0928) at
> minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(92)
> ucrtbased.dll!thread_start<unsigned int (__cdecl*)(void * __ptr64)>(void *
> const parameter=0x000001f720768c50) at
> minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(115)
> kernel32.dll!BaseThreadInitThunk()
> ntdll.dll!RtlUserThreadStart()
> 
> I think the other threads are unimportant (wsupdate, GdiPlus, 4x
> TppWorkerThread)
> 
> Thanks for help


I absolutely can not understand how the second thread can be stuck. The thread is in the windows API inside calls that look like throwing a SEH exception. IF none of the COM methods called are actually catching SEH this should theoretically result in a crash (we no longer handle SEH as normal C++ exceptions and therefore should not catch them).
Comment 9 Jan-Marek Glogowski 2018-11-08 01:05:29 UTC
(In reply to Markus Mohrhard from comment #8)
> (In reply to Juergen Funk (CIB) from comment #4)
> > sysdtrans.dll!CWinClipbImpl::getContents() at
> > d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(101)
> > sysdtrans.dll!CWinClipboard::notifyAllClipboardListener() at
> > d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipboard.cxx(180)
> > sysdtrans.dll!CWinClipbImpl::onClipboardContentChanged() at
> > d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\winclipbimpl.cxx(178)
> > sysdtrans.dll!CMtaOleClipboard::clipboardChangedNotifierThreadProc(void *
> > pParam=0x000001f7204b0928) at
> > d:\src\lo\lhm\lo6.1\dtrans\source\win32\clipb\mtaoleclipb.cxx(765)

Thanks for stripping down the backtrace. I didn't originally check, but this is really in the clipboard code.

This was merged on Monday, which might be related:

author	Mike Kaganski <mike.kaganski@collabora.com>	2018-11-05 18:23:40 +0300
committer	Mike Kaganski <mike.kaganski@collabora.com>	2018-11-05 19:30:16 +0100
commit a30dbe34a14906933cfd47e29a4df69a628ab517
Win: implement Clipboard Format Listener instead of obsolete Viewer

Just try reverting the latest patches in dtrans and see, if this helps, as you can hopefully easily reproduce these deadlocks.
Comment 10 Markus Mohrhard 2018-11-08 06:06:27 UTC
> 
> This was merged on Monday, which might be related:
> 
> author	Mike Kaganski <mike.kaganski@collabora.com>	2018-11-05 18:23:40 +0300
> committer	Mike Kaganski <mike.kaganski@collabora.com>	2018-11-05 19:30:16
> +0100
> commit a30dbe34a14906933cfd47e29a4df69a628ab517
> Win: implement Clipboard Format Listener instead of obsolete Viewer
> 
> Just try reverting the latest patches in dtrans and see, if this helps, as
> you can hopefully easily reproduce these deadlocks.

The problem is in the 6-1 branch which does not contain the new code. However, it might be interesting to see if these commits by Mike actually help by building master.
Comment 11 Juergen Funk (CIB) 2018-11-08 06:10:35 UTC
Hi Jan & Markus,

thanks for the help, i think the problem here is the clipboard-chain, i have a own application with clipboard-chain and when LO hang, debugging or crashed then my program hang too, i will try too insert the listener too.
An for LO i want backport the patch from Mike and i hope, no i think that solved the problem. 

But the other quetion here is, why it come in this state, it is possible when every LO-Instance open her owen clipboard-chain and the last one crashed, or end not normally (an application inserts itself into the clipboard-chain, it is always on the top of the chain), then the other LO-instances hang.

Maybe this is the case that a previous LO instance had a problem and caused this state?
Comment 12 Jan-Marek Glogowski 2018-11-08 07:45:35 UTC
(In reply to Markus Mohrhard from comment #10)
> 
> The problem is in the 6-1 branch which does not contain the new code.
> However, it might be interesting to see if these commits by Mike actually
> help by building master.

Oh - shouldn't post in the night when tired...

I have an other idea. Maybe it's the fix for bug 118573.
The fix is just correct, if my original conversion to Application::Reschedule() is allowed here. Can you check if reverting that patch helps?
Comment 13 Juergen Funk (CIB) 2019-02-15 07:06:55 UTC
Hi Jan, Markus

We have implement the cygwrapper (is in lode) on the kvm-windows-machine and with this, the mainly hangs disappeared.
But when hangs then you can shoot up the hanging processes.

But why it hang sometimes on my Laptop that is not clear.
Comment 14 QA Administrators 2021-02-15 04:07:56 UTC Comment hidden (obsolete)
Comment 15 Juergen Funk (CIB) 2021-02-15 04:53:05 UTC
The problem was solved with new clipboard-handling (comment 9), and a other call in jenkins-job