Forum: Ferret Segmentation fault in Index::Index#add_document

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E19d43a64530343b81ddc6b3a4817cd3?d=identicon&s=25 maz (Guest)
on 2007-01-29 18:05

Here's the code that segfaults:

I could have submitted a patch, but I'm not sure
whether this segfault is caused by Ferret or Ruby.

This seems to be triggered only when combining
a split and a gsub on an empty string of the returned
array, and trying to insert it directly into the

However, there's no problem when you duplicate or
transform the string.

Rift Technologies -
28c237c0c414b644082bfcde4e42b309?d=identicon&s=25 John Leach (Guest)
on 2007-01-29 18:56
(Received via mailing list)

reproduced here on Ubuntu Edgy Intel.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211037504 (LWP 6193)]
0xb79b878e in mb_std_advance_to_start (ts=0x816ae20) at analysis.c:156
156     {
(gdb) bt
#0  0xb79b878e in mb_std_advance_to_start (ts=0x816ae20) at

Have you reported this on the bug tracker?

E19d43a64530343b81ddc6b3a4817cd3?d=identicon&s=25 maz (Guest)
on 2007-01-29 23:25
John Leach wrote:
> Have you reported this on the bug tracker?

Done, thanks.
I still think it's probably a Ruby bug.

Rift Technologies -
This topic is locked and can not be replied to.