Florent Solt wrote: > I have an important segfault when I create the index (via > Ferret::Index::FieldInfos#create_index). > I decided to run the tests, this is what I have : > > $> ruby test_all.rb > Loading once > Loaded suite test_all > Started > ....................EEEEEEEE./unit/../unit/index/../../unit/store/../../unit/analysis/../../unit/utils/../../unit/query_parser/../../unit/search/tc_filter.rb:11: > [BUG] Segmentation fault > ruby 1.8.5 (2006-12-04) [i686-linux] > > Aborted > > > Dave, any idea ?
After a few tests, it seems that this segfault is triggered when Ferret is compiled with GCC 4.1.*, _without_ -fstack-protector. Some Linux distributions (like Ubuntu) provide GCC with -fstack-protector enabled by default, hence the bug is triggered when compiling with -fno-stack-protector. This is why it looks like a distribution-dependant bug. I didn't investigate further, but it looks like there's a stack overflow somewhere. -- Maz -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

