Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#221 closed defect (released)

Search::Xapian: QueryParserError and core dump on specific search string

Reported by: Adam Sjøgren Owned by: New Bugs
Priority: normal Milestone:
Component: QueryParser Version: 1.0.4
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: Linux

Description

If create a query for:

something other* this AND more

where FLAG_BOOLEAN and FLAG_WILDCARD is turned on, I get an QueryParserError and a core dump.

I will try to attach a minimal script that exhibits the behaviour on my Ubuntu amd64 machine (xapian+Search::Xapian 1.0.4-2 backported from Debian unstable), which outputs:

'something other* this more' [ok] 'other* this AND more' [ok] 'something other this AND more' [ok] 'something other* this more' [ok] 'something other* this AND more' terminate called after throwing an instance of 'Xapian::QueryParserError' Aborted (core dumped)

Attachments (1)

test (633 bytes ) - added by Adam Sjøgren 16 years ago.
Minimal test-script that coredumps

Download all attachments as: .zip

Change History (4)

by Adam Sjøgren, 16 years ago

Attachment: test added

Minimal test-script that coredumps

comment:1 by Olly Betts, 16 years ago

Resolution: fixed
Status: newclosed

The XS wrapper is trying to catch "const char*" which QueryParser::operator() stopped throwing in Xapian 1.0.0. It now throws QueryParserError, so I've fixed the exception handler in the XS wrapper and added a regression test.

comment:2 by Adam Sjøgren, 16 years ago

Sweet; thanks!

comment:3 by Olly Betts, 16 years ago

Operating System: Linux
Resolution: fixedreleased
Note: See TracTickets for help on using tickets.