Bug 1098579

Summary: [abrt] libreoffice-core: memmove(): soffice.bin killed by SIGSEGV
Product: [Fedora] Fedora Reporter: A. Barcomb <barcomb>
Component: libreofficeAssignee: Michael Stahl <mstahl>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: caolanm, dtardon, erack, ltinkl, mstahl, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8b57a6c4adb78611fd74e56dc28e8a0f913bd9a4
Whiteboard: abrt_hash:4d42716b08eab65a84507e81de01b70cd555d1df
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-23 10:36:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description A. Barcomb 2014-05-16 15:16:04 UTC
Description of problem:
This particular bug report comes not from 4.2.3.3 as in my initial bug report but from  4.2.4.2 but not a blank profile.
See https://bugs.freedesktop.org/show_bug.cgi?id=78742

If I create a master document and attempt to insert a new file which happens to be a Libre Office spreadsheet, Libreoffice hangs and eventually crashes.  I am able to add Writer documents and also slides to the master document.

Steps to reproduce:
1. Create a new master document.
2. In the master document navigator, select Insert/File and choose a Libreoffice spreadsheet.

Actual results:
Libreoffice hangs and then crashes.

Expected results:
While I would prefer to be able to add spreadsheets to the master document so that I am able to cross-reference between all documents which are part of the project (consider an exercise/answer sheet where you want to demonstrate how the spreadsheet was filled), if this is not supported I would expect to receive an error message informing me that I may not add a spreadsheet to a master document.

This was observed on Fedora 20.

Version-Release number of selected component:
libreoffice-core-4.2.4.2-8.fc20

Additional info:
reporter:       libreport-2.2.2
backtrace_rating: 4
cmdline:        /usr/lib64/libreoffice/program/soffice.bin --writer file:///home/a/Desktop/Case-2012-01%20-%20When%20to%20Disrupt%20Your%20Customers%20(Method%20Park)/Case%202012-01%20-%20When%20to%20Disrupt%20your%20Customers%20-%20Case.odt --splash-pipe=5
crash_function: memmove
executable:     /usr/lib64/libreoffice/program/soffice.bin
kernel:         3.14.2-200.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 memmove at /lib64/libc.so.6
 #1 BigPtrArray::InsBlock(unsigned short) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #2 BigPtrArray::Insert(BigPtrEntry* const&, unsigned long) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #3 SwNodes::InsertNode(SwNode*, SwNodeIndex const&) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #4 SwNode::SwNode(SwNodeIndex const&, unsigned char) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #5 SwStartNode::SwStartNode(SwNodeIndex const&, unsigned char, SwStartNodeType) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #6 SwNodes::MakeTextSection(SwNodeIndex const&, SwStartNodeType, SwTxtFmtColl*, SwAttrSet*) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #7 SwXMLTableContext::InsertTableSection(SwStartNode const*, rtl::OUString const*) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #8 SwXMLTableContext::InsertRepRows(unsigned int) at /usr/lib64/libreoffice/program/../program/libswlo.so
 #9 SvXMLImport::endElement(rtl::OUString const&) at /usr/lib64/libreoffice/program/../program/libxolo.so

Comment 1 A. Barcomb 2014-05-16 15:16:09 UTC
Created attachment 896434 [details]
File: backtrace

Comment 2 A. Barcomb 2014-05-16 15:16:11 UTC
Created attachment 896435 [details]
File: cgroup

Comment 3 A. Barcomb 2014-05-16 15:16:13 UTC
Created attachment 896436 [details]
File: core_backtrace

Comment 4 A. Barcomb 2014-05-16 15:16:16 UTC
Created attachment 896437 [details]
File: dso_list

Comment 5 A. Barcomb 2014-05-16 15:16:18 UTC
Created attachment 896438 [details]
File: environ

Comment 6 A. Barcomb 2014-05-16 15:16:20 UTC
Created attachment 896439 [details]
File: exploitable

Comment 7 A. Barcomb 2014-05-16 15:16:22 UTC
Created attachment 896440 [details]
File: limits

Comment 8 A. Barcomb 2014-05-16 15:16:24 UTC
Created attachment 896441 [details]
File: maps

Comment 9 A. Barcomb 2014-05-16 15:16:26 UTC
Created attachment 896442 [details]
File: open_fds

Comment 10 A. Barcomb 2014-05-16 15:16:28 UTC
Created attachment 896443 [details]
File: proc_pid_status

Comment 11 A. Barcomb 2014-05-16 15:16:30 UTC
Created attachment 896444 [details]
File: var_log_messages

Comment 12 Michael Stahl 2014-05-23 10:36:41 UTC
Writer master documents should not allow inserting non-Writer documents,
upstream bug 78742.

fixed upstream master:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=805fd1ca343d6295b8114a24cc29bdac332f266d

fixed upstream libreoffice-4-2 for 4.2.5.1:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=f3ca9cc78e77dda656b5c39be928fdbb7f8babe8&h=libreoffice-4-2

since this is mostly a "don't do that, then" problem i'll not
do extra work add a patch to current Fedora packages.