soffice.bin crashed with SIGSEGV in Tell()

Bug #1376326 reported by Laurent Bonnaud
30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Medium
libreoffice (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

LO crashed while saving the attached file as a MS Word DOC file.

ProblemType: Crash
DistroRelease: Ubuntu 14.10
Package: libreoffice-core 1:4.3.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-18.25-generic 3.16.3
Uname: Linux 3.16.0-18-generic x86_64
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Oct 1 17:46:01 2014
EcryptfsInUse: Yes
ExecutablePath: /usr/lib/libreoffice/program/soffice.bin
ProcCmdline: /usr/lib/libreoffice/program/soffice.bin --writer 11_03pu-reduced.odt --splash-pipe=5
SegvAnalysis:
 Segfault happened at: 0x7f6dffd7120b <_ZN13GraphicFilter13ImportGraphicER7GraphicRKN3rtl8OUStringER8SvStreamtPtjPN3com3sun4star3uno8SequenceINSB_5beans13PropertyValueEEEP18WMF_EXTERNALHEADER+2107>: movzwl 0x2c(%rbx),%eax
 PC (0x7f6dffd7120b) ok
 source "0x2c(%rbx)" (0x0000002c) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: libreoffice
StacktraceTop:
 GraphicFilter::ImportGraphic(Graphic&, rtl::OUString const&, SvStream&, unsigned short, unsigned short*, unsigned int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>*, WMF_EXTERNALHEADER*) () from /usr/lib/libreoffice/program/libvcllo.so
 GraphicFilter::ImportGraphic(Graphic&, rtl::OUString const&, SvStream&, unsigned short, unsigned short*, unsigned int, WMF_EXTERNALHEADER*) () from /usr/lib/libreoffice/program/libvcllo.so
 ?? () from /usr/lib/libreoffice/program/../program/libmswordlo.so
 ?? () from /usr/lib/libreoffice/program/../program/libmswordlo.so
 ?? () from /usr/lib/libreoffice/program/../program/libmswordlo.so
Title: soffice.bin crashed with SIGSEGV in GraphicFilter::ImportGraphic()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm autopilot cdrom dip fuse libvirtd lpadmin plugdev sambashare staff sudo

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Problem description:

The attached ODT file cannot be saved as a RTF file.

Steps to reproduce:
1. Load the attached file in LibreOffice
2. Save it as RTF

Current behavior:

LibreOffice displays an error box with this message:
  Error saving the document
  Write Error.
  The file could not be written.

Expected behavior:

LibreOffice manages to save the file.

Platform (if different from the browser):

Browser: Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/18.0 Firefox/18.0

This is with Version 3.6.2.2 (Build ID: da8c1e6)

PS: I could not select the correct version in the bug reporting Web interface.

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Problem description:

The attached ODT file cannot be saved as a RTF file.

Steps to reproduce:
1. Load the attached file in LibreOffice
2. Save it as RTF

Current behavior:

LibreOffice displays an error box with this message:
  Error saving the document
  Write Error.
  The file could not be written.

Expected behavior:

LibreOffice manages to save the file.

Platform (if different from the browser):

Browser: Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/18.0 Firefox/18.0

This is with Version 3.6.2.2 (Build ID: da8c1e6)

PS: I could not select the correct version in the bug reporting Web interface.

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Created attachment 68118
File to reproduce the bug

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Created attachment 68118
File to reproduce the bug

Revision history for this message
In , Billhook (billhook) wrote :

Confirmed on Windows Vista 32 bit on LO 3.6.2.2.

Furthermore, saving the same .odt file as a ".doc (97/XP/2003)" or as a ".doc (Word 95)" crashes LibreOffice completely.

I *could* save the attached .odt as .docx, .html and export as pdf.

Revision history for this message
In , Billhook (billhook) wrote :

Confirmed on Windows Vista 32 bit on LO 3.6.2.2.

Furthermore, saving the same .odt file as a ".doc (97/XP/2003)" or as a ".doc (Word 95)" crashes LibreOffice completely.

I *could* save the attached .odt as .docx, .html and export as pdf.

Revision history for this message
In , Billhook (billhook) wrote :

@Laurent Did this work in previous versions of OpenOffice?

Revision history for this message
In , Billhook (billhook) wrote :

@Laurent Did this work in previous versions of OpenOffice?

Revision history for this message
In , Billhook (billhook) wrote :

I wonder if this has anything to do with Bug 51262 - "big rtf file from little odt file"

 * This document is quite big to start with (777 pages; 2,923,499 bytes)
 * It contains a lot of images, and that bug is apparently caused by images in the document.

Just speculation...

Revision history for this message
In , Billhook (billhook) wrote :

I wonder if this has anything to do with Bug 51262 - "big rtf file from little odt file"

 * This document is quite big to start with (777 pages; 2,923,499 bytes)
 * It contains a lot of images, and that bug is apparently caused by images in the document.

Just speculation...

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

I don't know if previous LO crashed or failed.

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

I don't know if previous LO crashed or failed.

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Saving this file to MS Word "DOC" format also crashes on Linux.

I tried with the LibreOffice binary provided in Ubuntu 12.10 and the resulting debugging info can be found there:

  https://bugs.launchpad.net/df-libreoffice/+bug/1064560

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Saving this file to MS Word "DOC" format also crashes on Linux.

I tried with the LibreOffice binary provided in Ubuntu 12.10 and the resulting debugging info can be found there:

  https://bugs.launchpad.net/df-libreoffice/+bug/1064560

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

With the binary I downloaded from libreoffice.org there is no crash information displayed. The LO window just disappears.

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

With the binary I downloaded from libreoffice.org there is no crash information displayed. The LO window just disappears.

Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

LO 3.6.1.2 under Win7Pro_x64:

Save as RTF -> Error saving the document
Save as DOC (97/XP/2003) -> Crash

but

Save as DOC (95) -> OK

Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

LO 3.6.1.2 under Win7Pro_x64:

Save as RTF -> Error saving the document
Save as DOC (97/XP/2003) -> Crash

but

Save as DOC (95) -> OK

Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

Excuse me, the previous comment is partially incorrect.
If I open the file and immediately try to save as DOC (either 95 or 97+), LO crashes.

But if I open the file, then try to save as RTF, get the error message, then try to save as DOC (either 95 or 97+), then the operation succeedes.

Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

Excuse me, the previous comment is partially incorrect.
If I open the file and immediately try to save as DOC (either 95 or 97+), LO crashes.

But if I open the file, then try to save as RTF, get the error message, then try to save as DOC (either 95 or 97+), then the operation succeedes.

Revision history for this message
In , Lemoyne-castle (lemoyne-castle) wrote :

In Version 3.6.3.2 (Build ID: 58f22d5) on Ubuntu 10.04 was able to re-create the RTF file save error but it did not crash when saved as .doc (97-2003).

Revision history for this message
In , Lemoyne-castle (lemoyne-castle) wrote :

In Version 3.6.3.2 (Build ID: 58f22d5) on Ubuntu 10.04 was able to re-create the RTF file save error but it did not crash when saved as .doc (97-2003).

Revision history for this message
In , lengo (pcunger) wrote :

Running 4.0.2.2 and it crashes every time I try to save a file with tables, pictures, different field types, footnotes, and comments, etc., to .rtf. I don't try to save to .rtf often, so I'm just noticing this behaviour now. Saving to .pdf, .doc, .docx all work fine.

Revision history for this message
In , lengo (pcunger) wrote :

Running 4.0.2.2 and it crashes every time I try to save a file with tables, pictures, different field types, footnotes, and comments, etc., to .rtf. I don't try to save to .rtf often, so I'm just noticing this behaviour now. Saving to .pdf, .doc, .docx all work fine.

Revision history for this message
In , Barta-c (barta-c) wrote :

I think it's "inherited from LibO" I was able to reproduce both RTF and DOC crashes with multiple LibO release up to 3.3.3 (I don't have 3.3.0) and the bug is present in AOO 4.0.0 too.

