Bug 38424 - Documents cause LibreOffice to *crash* on close
Summary: Documents cause LibreOffice to *crash* on close
Status: CLOSED DUPLICATE of bug 39510
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.4.0 release
Hardware: Other Linux (All)
: high critical
Assignee: Cédric Bosdonnat
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 15:18 UTC by Ivan Voras
Modified: 2011-11-15 02:11 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
This document crashes LibreOffice on exit (24.55 KB, application/vnd.oasis.opendocument.text)
2011-06-17 15:18 UTC, Ivan Voras
Details
gdb output (2.82 KB, text/plain)
2011-07-19 10:51 UTC, Jean-Baptiste Faure
Details
valgrind output (4.09 KB, text/plain)
2011-07-19 11:03 UTC, Jean-Baptiste Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Voras 2011-06-17 15:18:23 UTC
Created attachment 48121 [details]
This document crashes LibreOffice on exit

A have a large collection of documents created with various versions of OpenOffice and LibreOffice (as their versions progressed...). The attached document crashes LibreOffice, but works fine in OOo 3.2.

how to repeat:

* Open attached document in LibreOffice 3.4 on Win 7.
* Exit LibreOffice by closing the window (i.e. cliek on the X button)
* Observe LibreOffice crashing.

This is not the only document I have which causes it to crash in this way, and I've observed the crash on both my desktop and my laptop.
Comment 1 tester8 2011-06-18 16:01:46 UTC
NOT reproduced with

Ubuntu 10.04.2 x86
LO 3.4

Windows specific?
Comment 2 Jean-Baptiste Faure 2011-06-19 09:56:12 UTC
Reproducible with LibO 3.4.1 rc1 on Ubuntu 10.04 x86_86 (with FR langpack).
In fact you know that LibO has crashed when you want to restart LibO and you get the restore screen.
No crash on XP with LibO 3.4.0
No crash on Ubuntu with LibO 3.3.3

Best regards. JBF
Comment 3 Petr Mladek 2011-06-20 10:42:42 UTC
Could you please get a backtrace?
Just follow the steps at http://wiki.documentfoundation.org/BugReport#How_to_get_backtrace_.28on_Linux.29

Could you please attach more documents that trigger the problem. I guess that it is a bit random and the other other documents could help to reproduce it here.


I am unable to reproduce it here on SLED11-SP1-x86_64 and SLED10-SP3-i586.

It is probably visible with more CPUs. It might be a problem with synchronization where the data structures are destroyed in a wrong order. It is annoying but it happens only on exit and does not affect the main function => reducing severity a bit.
Comment 4 Michael Meeks 2011-06-20 12:12:36 UTC
valgrind trace of open & close open openSUSE 11.4 shows nothing untoward vs. 3.4.0+ (for me)
Comment 5 Don't use this account, use tml@iki.fi 2011-06-21 00:58:50 UTC
Not reproducible for me with 3.4rc1 on WS2008R2 (= server version of Windows 7).
Comment 6 Rainer Bielefeld Retired 2011-06-28 04:53:27 UTC
NOT reproducible] with "LibreOffice 3.4.1RC1 - WIN7  Home Premium (64bit) German UI [OOO340m1 (Build:103)]", same good result with French UI.
Comment 7 Rainer Bielefeld Retired 2011-07-16 01:05:09 UTC
NOT reproducible with "LibreOffice 3.4.1  - WIN7  Home Premium (64bit) German UI [OOO340m1 (Build:103)]" 

NOT reproducible with Master "LibO-dev 3.4.5  – WIN7  Home Premium  (64bit) English UI 
[(Build ID:d337f79-a24c961-2865670-9752b71-7f8fd43
	2fdd60d-fd28b6a-fd7bf20-aa369cb-28da3fb
	6a9633a-931d089-ecd263f-c9b55e9-b31b807
	82ff335-599f7e9-bc6a545-1926fdf)]"

So no longer WIN bug.

Any new Linux results?
Comment 8 Michael Meeks 2011-07-18 02:28:21 UTC
Still no problems under Linux, we've done a large number of fixes in the .doc import filter in recent times in 3.4.x that may have fixed this.

So marking fixed.
Comment 9 Jean-Baptiste Faure 2011-07-18 05:31:54 UTC
For me the file still crashes LibreOffice 3.4.1, 3.4.2 rc1 and master under Ubuntu 10.04 x86_64.

