Bug 144855 - CRASH: LibreOffice crashes 1 minute after opening a locked document
Summary: CRASH: LibreOffice crashes 1 minute after opening a locked document
Status: RESOLVED DUPLICATE of bug 144650
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: highest critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-10-01 15:12 UTC by Xisco Faulí
Modified: 2021-10-01 16:12 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["`anonymous namespace'::CheckReadOnlyTask::doWork"]


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2021-10-01 15:12:38 UTC
Steps to reproduce:
1. Open a file with an older version of LibreOffice, MSO Office or another sofware
2. Open the same file with LibreOffice 7.2 or master
3. At this point the document is in used dialog is displayed. Click on Notify. Start the stopwatch now.
4. Close the document
5. Open it again and click on notify
6. Wait until the stopwatch reaches 60 seconds

-> Crash

Reproduced in

Version: 7.2.0.4 (x86) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win
Locale: ar-DZ (es_ES); UI: es-ES
Calc: threaded
Comment 1 Xisco Faulí 2021-10-01 15:17:34 UTC
I haven't bisect it but it looks like a regression from

https://cgit.freedesktop.org/libreoffice/core/commit/?id=95eb088802562b75f8b299908160145c7e88d763

author	Matt K <mattkse@gmail.com>	2021-02-26 10:24:38 -0600
committer	Mike Kaganski <mike.kaganski@collabora.com>	2021-05-27 12:31:38 +0200
commit 95eb088802562b75f8b299908160145c7e88d763 (patch)
tree dbabada569f125ca900906463a697b1e606dbae5
parent ee1407608c0d228e4705215e9700af3200511cc8 (diff)
tdf#47065 Add new file open UI options and implement a new thread

Adding Cc: to Matt K

I suspect the locks wait for 1 minute at https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/docfile.cxx?r=4dbe4a93#4728 and then it crashes in the following loop because the document no longer exists since it was closed and reopened
Comment 2 Xisco Faulí 2021-10-01 15:30:29 UTC
@Jmux, I thought you might be interested in this issue
Comment 3 Mike Kaganski 2021-10-01 16:12:32 UTC

*** This bug has been marked as a duplicate of bug 144650 ***