edited summary. changed version and component fields.
added expert devs to CC list

Revision history for this message
In , Barta-c (barta-c) wrote :

I think it's "inherited from LibO" I was able to reproduce both RTF and DOC crashes with multiple LibO release up to 3.3.3 (I don't have 3.3.0) and the bug is present in AOO 4.0.0 too.

edited summary. changed version and component fields.
added expert devs to CC list

Revision history for this message
In , Barta-c (barta-c) wrote :

P.S. tested under Win7 64bit

Revision history for this message
In , Barta-c (barta-c) wrote :

P.S. tested under Win7 64bit

Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

The test document seems to be broken.

1. If I open the file using any version starting from 3.3.0.4 and up to 4.1.1.2 under Win7x64, it opens with first page empty. When I scroll it down (so that I see some graphics on some pages), and then return to the first page, there are "ghost" graphics in the top left corner of the first page. They may be selected and moved, but if I scroll the document down and up again, they disappear and other graphics appear.

2. The 4.1.2.1 opens the document (with empty first page), and then crashes after a couple of seconds (looks like it continues to process the document after initial display, and the crash happens on some stage of this delayed processing). So, the problem is worse in 4.1.2.1.

Despite the document itself is broken, I think the bug should be fixed, because the crash indicates some flaw in the code that doesn't expect something wrong in the input data. Fixing it will make the software more robust.

Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

