[Xapian-tickets] [Xapian] #448: Allow usage of custom stemmers
Xapian
nobody at xapian.org
Tue Jun 22 09:38:50 BST 2010
#448: Allow usage of custom stemmers
-------------------------+--------------------------------------------------
Reporter: esizikov | Owner: olly
Type: enhancement | Status: reopened
Priority: normal | Milestone: 1.2.1
Component: Library API | Version: 1.0.17
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking:
-------------------------+--------------------------------------------------
Comment(by richard):
I suspect you weren't seeing the SEGV lower down purely by chance, because
the memory in use had been freed but not yet overwritten.
I've applied a change (r14739) which fixes this problem, for python at
least. The fix is the same as numerous other such fixes in
python/extra.i; for python subclasses of Director classes, there are two
objects: the python object, and the C++ Director subclass. The reference
being kept automatically is to the C++ Director subclass, so we need to
take extra steps to keep a reference to the Python subclass. Ideally,
we'd make the C++ Director subclass keep a reference to the corresponding
Python subclass automatically, but I don't know how to do that, so we have
the set of hacks in extra.i to do the equivalent explicitly.
I'm not sure whether this is a problem in other languages - it may be that
SWIG is setting up the references appropriately automatically, but we
should really write tests to check.
--
Ticket URL: <http://trac.xapian.org/ticket/448#comment:36>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list