To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=84451
                 Issue #|84451
                 Summary|Help Find crash
               Component|utilities
                 Version|680m238
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|ab
             Reported by|sb





------- Additional comments from [EMAIL PROTECTED] Tue Dec 11 09:05:53 +0000 
2007 -------
SRC680m238 unxsoli4.pro soffice "Help - OpenOffice.org Help - Find", entering
"f" as "Search term" and pressing "Find" leads to crash

---8<---
[EMAIL PROTECTED] ([EMAIL PROTECTED]) 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: [EMAIL PROTECTED]
=>[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.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to