Bug 104251 - Writer crashes on closing documents after template-changes had been accepted
Summary: Writer crashes on closing documents after template-changes had been accepted
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.3.3 release
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks:
 
Reported: 2016-11-29 11:11 UTC by Johannes Weberhofer
Modified: 2018-05-02 11:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test template (27.56 KB, application/vnd.oasis.opendocument.text-template)
2016-11-29 11:11 UTC, Johannes Weberhofer
Details
Test document (22.64 KB, application/vnd.oasis.opendocument.text)
2016-11-29 11:12 UTC, Johannes Weberhofer
Details
GDB trace of the crash with 5.4 master (19.95 KB, text/plain)
2016-12-02 16:13 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Weberhofer 2016-11-29 11:11:21 UTC
Created attachment 129108 [details]
Test template

Whenever I do a change in a template and accept this change for to be used in a document based on that template LO crashes when I close the document. It does not make any difference if I save the document or not.

Reproduce:

1) Copy the "Testvorlage.ott" to your template directory
2) Copy the "test document.odt" to yout template directory
3) Edit the document's meta.xml so that it uses the correct template path
4) Open "test document.odt" and accept the changes to be used in the documents
5) Close the document without saving it

LO will crash:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007fedead7449d in poll () at ../sysdeps/unix/syscall-template.S:84
84	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) continue
Continuing.
[Thread 0x7feda52d0700 (LWP 26142) exited]
[New Thread 0x7feda52d0700 (LWP 26161)]
[New Thread 0x7feda5cf5700 (LWP 26162)]

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fedec900b04 in SfxShell::SetDisableFlags () from /usr/lib64/libreoffice/program/libmergedlo.so

My Environment: openSUSE Leap 42.2 with the latest Libreoffice release. I have also seen that problem with older LO versions. The problem must be related to the content of the files, because it took me a while to generate a simple template causing this issue
Comment 1 Johannes Weberhofer 2016-11-29 11:12:58 UTC
Created attachment 129109 [details]
Test document
Comment 2 Buovjaga 2016-12-02 08:18:58 UTC
As the .odt and .ott reside in the same folder, should the edit in meta.xml be simply: xlink:href="Testvorlage.ott"

I did that and it doesn't ask me to accept changes. Even if I edited the .ott and tried again.

Win 7 Pro 64-bit Version: 5.4.0.0.alpha0+
Build ID: 142618ecae472e535c582c0fb357d2a9a76655f1
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-11-28_00:46:57
Locale: fi-FI (fi_FI); Calc: group
Comment 3 Johannes Weberhofer 2016-12-02 12:00:43 UTC
(In reply to Buovjaga from comment #2)
> As the .odt and .ott reside in the same folder, should the edit in meta.xml
> be simply: xlink:href="Testvorlage.ott"
> 
> I did that and it doesn't ask me to accept changes. Even if I edited the
> .ott and tried again.
>
I'm asked to update the template when I put a full path for the template into the document.
Comment 4 Buovjaga 2016-12-02 16:13:33 UTC
Created attachment 129254 [details]
GDB trace of the crash with 5.4 master

Thanks, repro with the absolute path.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: 8a238809ba861c810304354f01a5504d43111399
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on December 2nd 2016
Comment 5 Nico Dorn 2017-05-01 12:02:15 UTC
Confirmed. If I remember right, this bug did not show up in LO 5.2. Since then I experience it on a daily basis.

Version: 5.3.2.2
Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: de-DE (en_US.UTF-8); Calc: group
Comment 6 QA Administrators 2018-05-02 02:33:00 UTC Comment hidden (obsolete)
Comment 7 Johannes Weberhofer 2018-05-02 10:20:51 UTC
This bug is no longer present in version 6.0.4.1 and can be closed.