[Xapian-devel] xapian csharp bindings crash

Olly Betts olly at survex.com
Mon Jun 27 06:33:12 BST 2011


On Sun, Jun 26, 2011 at 10:07:54AM +0200, Greg wrote:
> On Sun, Jun 26, 2011 at 8:28 AM, Olly Betts <olly at survex.com> wrote:
> > What version of Xapian are you using here?
> 
> The version is 1.2.6, but it was crashing with 1.2.5 as well I just
> didn't capture the dumps then.

Thanks.
 
> > Do you know if that's a plausible pointer value to a C++ heap
> > allocated object in your environment?
> 
> I don't know what do you mean by that

On most platforms, the heap usually starts at a particular address.  I'm
just wondering if that's a garbage value, or a stale pointer to an
object which has already been deallocated, or similar.

> how should I check if the pointer is valid?

Sorry, I've no idea how to do that on your platform.  Though if you're
getting an exception trying to read from it, it's not looking valid at
that moment at least.

> I'm not certain as to what seems to be the problem, I've printed out
> the stack and the search that's being done isn't a special case trying
> to call it again doesn't reproduce the problem, is there anything else
> I could do to find the problem?

If this is a search, why is it calling TermGenerator.SetFlags()?  That's
an index-time thing.

Perhaps you should show us the code.

Cheers,
    Olly



More information about the Xapian-devel mailing list