The test document seems to be broken.

1. If I open the file using any version starting from 3.3.0.4 and up to 4.1.1.2 under Win7x64, it opens with first page empty. When I scroll it down (so that I see some graphics on some pages), and then return to the first page, there are "ghost" graphics in the top left corner of the first page. They may be selected and moved, but if I scroll the document down and up again, they disappear and other graphics appear.

2. The 4.1.2.1 opens the document (with empty first page), and then crashes after a couple of seconds (looks like it continues to process the document after initial display, and the crash happens on some stage of this delayed processing). So, the problem is worse in 4.1.2.1.

Despite the document itself is broken, I think the bug should be fixed, because the crash indicates some flaw in the code that doesn't expect something wrong in the input data. Fixing it will make the software more robust.

Revision history for this message
In , Alexpikptz (alexpikptz) wrote :

I reproduce behavior described in comment 9 with LibreOffice 4.2.5 and 4.3.0.3 on Debian x86_64, but the file is saved as rtf with LibreOffice 4.3.0.3 without errors.

Revision history for this message
In , Alexpikptz (alexpikptz) wrote :

I reproduce behavior described in comment 9 with LibreOffice 4.2.5 and 4.3.0.3 on Debian x86_64, but the file is saved as rtf with LibreOffice 4.3.0.3 without errors.

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

Here is the file to reproduce the crash.

information type: Private → Public
Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

I tested again in Ubuntu 14.10 with LO 1:4.3.2-0ubuntu1:

 - saving as RTF works
 - saving as DOC crashes

I opened a new bug with updated information:

  https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1376326

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

I tested again in Ubuntu 14.10 with LO 1:4.3.2-0ubuntu1:

 - saving as RTF works
 - saving as DOC crashes

I opened a new bug with updated information:

  https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1376326

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceTop.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
summary: - soffice.bin crashed with SIGSEGV in GraphicFilter::ImportGraphic()
+ soffice.bin crashed with SIGSEGV in Tell()
tags: removed: need-amd64-retrace
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , JBF (jbf-faure) wrote :

This odt file has been created by conversion from a .doc file. You can verify this point by checking the names of numbering styles, you will find style names like WW8Num1 which are WinWord8 style names.
If you open the Navigator to examine the objects of this document, you will see that there is 10 hidden tables. AFAIK LibreOffice does not have the ability to hide a table.