In fact it seems that LibO has some difficulties with the option "Register-true" in page format and paragraph style. In the bugdoc the option is set to true and the line spacing for the reference paragraph style (style named "Text") is set to 105%. If I set the line spacing to 100% and keep Register-true there is no crash when closing the file. Same thing if I keep the line spacing to 105% and unset Register-true in page format. The crash occurs only if we have both, line spacing different from 100% and Register-true.

I thing this case should be deeper investigated.

Best regards. JBF
Comment 10 Rainer Bielefeld Retired 2011-07-18 05:42:29 UTC
@Jean-Baptiste Faure:
May be a strace log can help?

@Cédric:
Please feel free to reassign if it’s not your area or if provided information is not sufficient.
Comment 11 Michael Meeks 2011-07-18 07:47:19 UTC
Oh wow ! if you can reproduce it under Linux - that is wonderful.

First - can you run it inside gdb ? so find soffice.bin and:

gdb --args ./soffice.bin /path/to/my/file.doc
run
...
# make it crash however
thread apply all backtrace

and paste the output here - please install whatever debuginfo packages you can find first.

After that, a valgrind trace is extremely helpful:

valgrind ./soffice.bin /path/to/my/file.doc

and again attach the output.

Thanks ! :-)
Comment 12 Jean-Baptiste Faure 2011-07-19 10:51:11 UTC
Created attachment 49304 [details]
gdb output

Here is the output I got from the master running under gdb.

Probably the interesting part is:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffdc6ea404 in SwFrm::IsPageBodyFrm (this=0x7fffd6487258)
    at /home/jbf/LibO/code/clone/writer/sw/source/core/inc/layfrm.hxx:198
198	    return nType == FRMC_BODY && GetUpper()->IsPageFrm();


Best regards. JBF
Comment 13 Jean-Baptiste Faure 2011-07-19 11:03:29 UTC
Created attachment 49305 [details]
valgrind output

Valgrind output.

Hope this help. JBF
Comment 14 Jean-Baptiste Faure 2011-07-20 04:31:10 UTC
Complete gdb output:

