Bug 129968 - LibreOffice will crash when save a read-only document as a template in template manager
Summary: LibreOffice will crash when save a read-only document as a template in templa...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.3.3.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-13 02:34 UTC by Hillwood Yang
Modified: 2020-05-11 13:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
gdb dbug information (4.29 KB, text/plain)
2020-01-13 02:34 UTC, Hillwood Yang
Details
backtrace (6.65 KB, text/plain)
2020-01-13 03:43 UTC, Hillwood Yang
Details
Asimple document (201.43 KB, application/wps-office.doc)
2020-01-14 03:38 UTC, Hillwood Yang
Details
backtrace with debuginfo packages (2.48 KB, text/plain)
2020-01-14 03:39 UTC, Hillwood Yang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hillwood Yang 2020-01-13 02:34:22 UTC
Created attachment 157103 [details]
gdb dbug information

Step1: Open a read-only document, eg:an attachent of Evolution

Step2: Save it as a templet in templet manager of LibreOffice

Then the LibreOffice crashes.

OS: openSUSE Leap 15.1
Comment 1 Hillwood Yang 2020-01-13 03:43:09 UTC
Created attachment 157104 [details]
backtrace
Comment 2 Xisco Faulí 2020-01-13 12:59:13 UTC
I can't reproduce it in

Versió: 6.3.4.2
ID de la construcció: 1:6.3.4-0ubuntu0.18.04.1~lo2
Fils de CPU: 4; SO: Linux 4.15; Renderitzador de la IU: per defecte; VCL: gtk3; 
Configuració local: ca-ES (ca_ES.UTF-8); Llengua de la IU: ca-ES
Calc: threaded

Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 3 Hillwood Yang 2020-01-14 03:38:18 UTC
Created attachment 157135 [details]
Asimple document

This document can lead to crash.

Please don't save it, direct open it in browser's download manager. Then the bug will reappear.
Comment 4 Hillwood Yang 2020-01-14 03:39:13 UTC
Created attachment 157136 [details]
backtrace with debuginfo packages
Comment 5 Tomáš Chvátal 2020-01-14 15:02:51 UTC
Adding downstream bug.

Also testing it with 6.4 does not reproduce the problem, while reporter can reproduce it with 6.3.
Comment 6 Xisco Faulí 2020-02-17 14:53:17 UTC
Hello Hillwood Yang,
Could you please try to reproduce it with the latest version of LibreOffice ( 6.4 ) from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 7 Gerald Pfeifer 2020-05-11 12:21:29 UTC
I tried with version 6.4.3.2
  Build ID: 40(Build:2)
  CPU threads: 4; OS: Linux 5.6; UI render: default; VCL: gtk3; 
  Locale: en-US (en_US.UTF-8); UI-Language: en-US
on openSUSE Tumbleweed since Hillwood originally reported this on openSUSE.

  1. Open document from comment #4 (which then shows up as read-only).
  2. File - Templates - Save as Template..., 
     choose Template Category "My Templates" and save as "xx".
  3. No crash.

Hillwood, if you try with current openSUSE Tumbleweed or Leap, can you still
reproduce your crash?


(Also, I am wondering whether the crash you reported may be tied to the 
filename which appears to have a number of special characters?  If you can
still reproduce, can you also with a file with just 'a' to 'z' in its name
or does that make a difference?)
Comment 8 Hillwood Yang 2020-05-11 13:51:29 UTC
(In reply to Gerald Pfeifer from comment #7)
> I tried with version 6.4.3.2
>   Build ID: 40(Build:2)
>   CPU threads: 4; OS: Linux 5.6; UI render: default; VCL: gtk3; 
>   Locale: en-US (en_US.UTF-8); UI-Language: en-US
> on openSUSE Tumbleweed since Hillwood originally reported this on openSUSE.
> 
>   1. Open document from comment #4 (which then shows up as read-only).
>   2. File - Templates - Save as Template..., 
>      choose Template Category "My Templates" and save as "xx".
>   3. No crash.
> 
> Hillwood, if you try with current openSUSE Tumbleweed or Leap, can you still
> reproduce your crash?
> 
> 
> (Also, I am wondering whether the crash you reported may be tied to the 
> filename which appears to have a number of special characters?  If you can
> still reproduce, can you also with a file with just 'a' to 'z' in its name
> or does that make a difference?)

Confirm Libreoffice 6.4.3.2 in Leap and Tumbleweed no longer have this bug.
Comment 9 Xisco Faulí 2020-05-11 13:52:58 UTC
Let's close it as RESOLVED WORKSFORME then. Thanks for retesting