[sword-devel] CLucene crash

Karl Kleinpaste karl at kleinpaste.org
Sat Jun 25 14:49:15 MST 2011


A Xiphos bug report...
   https://sourceforge.net/tracker/?func=detail&aid=3291274&group_id=5528&atid=105528
...observes that searching for "[est]" in FreJND, without specifying
regular expression, causes Xiphos to crash.

He's right:

#0  0x0000003adac74749 in lucene_tcslwr(wchar_t*) () from /usr/lib64/libclucene.so.0
#1  0x0000003adacadbd0 in lucene::queryParser::QueryParserBase::GetRangeQuery(wchar_t const*, wchar_t*, wchar_t*, bool) () from /usr/lib64/libclucene.so.0
#2  0x0000003adacae183 in lucene::queryParser::QueryParserBase::ParseRangeQuery(wchar_t const*, wchar_t*, bool) () from /usr/lib64/libclucene.so.0
#3  0x0000003adacad237 in lucene::queryParser::QueryParser::MatchTerm(wchar_t const*) ()
   from /usr/lib64/libclucene.so.0
#4  0x0000003adacad5ec in lucene::queryParser::QueryParser::MatchClause(wchar_t const*) ()
   from /usr/lib64/libclucene.so.0
#5  0x0000003adacad47e in lucene::queryParser::QueryParser::MatchQuery(wchar_t const*) ()
   from /usr/lib64/libclucene.so.0
#6  0x0000003adacad777 in lucene::queryParser::QueryParser::parse(lucene::util::Reader*) ()
   from /usr/lib64/libclucene.so.0
#7  0x0000003adacad89e in lucene::queryParser::QueryParser::parse(wchar_t const*) ()
   from /usr/lib64/libclucene.so.0
#8  0x0000003adacada14 in lucene::queryParser::QueryParser::parse(wchar_t const*, wchar_t const*, lucene::analysis::Analyzer*) () from /usr/lib64/libclucene.so.0
#9  0x0000003ada89ae62 in sword::SWModule::search(char const*, int, int, sword::SWKey*, bool*, void (*)(char, void*), void*) () from /usr/lib64/libsword-1.6.2.so
#10 0x0000000000491b94 in BackEnd::do_module_search (this=0x4b20450, module_name=
    0x6fa4f8 "FreJND", search_string=0x3d96cd0 "[est]", search_type=-4, search_params=2, is_dialog=
    0) at ../src/backend/sword_main.cc:1017

Using the shorter string "[est" does not crash.

I have no idea what we could suggest.  If there is a workaround, I'm all
ears, but for now the report is simply closed.



More information about the sword-devel mailing list