jbf@tux-laptop:~/LibO/code/solver/350/unxlngx6.pro/installation/opt/program$ gdb --arg ./soffice.bin -env:UserInstallation=${MY_CONF} ~/Bureau/AsiaBSDCon2011.odt 
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jbf/LibO/code/solver/350/unxlngx6.pro/installation/opt/program/soffice.bin...done.
(gdb) run
Starting program: /home/jbf/LibO/code/solver/350/unxlngx6.pro/installation/opt/program/soffice.bin -env:UserInstallation=file:///home/jbf/.libreoffice/35/ /home/jbf/Bureau/AsiaBSDCon2011.odt
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffedd2c700 (LWP 3893)]
[New Thread 0x7fffe40d6700 (LWP 3894)]
[New Thread 0x7fffe38d5700 (LWP 3895)]
[Thread 0x7fffe40d6700 (LWP 3894) exited]
[New Thread 0x7fffe40d6700 (LWP 3896)]
[Thread 0x7fffe40d6700 (LWP 3896) exited]
[New Thread 0x7fffe40d6700 (LWP 3898)]
[New Thread 0x7fffdb497700 (LWP 3902)]
[Thread 0x7fffdb497700 (LWP 3902) exited]
[New Thread 0x7fffdb497700 (LWP 3903)]
[New Thread 0x7fffdaa4a700 (LWP 3904)]
[Thread 0x7fffdb497700 (LWP 3903) exited]
[New Thread 0x7fffdb497700 (LWP 3906)]
[New Thread 0x7fffd2656700 (LWP 3907)]
[Thread 0x7fffd2656700 (LWP 3907) exited]
[Thread 0x7fffdb497700 (LWP 3906) exited]
[New Thread 0x7fffdb497700 (LWP 3908)]
[New Thread 0x7fffd2656700 (LWP 3909)]
[New Thread 0x7fffcf72d700 (LWP 3910)]
[Thread 0x7fffcf72d700 (LWP 3910) exited]
[New Thread 0x7fffcf72d700 (LWP 3911)]
[New Thread 0x7fffcee8c700 (LWP 3912)]
[Thread 0x7fffcee8c700 (LWP 3912) exited]
[Thread 0x7fffcf72d700 (LWP 3911) exited]
[New Thread 0x7fffcf72d700 (LWP 3915)]
[Thread 0x7fffcf72d700 (LWP 3915) exited]
[New Thread 0x7fffcf72d700 (LWP 3916)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffd8c73404 in SwFrm::IsPageBodyFrm (this=0x7fffd1161258)
    at /home/jbf/LibO/code/clone/writer/sw/source/core/inc/layfrm.hxx:198
198	    return nType == FRMC_BODY && GetUpper()->IsPageFrm();
(gdb) thread apply all backtrace

Thread 18 (Thread 0x7fffcf72d700 (LWP 3916)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007ffff7b8a4d6 in osl_waitCondition (Condition=0x8f6570, pTimeout=<value optimized out>) at conditn.c:251
#2  0x00007fffe4e4a361 in osl::Condition::wait (this=0x7fffceec7250)
    at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/osl/conditn.hxx:84
#3  configmgr::Components::WriteThread::run (this=0x7fffceec7250)
    at /home/jbf/LibO/code/clone/libs-core/configmgr/source/components.cxx:199
#4  0x00007fffe4e4fa4a in threadFunc (param=0x8f6574) at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/osl/thread.hxx:188
#5  0x00007ffff7b8e1cc in osl_thread_start_Impl (pData=<value optimized out>) at thread.c:277
#6  0x00007ffff64729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ffff697370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fffd2656700 (LWP 3909)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ffff7b8a431 in osl_waitCondition (Condition=0x91c760, pTimeout=0x0) at conditn.c:287
#2  0x00007fffdc5bb6b7 in osl::Condition::wait (this=0x7fffcffc31d0)
    at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/osl/conditn.hxx:84
#3  GrammarCheckingIterator::DequeueAndCheck (this=0x7fffcffc31d0)
    at /home/jbf/LibO/code/clone/libs-core/linguistic/source/gciterator.cxx:617
#4  0x00007ffff7b8e1cc in osl_thread_start_Impl (pData=<value optimized out>) at thread.c:277
#5  0x00007ffff64729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff697370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fffdb497700 (LWP 3908)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fffe872b602 in ?? () from /usr/lib/libgthread-2.0.so.0
#2  0x00007fffe825c851 in ?? () from /lib/libglib-2.0.so.0
#3  0x00007fffe825c997 in g_async_queue_timed_pop () from /lib/libglib-2.0.so.0
#4  0x00007fffe82ac9c8 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fffe82aab84 in ?? () from /lib/libglib-2.0.so.0
#6  0x00007ffff64729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ffff697370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fffdaa4a700 (LWP 3904)):
#0  0x00007ffff6966f93 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fffe7fa8cba in ICEConnectionWorker () at /home/jbf/LibO/code/vcl/unx/generic/app/sm.cxx:681
#2  0x00007ffff7b8e1cc in osl_thread_start_Impl (pData=<value optimized out>) at thread.c:277
#3  0x00007ffff64729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007ffff697370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

---Type <return> to continue, or q <return> to quit---
Thread 6 (Thread 0x7fffe40d6700 (LWP 3898)):
#0  0x00007ffff6966f93 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=1000)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fffe7fc822d in x11::SelectionManager::dispatchEvent (this=0x7ffff7f07408, millisec=1000)
    at /home/jbf/LibO/code/vcl/unx/generic/dtrans/X11_selection.cxx:3739
#2  0x00007fffe7fc843e in x11::SelectionManager::run (pThis=<value optimized out>)
    at /home/jbf/LibO/code/vcl/unx/generic/dtrans/X11_selection.cxx:3777
#3  0x00007ffff7b8e1cc in osl_thread_start_Impl (pData=<value optimized out>) at thread.c:277
#4  0x00007ffff64729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007ffff697370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fffe38d5700 (LWP 3895)):
#0  0x00007ffff69742cd in accept () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ffff7b93e82 in osl_acceptPipe (pPipe=0x6d3000) at pipe.c:430
#2  0x00007ffff794c7fc in osl::Pipe::accept (this=0x7fffe42e69b8)
    at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/osl/pipe.hxx:141
#3  desktop::OfficeIPCThread::run (this=0x7fffe42e69b8)
    at /home/jbf/LibO/code/clone/libs-core/desktop/source/app/officeipcthread.cxx:654
#4  0x00007ffff794e27a in threadFunc (param=0xa) at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/osl/thread.hxx:188
#5  0x00007ffff7b8e1cc in osl_thread_start_Impl (pData=<value optimized out>) at thread.c:277
#6  0x00007ffff64729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007ffff697370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
---Type <return> to continue, or q <return> to quit---
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffedd2c700 (LWP 3893)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007ffff7bb5686 in rtl_cache_wsupdate_wait (arg=<value optimized out>) at alloc_cache.c:1408
#2  rtl_cache_wsupdate_all (arg=<value optimized out>) at alloc_cache.c:1552
#3  0x00007ffff64729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007ffff697370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fb9720 (LWP 3890)):
#0  0x00007fffd8c73404 in SwFrm::IsPageBodyFrm (this=0x7fffd1161258)
    at /home/jbf/LibO/code/clone/writer/sw/source/core/inc/layfrm.hxx:198
#1  SwFtnBossFrm::_NeighbourhoodAdjustment (this=0x7fffd1161258) at /home/jbf/LibO/code/sw/source/core/layout/ftnfrm.cxx:2823
#2  0x00007fffd8cd37e7 in SwFtnBossFrm::NeighbourhoodAdjustment (this=0x7fffcff66398)
    at /home/jbf/LibO/code/clone/writer/sw/source/core/inc/ftnboss.hxx:126
#3  SwLayoutFrm::Cut (this=0x7fffcff66398) at /home/jbf/LibO/code/sw/source/core/layout/wsfrm.cxx:1228
#4  0x00007fffd8c74717 in SwFtnFrm::Cut (this=<value optimized out>) at /home/jbf/LibO/code/sw/source/core/layout/ftnfrm.cxx:610
#5  0x00007fffd8d86133 in SwTxtFtn::DelFrms (this=<value optimized out>, pSib=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/txtnode/atrftn.cxx:493
#6  0x00007fffd8cb55d8 in ~SwCntntFrm (this=0x7fffd1146668, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/ssfrm.cxx:491
#7  0x00007fffd8d61bb8 in ~SwTxtFrm (this=0x7fffd1146668, __in_chrg=<value optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /home/jbf/LibO/code/sw/source/core/text/txtfrm.cxx:408
#8  0x00007fffd8cb4f07 in ~SwLayoutFrm (this=0x7fffd115e300, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/ssfrm.cxx:604
#9  0x00007fffd8c913ee in SwBodyFrm::~SwBodyFrm() ()
   from /home/jbf/LibO/code/solver/350/unxlngx6.pro/installation/opt/program/../basis-link/program/libswlo.so
#10 0x00007fffd8cb4f07 in ~SwLayoutFrm (this=0x7fffd1161190, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/ssfrm.cxx:604
#11 0x00007fffd8c4c073 in ~SwFtnBossFrm (this=0x7fffd1161190, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/clone/writer/sw/source/core/inc/ftnboss.hxx:57
#12 ~SwColumnFrm (this=0x7fffd1161190, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/colfrm.cxx:80
#13 0x00007fffd8cb4f07 in ~SwLayoutFrm (this=0x7fffd115e240, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/ssfrm.cxx:604
#14 0x00007fffd8c913ee in SwBodyFrm::~SwBodyFrm() ()
   from /home/jbf/LibO/code/solver/350/unxlngx6.pro/installation/opt/program/../basis-link/program/libswlo.so
#15 0x00007fffd8cb4f07 in ~SwLayoutFrm (this=0x7fffd115c0e0, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/ssfrm.cxx:604
#16 0x00007fffd8c8fc06 in ~SwFtnBossFrm (this=0x7fffd115c0e0, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/clone/writer/sw/source/core/inc/ftnboss.hxx:57
#17 ~SwPageFrm (this=0x7fffd115c0e0, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/pagechg.cxx:318
#18 0x00007fffd8cb4f07 in ~SwLayoutFrm (this=0x7fffd1ca1da8, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/ssfrm.cxx:604
---Type <return> to continue, or q <return> to quit---
#19 0x00007fffd8c8965d in ~SwRootFrm (this=0x7fffd1ca1da8, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/core/layout/newfrm.cxx:620
#20 0x00007fffd8f3b06d in boost::detail::sp_counted_base::release (this=0x7fffd1159070, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#21 ~shared_count (this=0x7fffd1159070, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/boost/smart_ptr/detail/shared_count.hpp:217
#22 ~shared_ptr (this=0x7fffd1159070, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/boost/smart_ptr/shared_ptr.hpp:169
#23 ~ViewShell (this=0x7fffd1159070, __in_chrg=<value optimized out>) at /home/jbf/LibO/code/sw/source/core/view/vnew.cxx:344
#24 0x00007fffd9230e9b in ~SwWrtShell (this=0x7fffd1159070, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/ui/wrtsh/wrtsh1.cxx:1754
#25 0x00007fffd917ca12 in ~SwView (this=0x7fffd1d03410, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sw/source/ui/uiview/view.cxx:1075
#26 0x00007ffff54f9be3 in SfxViewFrame::ReleaseObjectShell_Impl (this=0x7fffd1c486a8)
    at /home/jbf/LibO/code/sfx2/source/view/viewfrm.cxx:1097
#27 0x00007ffff54fcf94 in ~SfxViewFrame (this=0x7fffd1c486a8, __in_chrg=<value optimized out>)
    at /home/jbf/LibO/code/sfx2/source/view/viewfrm.cxx:1493
#28 0x00007ffff54f9033 in SfxViewFrame::Close (this=0x7fffd1c486a8) at /home/jbf/LibO/code/sfx2/source/view/viewfrm.cxx:1152
#29 0x00007ffff54d78b3 in SfxFrame::DoClose_Impl (this=0x7fffd1cbedf8) at /home/jbf/LibO/code/sfx2/source/view/frame.cxx:185
#30 0x00007ffff54f0f34 in SfxBaseController::dispose (this=<value optimized out>)
    at /home/jbf/LibO/code/sfx2/source/view/sfxbasecontroller.cxx:1076
#31 0x00007fffe014f1d0 in framework::Frame::setComponent (this=0x7fffdc4ef838, xComponentWindow=..., xController=...)
    at /home/jbf/LibO/code/framework/source/services/frame.cxx:1411
---Type <return> to continue, or q <return> to quit---
#32 0x00007fffe007d460 in framework::CloseDispatcher::implts_establishBackingMode (this=<value optimized out>)
    at /home/jbf/LibO/code/framework/source/dispatch/closedispatcher.cxx:568
#33 0x00007fffe007f4d8 in framework::CloseDispatcher::impl_asyncCallback (this=0x7fffcff66d38)
    at /home/jbf/LibO/code/framework/source/dispatch/closedispatcher.cxx:415
#34 0x00007fffe007fbab in framework::CloseDispatcher::dispatchWithNotification (this=0x7fffcff66d38, 
    aURL=<value optimized out>, lArguments=..., xListener=<value optimized out>)
    at /home/jbf/LibO/code/framework/source/dispatch/closedispatcher.cxx:249
#35 0x00007fffcddf4279 in framework::DispatchHelper::executeDispatch (this=0x7fffe2679318, 
    xDispatchProvider=<value optimized out>, sURL=<value optimized out>, sTargetFrameName=<value optimized out>, 
    nSearchFlags=<value optimized out>, lArguments=...) at /home/jbf/LibO/code/framework/source/services/dispatchhelper.cxx:170
