Bug 36103 - Writer consistently crashes when closing multi-hundred page documents with another LibreOffice file open -> soffice.bin crashed with SIGSEGV in SwFmt::~SwFmt()
Summary: Writer consistently crashes when closing multi-hundred page documents with an...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 08:01 UTC by Chris Peñalver
Modified: 2011-11-08 15:09 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
examplex1.odt 216 pages of lowercase x with a few returns scattered throughout. (11.47 KB, application/vnd.oasis.opendocument.text)
2011-04-09 08:01 UTC, Chris Peñalver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Peñalver 2011-04-09 08:01:46 UTC
Created attachment 45441 [details]
examplex1.odt 216 pages of lowercase x with a few returns scattered throughout.

Downstream bug may be found at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/753183

1) lsb_release -rd
Description: Ubuntu Natty (development branch)
Release: 11.04

2) apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.3.2-1ubuntu2
  Candidate: 1:3.3.2-1ubuntu2
  Version table:
 *** 1:3.3.2-1ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen is when one performs via the Terminal:

cd ~/Desktop && wget https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/753183/+attachment/2005949/+files/examplex1.odt && cp examplex1.odt examplex2.odt && lowriter -nologo examplex1.odt examplex2.odt

then closes examplex1.odt via File -> Close, LibreOffice Writer does not crash.

4) What happens instead is the program consistently greyscreens then crashes.
Comment 1 Jan Holesovsky 2011-04-14 14:30:13 UTC
Can you please provide us with a backtrace?

http://wiki.documentfoundation.org/BugReport#How_to_get_backtrace_.28on_Linux.29

Thank you!
Comment 2 Chris Peñalver 2011-04-14 21:56:34 UTC
Jan Holesovsky, thank you for following up. Regarding the link on how to produce a backtrace, unfortunately it needs to be updated as the first step does not work:

cd /opt/libreoffice/program
bash: cd: /opt/libreoffice/program: No such file or directory

Despite this I performed via the Terminal:

cd ~/Desktop && wget https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/753183/+attachment/2005949/+files/examplex1.odt && cp examplex1.odt examplex2.odt && lowriter -nologo examplex1.odt examplex2.odt && sudo gdb 2>&1 | tee backtrace.txt

Attached gdb to the process id via the Terminal:

attach 15131
Attaching to process 15131
Reading symbols from /bin/dash...(no debugging symbols found)...done.
Reading symbols from /lib/i386-linux-gnu/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/i386-linux-gnu/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
0x00ce8416 in __kernel_vsyscall ()
(gdb) continue

Continued the process via the Terminal:

continue

Closed examplex1.odt by clicking File -> Exit, both files closed but gdb notes it did not crash as per Terminal output:

Program exited normally.

The same procedure outside of gdb did not produce a crash. I recently updated a ton of packages so seems fixed now...

lsb_release -rd
Description:        Ubuntu Natty (development branch)
Release:        11.04

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.3.2-1ubuntu2
  Candidate: 1:3.3.2-1ubuntu2
  Version table:
 *** 1:3.3.2-1ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages 100
/var/lib/dpkg/status
Comment 3 Björn Michaelsen 2011-04-16 00:38:15 UTC
@Christopher: I updated the instructions -- it is /usr/lib/libreoffice/program on Ubuntu/Debian.
Its important to run gdb on the soffice.bin executable, not any of the wrapper scripts.
Comment 4 Björn Michaelsen 2011-11-08 15:09:48 UTC
Still cant reproduce with upstream master,