I’m using ferret and running into troubles with it seg faulting during
searches. The index I’m searching is static and is only updated in an
offline way once every couple weeks.
The segfault isn’t deterministically reproducible, but if I hammer
ferret hard enough I can reliably get it to crash. The problem seems to
have something to do with how memory is shared between Ruby and Ferret’s
C code, for if I disable Ruby garbage collection the crashes go away.
I can try to provide a repro, but I think it might be faster to do some
of the initial investigation on my own, even though I have no experience
with Ferret internals. Can someone give me some pointers on debugging
ferret? I assume I need to build a debug version out of SVN, but do I
need debug version or ruby as well?