#36 0x00007fffe00da396 in framework::LayoutManager::MenuBarClose (this=<value optimized out>)
    at /home/jbf/LibO/code/framework/source/layoutmanager/layoutmanager.cxx:2694
#37 0x00007ffff35d0ab8 in Link::Call (pWindow=<value optimized out>, nEvent=<value optimized out>, pEvent=0x7fffce19c970)
    at /home/jbf/LibO/code/solver/350/unxlngx6.pro/inc/tools/link.hxx:140
#38 ImplHandleUserEvent (pWindow=<value optimized out>, nEvent=<value optimized out>, pEvent=0x7fffce19c970)
    at /home/jbf/LibO/code/vcl/source/window/winproc.cxx:2001
#39 ImplWindowFrameProc (pWindow=<value optimized out>, nEvent=<value optimized out>, pEvent=0x7fffce19c970)
    at /home/jbf/LibO/code/vcl/source/window/winproc.cxx:2573
#40 0x00007fffe7f9b0a8 in SalFrame::CallCallback (this=0x7ffff7f13a08) at /home/jbf/LibO/code/vcl/inc/salframe.hxx:294
#41 SalDisplay::DispatchInternalEvent (this=0x7ffff7f13a08) at /home/jbf/LibO/code/vcl/unx/generic/app/saldisp.cxx:2308
#42 0x00007fffea616b00 in GtkXLib::userEventFn (data=<value optimized out>)
    at /home/jbf/LibO/code/vcl/unx/gtk/app/gtkdata.cxx:883
