Summary: | VIEWING: Crash when page preview after <f4> (data sources) | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Rainer Bielefeld Retired <LibreOffice> |
Component: | Writer | Assignee: | Andras Timar <timar74> |
Status: | CLOSED FIXED | ||
Severity: | major | CC: | fridrich.strba, libreoffice2, LibreOffice, lo_bugs, serval2412, timar74, tlillqvist |
Priority: | medium | Keywords: | regression |
Version: | 3.4.1 RC1 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Windows (All) | ||
Whiteboard: | target:3.5.0 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 37361 | ||
Attachments: |
typescript of gdb session
Proposition of patch |
Description
Rainer Bielefeld Retired
2011-12-21 23:03:21 UTC
*** Bug 44229 has been marked as a duplicate of this bug. *** Bug 44040 has a bugreport.txt as attachment Created attachment 55018 [details]
typescript of gdb session
I have managed to provoke a SIGABRT in this situation. Running on
ubuntu-natty with LibreOffice very lightly hacked from commit id
4097499 (pulled 2011-12-08); configuration options ...
--disable-mozilla
--enable-symbols
--enable-dbgutil
--enable-crashdump
--disable-build-mozilla
--enable-ext-postgresql-sdbc
Running under gdb, I get messages ...
/usr/include/c++/4.5/debug/safe_iterator.h:238:error: attempt to decrement
a dereferenceable (start-of-sequence) iterator.
Objects involved in the operation:
iterator "this" @ 0x0xbfffe200 {
type = N11__gnu_debug14_Safe_iteratorISt17_Rb_tree_iteratorISt4pairIKtN5dbaui20SbaTableQueryBrowser15ExternalFeatureEEENSt7__debug3mapItS6_St4lessItESaIS7_EEEEE (mutable iterator);
state = dereferenceable (start-of-sequence);
references sequence with type `NSt7__debug3mapItN5dbaui20SbaTableQueryBrowser15ExternalFeatureESt4lessItESaISt4pairIKtS3_EEEE' @ 0x0xbfffe200
}
Program received signal SIGABRT, Aborted.
0x0012e416 in __kernel_vsyscall ()
Attaching typescript of the session, including backtrace.
I see this bug on Windows. I do not see it on Linux. Andras, could you have a look at it? I can't reproduce on openSUSE here. Created attachment 55580 [details]
Proposition of patch
I updated the iterator management which seemed buggy. I've got no more crash now but perhaps I missed something.
Here is the thread on dev mailing list : http://nabble.documentfoundation.org/PATCH-proposed-fix-for-fdo-44040-seems-iterator-issue-only-tp3659513p3659513.html Same crash with Version 3.5.0 RC1 Fixed on master with commit 82a061079ae03f841713fd26c809d45621a59836 Fixed on 3.5 branch with commit 4d60e1a0832dafe05b4eecee7c9607bbd2ce1b07 (so should be in 3.5.0 rc2) The patch I had proposed worked only with C++11 (http://en.wikipedia.org/wiki/C%2B%2B11) whereas C++98 must be supported (see http://nabble.documentfoundation.org/PATCH-proposed-fix-for-fdo-44040-seems-iterator-issue-only-tp3659513p3663825.html). So Caolán proposed this new patch and I tested it ok (there was just an extra semicolon :-p) Fixed for me in 3.5.0 RC2 thx No crash with "LibreOffice 3.5.0 RC2 German UI/Locale [Build-ID: e371a95-bf68a13-5a1aa2b-d3c1ae9-b938258] on German WIN7 Home Premium (64bit) |