I suggest 2 ways to try to fix the problem:
1/ unzip the .odt and remove the hidden tables from the content.xml and compress the file again.
2/ come back to the original .doc file with MS-Word, make sure that all objects included in the document are not hidden, save the file under another name in both formats doc and docx. Convert these new files to .odt using the current stable "Fresh' version of LibreOffice.

Best regards. JBF

Revision history for this message
In , JBF (jbf-faure) wrote :

This odt file has been created by conversion from a .doc file. You can verify this point by checking the names of numbering styles, you will find style names like WW8Num1 which are WinWord8 style names.
If you open the Navigator to examine the objects of this document, you will see that there is 10 hidden tables. AFAIK LibreOffice does not have the ability to hide a table.

I suggest 2 ways to try to fix the problem:
1/ unzip the .odt and remove the hidden tables from the content.xml and compress the file again.
2/ come back to the original .doc file with MS-Word, make sure that all objects included in the document are not hidden, save the file under another name in both formats doc and docx. Convert these new files to .odt using the current stable "Fresh' version of LibreOffice.

Best regards. JBF

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Thank you for the analysis of this crash! I will update the bug title...

Thanks again for the workaround! However LO needs a fix anyway.

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

Thank you for the analysis of this crash! I will update the bug title...

Thanks again for the workaround! However LO needs a fix anyway.

Revision history for this message
In , JBF (jbf-faure) wrote :

(In reply to Laurent Bonnaud from comment #18)
> Thank you for the analysis of this crash! I will update the bug title...
>
> Thanks again for the workaround! However LO needs a fix anyway.

It worked ? which one ? ;-)

Best regards. JBF

Revision history for this message
In , JBF (jbf-faure) wrote :

(In reply to Laurent Bonnaud from comment #18)
> Thank you for the analysis of this crash! I will update the bug title...
>
> Thanks again for the workaround! However LO needs a fix anyway.

It worked ? which one ? ;-)

Best regards. JBF

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

> It worked ? which one ? ;-)

I did not even try because I do not care about this document (it is not even mine).

Revision history for this message
In , Laurent Bonnaud (laurent-bonnaud) wrote :

> It worked ? which one ? ;-)

I did not even try because I do not care about this document (it is not even mine).

Revision history for this message
penalvch (penalvch) wrote :
Changed in libreoffice (Ubuntu):
status: Confirmed → Triaged
tags: added: trusty
Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

Created attachment 115415
Minimal test case for bug 55665

(In reply to Jean-Baptiste Faure from comment #17)
> If you open the Navigator to examine the objects of this document, you will
> see that there is 10 hidden tables. AFAIK LibreOffice does not have the
> ability to hide a table.
These hidden tables are parts of custom page styles that are defined in the document, but not used. LO can easily create these. To get rid of the tables, simply remove all custom page styles, or aply each style and remove tables from its header/footer, or just remove headers/footers altogether.

Actually, the problem is not the tables. There is a bug processing one of OLE objects in the file, namely Object 65. It is a formula on page 525 ((1) of C.11.2.1.3.1 SIGMOID descriptor). Removing it, the problem disappears. Besides, scrolling so that it gets displayed on screen removes the crash, too.

Here is the minimal test file that is enough to show the problem. It contains the following required items:
1. Some paragraphs to move OLE objects to second page (manual page break doesn't do the trick)
2. The problematic OLE itself
3. Another OLE just next to problematic one

Submitted patch to gerrit - https://gerrit.libreoffice.org/15667

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=a612c2ee5f6e9c40f33e7aa1b8d79ffee5cb4c9b

tdf#55665: Fix a corner case OLE processing

It will be available in 5.0.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.

Changed in df-libreoffice:
importance: Medium → Unknown
status: Confirmed → Unknown
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug is fixed in wily.

Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
In , Qubit (qubit) wrote :

Migrating Whiteboard tags to Keywords: (filter:doc, filter:rtf)
[NinjaEdit]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.