#43 0x00007fffe82818c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#44 0x00007fffe8285748 in ?? () from /lib/libglib-2.0.so.0
#45 0x00007fffe82858fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#46 0x00007fffea61695d in GtkXLib::Yield (this=0x7ffff7f408c8, bWait=true, bHandleAllCurrentEvents=<value optimized out>)
    at /home/jbf/LibO/code/vcl/unx/gtk/app/gtkdata.cxx:935
#47 0x00007ffff3326141 in ImplYield (i_bAllEvents=64) at /home/jbf/LibO/code/vcl/source/app/svapp.cxx:453
#48 Application::Yield (i_bAllEvents=64) at /home/jbf/LibO/code/vcl/source/app/svapp.cxx:487
#49 0x00007ffff3326217 in Application::Execute () at /home/jbf/LibO/code/vcl/source/app/svapp.cxx:430
#50 0x00007ffff792962b in desktop::Desktop::Main (this=0x7fffffffe0e0)
    at /home/jbf/LibO/code/clone/libs-core/desktop/source/app/app.cxx:1912
#51 0x00007ffff332aea9 in ImplSVMain () at /home/jbf/LibO/code/vcl/source/app/svmain.cxx:181
#52 0x00007ffff332af35 in SVMain () at /home/jbf/LibO/code/vcl/source/app/svmain.cxx:218
#53 0x00007ffff794ea95 in soffice_main () at /home/jbf/LibO/code/clone/libs-core/desktop/source/app/sofficemain.cxx:68
#54 0x0000000000400eeb in sal_main (argc=<value optimized out>, argv=<value optimized out>) at main.c:36
#55 main (argc=<value optimized out>, argv=<value optimized out>) at main.c:35
(gdb) continue
Continuing.
[Thread 0x7fffcf72d700 (LWP 3916) exited]
[Thread 0x7fffd2656700 (LWP 3909) exited]
[Thread 0x7fffdb497700 (LWP 3908) exited]
[Thread 0x7fffdaa4a700 (LWP 3904) exited]
[Thread 0x7fffe40d6700 (LWP 3898) exited]
[Thread 0x7fffe38d5700 (LWP 3895) exited]
[Thread 0x7fffedd2c700 (LWP 3893) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)

