Created attachment 126417 [details] deadlocked stacks if i run the crash-testing test-bugzilla-files.py with LO 5.1.4.2, about 10% of the documents that are "exported" are actually copies of the source document. this is because during the export Base deadlocks and the python script kills it after 180 seconds. these timeout-kills are not reported in the "crashlog" that is generated. apparently calling ODatabaseDocument members on a non-main thread doesn't work well because the main thread may be dispatching some Idle or Timer at the same time that calls into Base UI, which then may call ODatabaseDocument members. that deadlocks because ODatabaseDocument has its own mutex. i wonder if that can be fixed by replacing ODatabaseDocument's own mutex with SolarMutex.
Michael: could it be related to the fact that initialization process, when opening odb files, seems not ok? (see tdf#96703 put in see also)
Hi Michael, Is this not just another occurrence of the behaviour in bug 96837 ?
Sorry, I meant bug 96387
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=403eefe81b8a0afe888c60452c17d6b2c5d8343f tdf#101136 dbaccess: use SolarMutex in ModelMethodGuard It will be available in 5.3.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.
Hello Michael, Is this bug fixed? If so, could you please close it as RESOLVED FIXED? Changing status to NEW.
fixed on master, won't be backported