Bug 40896 - EDITING: Copy and paste of table causes LibreOffice to crash
Summary: EDITING: Copy and paste of table causes LibreOffice to crash
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.3 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-14 16:45 UTC by Matt
Modified: 2012-02-02 08:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test document that cause LO to crash. (13.07 KB, application/vnd.oasis.opendocument.text)
2011-09-14 16:45 UTC, Matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt 2011-09-14 16:45:05 UTC
Created attachment 51223 [details]
Test document that cause LO to crash.

Every time I try to copy and paste some tables in a large document I work with, LO crashes. I can perform this consistently with the attached test document. dmesg output contains:

[87630.350925] soffice.bin[2475]: segfault at b8 ip 00007f4057fe7057 sp 00007f4058f975a0 error 4 in libswlx.so[7f405795c000+b60000]

Steps to reproduce crash:

1. Open attached sample document in LibreOffice writer
2. Select all text in the document (including table)
3. Copy (CTRL-c)

I can consistently reproduce this behaviour on my system.
Comment 1 Rainer Bielefeld Retired 2011-09-15 00:03:13 UTC
NOT reproducible with "LibreOffice 3.4.3 RC2 - WIN7 Home Premium (64bit) German UI [OOO340m1 (Build:302)]" or "LibreOffice Portable 3.3.3  - WIN7  Home Premium (64bit) German UI [OOO330m19 (Build:301  Tag 3.3.3.1)]".

Matt:
3.3.3 is outdated, please try again with 3.3.4 or 3.4.3.
Please additionally contribute detailed information concerning your OS, PC, LibO build and localization ...
Comment 2 Matt 2011-09-18 21:30:22 UTC
I just installed the latest packages (LibO 3.4.3rc2 for AMD64) from the debian packaged files and get the same behaviour:

[356722.053761] soffice.bin[21806]: segfault at e0 ip 00007f08265f1ff6 sp 00007f08277e75e0 error 4 in libswlx.so[7f082605f000+c79000]

However, I don't get a crash at all running on various versions with Virtualbox, so I'm beginning to think that it's some peculiar interaction on my installed OS. I'm using Xubuntu 11.04, for what it's worth, but given the peculiar nature of the problem, I don't think it's worth your time to debug further.  I'll upgrade to 11.10 soon and expect to have no further problems.

Thanks.
Comment 3 Matt 2011-09-19 17:22:44 UTC
Here's a GDB stack trace of the crash, if you can see anything obvious that's worth looking at from this issue:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f1d3a087700 (LWP 4536)]
0x00007f1d36f19057 in SwTableCellInfo::SwTableCellInfo(SwTable const*) ()
   from /usr/lib/libreoffice/program/../basis-link/program/libswlx.so
(gdb) bt
#0  0x00007f1d36f19057 in SwTableCellInfo::SwTableCellInfo(SwTable const*) ()
   from /usr/lib/libreoffice/program/../basis-link/program/libswlx.so
#1  0x00007f1d32532820 in ?? ()
   from /usr/lib/libreoffice/basis3.3/program/libmswordlx.so
#2  0x00007f1d32532a6b in ?? ()
   from /usr/lib/libreoffice/basis3.3/program/libmswordlx.so
#3  0x00007f1d32486aa8 in ?? ()
   from /usr/lib/libreoffice/basis3.3/program/libmswordlx.so
#4  0x00007f1d32559067 in ?? ()
   from /usr/lib/libreoffice/basis3.3/program/libmswordlx.so
#5  0x00007f1d3248b457 in ?? ()
   from /usr/lib/libreoffice/basis3.3/program/libmswordlx.so
#6  0x00007f1d32559d08 in ?? ()
   from /usr/lib/libreoffice/basis3.3/program/libmswordlx.so
#7  0x00007f1d37026932 in Writer::Write(SwPaM&, SvStream&, String const*) ()
   from /usr/lib/libreoffice/program/../basis-link/program/libswlx.so
#8  0x00007f1d36fb499a in ?? ()
   from /usr/lib/libreoffice/program/../basis-link/program/libswlx.so
#9  0x00007f1d370ec053 in ?? ()
   from /usr/lib/libreoffice/program/../basis-link/program/libswlx.so
#10 0x00007f1d589cc35b in TransferableHelper::SetObject(void*, unsigned int, com::sun::star::datatransfer::DataFlavor const&) ()
   from /usr/lib/libreoffice/program/../basis-link/program/libsvtlx.so
#11 0x00007f1d370e49af in ?? ()
   from /usr/lib/libreoffice/program/../basis-link/program/libswlx.so
#12 0x00007f1d589cee9e in TransferableHelper::getTransferData(com::sun::star::datatransfer::DataFlavor const&) ()
   from /usr/lib/libreoffice/program/../basis-link/program/libsvtlx.so
#13 0x00007f1d501aac26 in x11::SelectionManager::convertData(com::sun::star::uno::Reference<com::sun::star::datatransfer::XTransferable> const&, unsigned long, unsigned long, int&, com::sun::star::uno::Sequence<signed char>&) ()
   from /usr/lib/libreoffice/basis3.3/program/libvclplug_genlx.so
#14 0x00007f1d501af7cc in x11::SelectionManager::sendData(x11::SelectionAdaptor*, unsigned long, unsigned long, unsigned long, unsigned long) ()
   from /usr/lib/libreoffice/basis3.3/program/libvclplug_genlx.so
#15 0x00007f1d501b06c7 in x11::SelectionManager::handleSelectionRequest(XSelectionRequestEvent&) ()
   from /usr/lib/libreoffice/basis3.3/program/libvclplug_genlx.so
#16 0x00007f1d501b0d13 in x11::SelectionManager::handleXEvent(_XEvent&) ()
   from /usr/lib/libreoffice/basis3.3/program/libvclplug_genlx.so
#17 0x00007f1d501b1170 in x11::SelectionManager::dispatchEvent(int) ()
   from /usr/lib/libreoffice/basis3.3/program/libvclplug_genlx.so
#18 0x00007f1d501b133e in x11::SelectionManager::run(void*) ()
   from /usr/lib/libreoffice/basis3.3/program/libvclplug_genlx.so
#19 0x00007f1d5b54629e in ?? ()
   from /usr/lib/libreoffice/program/../basis-link/ure-link/lib/libuno_sal.so.3
#20 0x00007f1d5a352d8c in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#21 0x00007f1d5a85404d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#22 0x0000000000000000 in ?? ()
Comment 4 Björn Michaelsen 2011-12-23 12:39:04 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 5 Matt 2011-12-27 11:09:15 UTC
While I never found the actual cause, this seemed to be due to interactions between installed software versions on my computer.  I couldn't recreate the problem on other computers nor even on VMs running the same packages.  In the end I reinstalled the OS and no longer have the problem.
Comment 6 sasha.libreoffice 2012-02-02 08:29:07 UTC
due last comment change status to WorksForME
@ Matt
Please, if problem appears again, change status to Reopened