Best regards. JBF
Comment 15 Caolán McNamara 2011-11-14 07:50:58 UTC
I can't reproduce this with master or 3-4 on x86_64 Linux under valgrind. Does this problem still persist ? Some of these layout things are hard to track down given different sizes of text depending on available fonts, but mention of SwFtnFrm makes me *hope* that this is a duplicate of bug #39510 which was fixed by http://cgit.freedesktop.org/libreoffice/writer/commit/?h=libreoffice-3-4&id=f8f5d96666bff5051cc88d06b10d855548a441de
Comment 16 Caolán McNamara 2011-11-14 07:58:15 UTC
@Björn: Think this might be a duplicate of #39510 ?
Comment 17 Ivan Voras 2011-11-14 08:52:38 UTC
This is the O.P. - just tried it with LO 3.4.3 on Windows, it still crashes when closing the document. It doesn't matter if the document is opened as read-only or for editing.
Comment 18 Caolán McNamara 2011-11-14 09:05:11 UTC
caolan->Ivan:

Assuming I'm reading http://cgit.freedesktop.org/libreoffice/writer/log/?h=libreoffice-3-4 and http://cgit.freedesktop.org/libreoffice/writer/log/?h=libreoffice-3-4-3 right, the footnote fix would only be in >= libreoffice-3.4.4.1. Is 3.4.4 (available for download now) go/no-go on this ?
Comment 19 Björn Michaelsen 2011-11-14 11:35:36 UTC
@Caolán: It seems to be very close related.

On Ubuntu/Debian, that hotfix is in 3.4.3-3, upstream has it since 3.4.4.
Comment 20 Ivan Voras 2011-11-14 11:38:47 UTC
Tried it in LO 3.4.4 on Windows - apparently it doesn't crash on the documents I've tried.
Comment 21 Björn Michaelsen 2011-11-14 11:42:06 UTC
resolving as dupe then, @Caolán: thanks for the heads up!

*** This bug has been marked as a duplicate of bug 39510 ***
Comment 22 Caolán McNamara 2011-11-15 02:11:02 UTC
score!