Issue 84451 - Help Find crash
Summary: Help Find crash
Status: CLOSED DUPLICATE of issue 84151
Alias: None
Product: utilities
Classification: Unclassified
Component: code (show other issues)
Version: 680m238
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ab
QA Contact: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-11 09:05 UTC by Stephan Bergmann
Modified: 2007-12-18 16:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Stephan Bergmann 2007-12-11 09:05:53 UTC
SRC680m238 unxsoli4.pro soffice "Help - OpenOffice.org Help - Find", entering
"f" as "Search term" and pressing "Find" leads to crash

---8<---
t@1 (l@1) signal SEGV (no mapping at the fault address) in
xmlsearch::db::DictBlock::setBlockNumbers at line 253 in file "BtreeDict.cxx"
  253                                           blocks[ entryID(e) ] = getNum();
(dbx) where
current thread: t@1
=>[1] xmlsearch::db::DictBlock::setBlockNumbers(this = 0x89e58b8, blocks =
0x88f5de0), line 253 in "BtreeDict.cxx"
  [2] BlockProcessorImpl::process(this = 0x8044380, block = 0x89e58b8), line 382
in "BtreeDict.cxx"
  [3] xmlsearch::db::BlockManager::mapBlocks(this = 0x8044f04, blProc = CLASS),
line 222 in "BlockManager.cxx"
  [4] xmlsearch::db::BtreeDict::BtreeDict(this = 0x8044f04, indexAccessor =
CLASS), line 417 in "BtreeDict.cxx"
  [5] xmlsearch::qe::XmlIndex::XmlIndex(this = 0x8044ef4, indexDir = CLASS),
line 87 in "XmlIndex.cxx"
  [6] xmlsearch::qe::QueryProcessor::QueryProcessor(this = 0x8044ef4, installDir
= CLASS), line 60 in "QueryProcessor.cxx"
  [7] chelp::ResultSetForQuery::ResultSetForQuery(this = 0xf3224338, xMSF =
CLASS, xProvider = CLASS, nOpenMode = 0, seq = CLASS, seqSort = CLASS,
aURLParameter = CLASS, pDatabases = 0x866e878), line 163 in "resultsetforquery.cxx"
  [8] ResultSetForQueryFactory::createResultSet(this = 0x88f47d0), line 349 in
"content.cxx"
  [9] chelp::DynamicResultSet::initStatic(this = 0xf326c308), line 91 in
"resultset.cxx"
  [10] 0xfd7bc627(0xf326c308, 0x1), at 0xfd7bc627
  [11] ucbhelper::ResultSetImplHelper::getStaticResultSet(0x80459c8,
0xf326c308), at 0xfd7bbd69
  [12] 0xf7ae28db(0x8045c0c, 0x8045bf0), at 0xf7ae28db
  [13] 0xf78e1136(0x8714e18, 0x87151bc), at 0xf78e1136
  [14] 0xf78e0ec8(0x8714e18, 0x87151bc), at 0xf78e0ec8
  [15] Control::ImplCallEventListenersAndHandler(0x87151bc, 0x44e, 0x87152d0,
0x87151bc), at 0xfe47b819
  [16] Button::Click(0x87151bc), at 0xfe4708fb
  [17] PushButton::Tracking(0x87151bc, 0x8045cfc), at 0xfe474298
  [18] Window::EndTracking(0x87151bc, 0x0), at 0xfe46ca84
  [19] 0xfe467ef6(0x86f8640, 0x2, 0x0, 0x118, 0x69, 0xc8631abc, 0x1, 0x3), at
0xfe467ef6
  [20] 0xfe46adee(0x86f8640, 0x86f88a0, 0x4, 0x80460c4), at 0xfe46adee
  [21] 0xfcc7e4a2(0x86f8e28, 0x8181738), at 0xfcc7e4a2
  [22] _gtk_marshal_BOOLEAN__BOXED(0x80d8b58, 0x907d0, 0x610, 0x0, 0x81779f0,
0x0), at 0xfa2ee84c
(dbx) print e
e = 1682
---8<---

where that debug data is generated after applying patch

---8<---
Index: source/cxxhelp/provider/resultsetforquery.cxx
===================================================================
RCS file: /cvs/util/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx,v
retrieving revision 1.14
diff -u -r1.14 resultsetforquery.cxx
--- source/cxxhelp/provider/resultsetforquery.cxx
+++ source/cxxhelp/provider/resultsetforquery.cxx
@@ -122,6 +122,9 @@
             }
                        currentQuery.push_back( toliterate );
                        queryList.push_back( currentQuery );
+            if (idx == query.getLength()) {
+                break;
+            }
                        query = query.copy( 1 + idx );
                }
        }
---8<---

to avoid a (harmless?) misuse of rtl::OUString::copy, and building
libucpchelp1.so with debug=x.
Comment 1 Mechtilde 2007-12-11 11:05:06 UTC
It seems to be a duplicate of 84151
http://www.openoffice.org/issues/show_bug.cgi?id=84151
Comment 2 ab 2007-12-17 10:12:07 UTC
+1, -> duplicate


*** This issue has been marked as a duplicate of 84151 ***
Comment 3 Mechtilde 2007-12-18 16:28:57 UTC
closed duplicate