Giter VIP home page Giter VIP logo

ferret's Introduction

Ferret

Ferret is an information retrieval library in the same vein as Apache Lucene. Originally it was a full port of Lucene but it now uses it's own file format and indexing algorithm although it is still very similar in many ways to Lucene. Everything you can do in Lucene you should be able to do in Ferret.

Contents

c/ Ferret is written in C for speed. The actual C code should be fairly easy to use in an application or create bindings to a language other than Ruby.

ruby/ This directory contains the Ruby bindings and tests. See ruby/README.md for information on installing Ferret's Ruby bindings

Contributions

To contribute code, please contact me at [email protected] or submit a ticket.

Authors

Dave Balmain

Acknowledgements

The Apache Software Foundation (Doug Cutting and friends) Original Apache Lucene. There have also been many other contributers to Ferret. I will start to record them on the Ferret website.

Jens Krämer for keeping this project alive.

License

Ferret is available under an MIT-style license.

See MIT-LICENSE

ferret's People

Contributors

blackwinter avatar davidegrayson avatar dbalmain avatar dustin avatar ehabkost avatar jkraemer avatar sdsykes avatar voxik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ferret's Issues

sighandler_crash after system update

Hi,
on quite an old OS X system (10.6.8) with Ruby 1.8.7 we had a system update last week.
After that search requests with Ferret don't work that well anymore.
After indexing searches get back id's with score of 1.0, where trying to access with that id leads to this error:

StandardError: Exiting on signal %s (%d) occured at <global.c>:423 in sighandler_crash
SIGSEGV
    from /Library/Ruby/Gems/1.8/gems/ferret-0.11.8.5/lib/ferret/index.rb:460:in `[]'
    from /Library/Ruby/Gems/1.8/gems/ferret-0.11.8.5/lib/ferret/index.rb:460:in `[]'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    from /Library/Ruby/Gems/1.8/gems/ferret-0.11.8.5/lib/ferret/index.rb:452:in `[]'

Other id's still work and deliver correct response.
We have reinstalled ferret 0.11.8.5 with no luck.
In our ruby code we rescue now these errors for still getting back a correct response, but we would still like to know how this problem could be solved.
Thank you!

EDIT: When i perform the search on my local machine with same index, ruby, etc. the same error happens but with this error message:

RangeError: integer 2190371140 too big to convert to `int'
    from /Users/valley/.rvm/gems/ruby-1.8.7-head@xy/gems/ferret-0.11.8.5/lib/ferret/index.rb:460:in `[]'
    from /Users/valley/.rvm/gems/ruby-1.8.7-head@xy/gems/ferret-0.11.8.5/lib/ferret/index.rb:460:in `[]'
    from /Users/valley/.rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    from /Users/valley/.rvm/gems/ruby-1.8.7-head@xy/gems/ferret-0.11.8.5/lib/ferret/index.rb:452:in `[]'

Official repo

Hi - the Rubygems page for the ferret gem links to this fork. Is this the official repo for it then? I see the upstream is still committing and its README seems a little more up to date (although not by a lot...)

If it is - is it still under maintenance?

test segfault on arm64: test_key_used_for_id_field

Hi,

the test test_key_used_for_id_field is segfaulting on arm64:

RUBYLIB=. GEM_PATH= ruby2.5 debian/ruby-tests.rb
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:467: warning: key "0" is duplicated and overwritten on line 468
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:469: warning: key "1" is duplicated and overwritten on line 470
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:482: warning: key "0" is duplicated and overwritten on line 483
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:507: warning: key "0" is duplicated and overwritten on line 508
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:507: warning: key "0" is duplicated and overwritten on line 511
Loading once
Loaded suite debian/ruby-tests
Started
..................................................N
===============================================================================
Notification: <IndexTest#test_index_key_delete_batch0> was redefined [test_index_key_delete_batch0(IndexTest)]
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:531:in `<class:IndexTest>'
===============================================================================
...Stack trace:
Not available
E
===============================================================================
Error: test_key_used_for_id_field(IndexTest):
  StandardError: Signal occurred at <global.c>:422 in sighandler_crash
  Exiting on signal SIGSEGV (11)
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:202:in `new'
/tmp/autopkgtest.emjxzb/build.gxX/src/test/unit/index/tc_index.rb:202:in `test_key_used_for_id_field'
     199:   def test_key_used_for_id_field
     200:     fs_path = File.expand_path(File.join(File.dirname(__FILE__), '../../temp/fsdir'))
     201: 
  => 202:     index = Index.new(:path => fs_path, :key => :my_id, :create => true)
     203:     [
     204:       {:my_id => "three", :id => "me"},
     205:       {:my_id => "one", :field2 => "three"},
===============================================================================

Contents of debian/ruby-tests.rb are:

require 'test/unit'

Dir.glob("test/unit/t[cs]*.rb").each { |f| require f }

I can reproduce this by just:

export RUBYLIB=.
ruby2.5 debian/ruby-tests.rb

Under gdb, that gives me (just the top most 4 stack traces, the full stack has 85 frames):

#0  0x0000ffffbf5a0744 in generic_ivar_get (undef=52, id=85987, obj=<optimized out>) at variable.c:990
        iv_index_tbl = <error reading variable iv_index_tbl (Cannot access memory at address 0x0)>
        index = 187649994730992
        ivtbl = 0xaaaaab472df0
        ivtbl = <optimized out>
        iv_index_tbl = <optimized out>
        index = <optimized out>
        ret = <optimized out>
#1  rb_ivar_lookup (obj=<optimized out>, id=id@entry=85987, undef=undef@entry=52) at variable.c:1205
        val = <optimized out>
        ptr = <optimized out>
        iv_index_tbl = <optimized out>
        len = <optimized out>
        index = 187649994730992
#2  0x0000ffffbf5a15e0 in rb_ivar_lookup (undef=52, id=85987, obj=<optimized out>) at variable.c:1184
        val = <optimized out>
        len = <optimized out>
        ptr = <optimized out>
        iv_index_tbl = <optimized out>
        index = <optimized out>
        val = <optimized out>
        ptr = <optimized out>
        iv_index_tbl = <optimized out>
        len = <optimized out>
        index = <optimized out>
#3  rb_ivar_get (obj=<optimized out>, id=85987) at variable.c:1214
        iv = <optimized out>
#4  0x0000ffffbeb1c12c in frb_fsdir_new (argc=<optimized out>, argv=<optimized out>, klass=<optimized out>) at r_store.c:375
        ref_cnt = <optimized out>
        self = 187649991850960
        rpath = 187649996041280
        rcreate = <optimized out>
        store = 0xaaaaab697d10
        create = <optimized out>
        verify = <optimized out>

If I change the test_key_used_for_id_field test in test/unit/index/tc_index.rb to use another directory, then the test passes, but that is probably just masking the bug:

-    fs_path = File.expand_path(File.join(File.dirname(__FILE__), '../../temp/fsdir'))
+    fs_path = File.expand_path(File.join(File.dirname(__FILE__), '../../temp/fsdir2'))

shared library call exit

Hi,

During packaging ferret for Fedora, I was running rpmlint tool against it and I receive following warning:

rubygem-ferret.x86_64: W: shared-lib-calls-exit /usr/lib64/gems/exts/ferret-0.11.8.4/lib/ferret_ext.so exit@GLIBC_2.2.5
This library package calls exit() or _exit(), probably in a non-fork()
context. Doing so from a library is strongly discouraged - when a library
function calls exit(), it prevents the calling program from handling the
error, reporting it to the user, closing files properly, and cleaning up any
state that the program has. It is preferred for the library to return an
actual error code and let the calling program decide how to handle the
situation.

Would you mind to check if the described symptoms might be an issue? Thank you.

Unable to compile ferret native extensions in Windows environment

I am trying to install ferret to support treat but am unable to do so as it throws multiple compile-time errors. I have tried it with various gem install commands with platform and libraries provided. I also tried it with the gem-compiler with the same results.

Are you supporting this gem and can you tell me why the compile is failing? Environment and errors follow. Thanks.

The environment is:

RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.7
  - RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [i386-mingw32]
  - INSTALLATION DIRECTORY: D:/BitNami/rubystack-1.9.3-12/ruby/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: D:/BitNami/rubystack-1.9.3-12/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: D:/BitNami/rubystack-1.9.3-12/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - D:/BitNami/rubystack-1.9.3-12/ruby/lib/ruby/gems/1.9.1
     - C:/Users/Richard/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - https://rubygems.org/

The errors are:

D:\BitNami\rubystack-1.9.3-12\projects\ferret>gem fetch ferret --platform=ruby
Fetching: ferret-0.11.8.5.gem (100%)
Downloaded ferret-0.11.8.5

D:\BitNami\rubystack-1.9.3-12\projects\ferret>gem compile ferret-0.11.8.5.gem
Unpacking gem: 'ferret-0.11.8.5' in temporary directory...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

    D:/BitNami/rubystack-1.9.3-12/ruby/bin/ruby.exe extconf.rb
creating Makefile

make
generating ferret_ext-i386-mingw32.def
compiling analysis.c
compiling array.c
compiling bitvector.c
bitvector.c: In function 'frt_bv_eq':
bitvector.c:54:5: warning: ISO C90 forbids mixed declarations and code
compiling BZLIB_blocksort.c
compiling BZLIB_bzlib.c
compiling BZLIB_compress.c
compiling BZLIB_crctable.c
compiling BZLIB_decompress.c
compiling BZLIB_huffman.c
compiling BZLIB_randtable.c
compiling compound_io.c
compound_io.c: In function 'cmpdi_read_i':
compound_io.c:136:9: warning: unknown conversion type character 'l' in format
compound_io.c:136:9: warning: unknown conversion type character 'l' in format
compound_io.c:136:9: warning: too many arguments for format
compound_io.c: In function 'cw_copy_file':
compound_io.c:325:9: warning: unknown conversion type character 'l' in format
compound_io.c:325:9: warning: too many arguments for format
compound_io.c:334:9: warning: unknown conversion type character 'l' in format
compound_io.c:334:9: warning: unknown conversion type character 'l' in format
compound_io.c:334:9: warning: too many arguments for format
compiling document.c
compiling except.c
except.c:23:37: warning: initialization discards qualifiers from pointer target type
except.c:24:29: warning: initialization discards qualifiers from pointer target type
compiling ferret.c
compiling field_index.c
field_index.c: In function 'string_handle_term':
field_index.c:237:23: warning: operation on 'index->values' may be undefined
compiling filter.c
compiling fs_store.c
fs_store.c: In function 'fso_seek_i':
fs_store.c:252:9: warning: unknown conversion type character 'l' in format
fs_store.c:252:9: warning: format '%s' expects type 'char *', but argument 4 has type 'long long int'
fs_store.c:252:9: warning: too many arguments for format
fs_store.c: In function 'fsi_seek_i':
fs_store.c:306:9: warning: unknown conversion type character 'l' in format
fs_store.c:306:9: warning: format '%s' expects type 'char *', but argument 4 has type 'long long int'
fs_store.c:306:9: warning: too many arguments for format
fs_store.c: In function 'fsi_length_i':
fs_store.c:322:5: warning: implicit declaration of function 'fstati64'
fs_store.c: In function 'fs_store_new':
fs_store.c:431:17: warning: unused variable 'stt'
compiling global.c
global.c: In function 'frt_vstrfmt':
global.c:190:23: warning: assignment discards qualifiers from pointer target type
global.c: In function 'signal_to_string':
global.c:412:14: error: 'SIGBUS' undeclared (first use in this function)
global.c:412:14: note: each undeclared identifier is reported only once for each function it appears in
global.c: In function 'frt_init':
global.c:436:22: error: storage size of 'action' isn't known
global.c:443:5: warning: implicit declaration of function 'sigemptyset'
global.c:446:5: error: storage size of '__old' isn't known
global.c:446:5: warning: implicit declaration of function 'sigaction'
global.c:446:5: warning: unused variable '__old'
global.c:447:5: error: storage size of '__old' isn't known
global.c:447:5: warning: unused variable '__old'
global.c:448:5: error: storage size of '__old' isn't known
global.c:448:5: warning: unused variable '__old'
global.c:449:5: error: storage size of '__old' isn't known
global.c:449:5: error: 'SIGBUS' undeclared (first use in this function)
global.c:449:5: warning: unused variable '__old'
global.c:450:5: error: storage size of '__old' isn't known
global.c:450:5: warning: unused variable '__old'
global.c:436:22: warning: unused variable 'action'
make: *** [global.o] Error 1


Gem files will remain installed in C:/Users/Richard/AppData/Local/Temp/d20130906-13424-um3ump/ferret-0.11.8.5 for inspec
tion.
Results logged to C:/Users/Richard/AppData/Local/Temp/d20130906-13424-um3ump/ferret-0.11.8.5/ext/gem_make.out

D:\BitNami\rubystack-1.9.3-12\projects\ferret>

Ferret does not return scores on Ruby 1.9

After we upgraded our application to Ruby 1.9, Ferret does no longer return scores on searches.

Looks like the problem lies in the @searcher object in index.rb.

Do you experience the same problem? Or can you help us solving it?

Thanks in advance!

Test failures with Ruby 1.9.3

Hi, I have some test failures with Ruby 1.9.3 here:

The first one is basically a wrongly used assertion:

test_field_symbol(FieldSymbolTest):
ArgumentError: assertion message must be String or Proc, but Symbol was given.
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/test/unit/tc_field_symbol.rb:24:in `test_field_symbol'

the line should not have assert, but assert_equal.

The second one is a weird buffer overflow issue:

*** buffer overflow detected ***: ["test/test_helper.rb", "test/test_all.rb", "test/test_installed.rb"] terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3d11508eb7]
/lib64/libc.so.6[0x3d11507070]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(frt_std_scan_mb+0x5a4)[0x7ff65f9dcfb4]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(+0x9d860)[0x7ff65f9ee860]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(+0x9d403)[0x7ff65f9ee403]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(+0x9d2ad)[0x7ff65f9ee2ad]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(+0x9d9d4)[0x7ff65f9ee9d4]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(frt_dw_invert_field+0x28b)[0x7ff65f9c8b0b]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(frt_dw_add_doc+0x89)[0x7ff65f9c8c89]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(frt_iw_add_doc+0x24)[0x7ff65f9c8ed4]
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so(+0x67478)[0x7ff65f9b8478]
/lib64/libruby.so.1.9[0x3baf94edab]
/lib64/libruby.so.1.9[0x3baf9458a1]
/lib64/libruby.so.1.9[0x3baf94a3f0]
/lib64/libruby.so.1.9(rb_yield+0x178)[0x3baf950958]
/lib64/libruby.so.1.9[0x3baf8310ad]
/lib64/libruby.so.1.9[0x3baf94edab]
/lib64/libruby.so.1.9[0x3baf944d12]
/lib64/libruby.so.1.9[0x3baf94a3f0]
/lib64/libruby.so.1.9(rb_yield+0x178)[0x3baf950958]
/lib64/libruby.so.1.9(rb_ary_each+0x52)[0x3baf82b062]
/lib64/libruby.so.1.9[0x3baf94edab]
/lib64/libruby.so.1.9[0x3baf944d12]
/lib64/libruby.so.1.9[0x3baf94a3f0]
/lib64/libruby.so.1.9(rb_yield+0x178)[0x3baf950958]
/lib64/libruby.so.1.9(rb_ary_each+0x52)[0x3baf82b062]
/lib64/libruby.so.1.9[0x3baf94edab]
/lib64/libruby.so.1.9[0x3baf944d12]
/lib64/libruby.so.1.9[0x3baf94a3f0]
/lib64/libruby.so.1.9(rb_iseq_eval_main+0xad)[0x3baf95175d]
/lib64/libruby.so.1.9[0x3baf85b3fa]
/lib64/libruby.so.1.9(ruby_exec_node+0x1d)[0x3baf85be9d]
/lib64/libruby.so.1.9(ruby_run_node+0x1e)[0x3baf85d92e]
["test/test_helper.rb", "test/test_all.rb", "test/test_installed.rb"][0x40086b]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x3d11421735]
["test/test_helper.rb", "test/test_all.rb", "test/test_installed.rb"][0x400899]
======= Memory map: ========
00400000-00401000 r-xp 00000000 fd:01 3159474 /usr/bin/ruby
00600000-00601000 r--p 00000000 fd:01 3159474 /usr/bin/ruby
00601000-00602000 rw-p 00001000 fd:01 3159474 /usr/bin/ruby
00a39000-025eb000 rw-p 00000000 00:00 0 [heap]
3baf800000-3baf9ef000 r-xp 00000000 fd:01 3156903 /usr/lib64/libruby.so.1.9.1
3baf9ef000-3bafbee000 ---p 001ef000 fd:01 3156903 /usr/lib64/libruby.so.1.9.1
3bafbee000-3bafbf6000 rw-p 001ee000 fd:01 3156903 /usr/lib64/libruby.so.1.9.1
3bafbf6000-3bafc12000 rw-p 00000000 00:00 0
3bc8c00000-3bc8c15000 r-xp 00000000 fd:01 3153649 /usr/lib64/libgcc_s-4.7.0-20120308.so.1
3bc8c15000-3bc8e14000 ---p 00015000 fd:01 3153649 /usr/lib64/libgcc_s-4.7.0-20120308.so.1
3bc8e14000-3bc8e15000 rw-p 00014000 fd:01 3153649 /usr/lib64/libgcc_s-4.7.0-20120308.so.1
3d11000000-3d11020000 r-xp 00000000 fd:01 3147007 /usr/lib64/ld-2.15.so
3d1121f000-3d11220000 r--p 0001f000 fd:01 3147007 /usr/lib64/ld-2.15.so
3d11220000-3d11221000 rw-p 00020000 fd:01 3147007 /usr/lib64/ld-2.15.so
3d11221000-3d11222000 rw-p 00000000 00:00 0
3d11400000-3d115ac000 r-xp 00000000 fd:01 3158353 /usr/lib64/libc-2.15.so
3d115ac000-3d117ab000 ---p 001ac000 fd:01 3158353 /usr/lib64/libc-2.15.so
3d117ab000-3d117af000 r--p 001ab000 fd:01 3158353 /usr/lib64/libc-2.15.so
3d117af000-3d117b1000 rw-p 001af000 fd:01 3158353 /usr/lib64/libc-2.15.so
3d117b1000-3d117b6000 rw-p 00000000 00:00 0
3d11800000-3d11816000 r-xp 00000000 fd:01 3181421 /usr/lib64/libpthread-2.15.so
3d11816000-3d11a16000 ---p 00016000 fd:01 3181421 /usr/lib64/libpthread-2.15.so
3d11a16000-3d11a17000 r--p 00016000 fd:01 3181421 /usr/lib64/libpthread-2.15.so
3d11a17000-3d11a18000 rw-p 00017000 fd:01 3181421 /usr/lib64/libpthread-2.15.so
3d11a18000-3d11a1c000 rw-p 00000000 00:00 0
3d11c00000-3d11cfa000 r-xp 00000000 fd:01 3161604 /usr/lib64/libm-2.15.so
3d11cfa000-3d11ef9000 ---p 000fa000 fd:01 3161604 /usr/lib64/libm-2.15.so
3d11ef9000-3d11efa000 r--p 000f9000 fd:01 3161604 /usr/lib64/libm-2.15.so
3d11efa000-3d11efb000 rw-p 000fa000 fd:01 3161604 /usr/lib64/libm-2.15.so
3d12000000-3d12003000 r-xp 00000000 fd:01 3151483 /usr/lib64/libdl-2.15.so
3d12003000-3d12202000 ---p 00003000 fd:01 3151483 /usr/lib64/libdl-2.15.so
3d12202000-3d12203000 r--p 00002000 fd:01 3151483 /usr/lib64/libdl-2.15.so
3d12203000-3d12204000 rw-p 00003000 fd:01 3151483 /usr/lib64/libdl-2.15.so
3d12800000-3d12807000 r-xp 00000000 fd:01 3181785 /usr/lib64/librt-2.15.so
3d12807000-3d12a06000 ---p 00007000 fd:01 3181785 /usr/lib64/librt-2.15.so
3d12a06000-3d12a07000 r--p 00006000 fd:01 3181785 /usr/lib64/librt-2.15.so
3d12a07000-3d12a08000 rw-p 00007000 fd:01 3181785 /usr/lib64/librt-2.15.so
3d1c000000-3d1c05d000 r-xp 00000000 fd:01 3180763 /usr/lib64/libfreebl3.so
3d1c05d000-3d1c25c000 ---p 0005d000 fd:01 3180763 /usr/lib64/libfreebl3.so
3d1c25c000-3d1c25d000 r--p 0005c000 fd:01 3180763 /usr/lib64/libfreebl3.so
3d1c25d000-3d1c25e000 rw-p 0005d000 fd:01 3180763 /usr/lib64/libfreebl3.so
3d1c25e000-3d1c262000 rw-p 00000000 00:00 0
3d1d000000-3d1d007000 r-xp 00000000 fd:01 3181736 /usr/lib64/libcrypt-2.15.so
3d1d007000-3d1d207000 ---p 00007000 fd:01 3181736 /usr/lib64/libcrypt-2.15.so
3d1d207000-3d1d208000 r--p 00007000 fd:01 3181736 /usr/lib64/libcrypt-2.15.so
3d1d208000-3d1d209000 rw-p 00008000 fd:01 3181736 /usr/lib64/libcrypt-2.15.so
3d1d209000-3d1d237000 rw-p 00000000 00:00 0
7ff644000000-7ff644021000 rw-p 00000000 00:00 0
7ff644021000-7ff648000000 ---p 00000000 00:00 0
7ff648000000-7ff648021000 rw-p 00000000 00:00 0
7ff648021000-7ff64c000000 ---p 00000000 00:00 0
7ff64c000000-7ff64c021000 rw-p 00000000 00:00 0
7ff64c021000-7ff650000000 ---p 00000000 00:00 0
7ff651bd6000-7ff658000000 r--p 00000000 fd:01 9472 /usr/lib/locale/locale-archive
7ff658000000-7ff658021000 rw-p 00000000 00:00 0
7ff658021000-7ff65c000000 ---p 00000000 00:00 0
7ff65e9b8000-7ff65e9b9000 ---p 00000000 00:00 0
7ff65e9b9000-7ff65ea39000 rw-p 00000000 00:00 0
7ff65ea39000-7ff65ea3a000 ---p 00000000 00:00 0
7ff65ea3a000-7ff65eaba000 rw-p 00000000 00:00 0
7ff65eaba000-7ff65eabb000 ---p 00000000 00:00 0
7ff65eabb000-7ff65eb3b000 rw-p 00000000 00:00 0
7ff65eb3b000-7ff65eb3c000 ---p 00000000 00:00 0
7ff65eb3c000-7ff65ecbd000 rw-p 00000000 00:00 0
7ff65ecbd000-7ff65eceb000 r-xp 00000000 fd:01 786477 /usr/lib64/ruby/date_core.so
7ff65eceb000-7ff65eeeb000 ---p 0002e000 fd:01 786477 /usr/lib64/ruby/date_core.so
7ff65eeeb000-7ff65eeec000 r--p 0002e000 fd:01 786477 /usr/lib64/ruby/date_core.so
7ff65eeec000-7ff65eeed000 rw-p 0002f000 fd:01 786477 /usr/lib64/ruby/date_core.so
7ff65eeed000-7ff65eeee000 rw-p 00000000 00:00 0
7ff65eeee000-7ff65eef3000 r-xp 00000000 fd:01 786506 /usr/lib64/ruby/strscan.so
7ff65eef3000-7ff65f0f2000 ---p 00005000 fd:01 786506 /usr/lib64/ruby/strscan.so
7ff65f0f2000-7ff65f0f3000 r--p 00004000 fd:01 786506 /usr/lib64/ruby/strscan.so
7ff65f0f3000-7ff65f0f4000 rw-p 00005000 fd:01 786506 /usr/lib64/ruby/strscan.so
7ff65f0f4000-7ff65f0fa000 r-xp 00000000 fd:01 786505 /usr/lib64/ruby/stringio.so
7ff65f0fa000-7ff65f2f9000 ---p 00006000 fd:01 786505 /usr/lib64/ruby/stringio.so
7ff65f2f9000-7ff65f2fa000 r--p 00005000 fd:01 786505 /usr/lib64/ruby/stringio.so
7ff65f2fa000-7ff65f2fb000 rw-p 00006000 fd:01 786505 /usr/lib64/ruby/stringio.so
7ff65f2fb000-7ff65f31a000 r-xp 00000000 fd:01 3168744 /usr/lib64/libyaml-0.so.2.0.2
7ff65f31a000-7ff65f519000 ---p 0001f000 fd:01 3168744 /usr/lib64/libyaml-0.so.2.0.2
7ff65f519000-7ff65f51a000 r--p 0001e000 fd:01 3168744 /usr/lib64/libyaml-0.so.2.0.2
7ff65f51a000-7ff65f51b000 rw-p 0001f000 fd:01 3168744 /usr/lib64/libyaml-0.so.2.0.2
7ff65f547000-7ff65f54c000 r-xp 00000000 fd:01 786495 /usr/lib64/ruby/psych.so
7ff65f54c000-7ff65f74b000 ---p 00005000 fd:01 786495 /usr/lib64/ruby/psych.so
7ff65f74b000-7ff65f74c000 r--p 00004000 fd:01 786495 /usr/lib64/ruby/psych.so
7ff65f74c000-7ff65f74d000 rw-p 00005000 fd:01 786495 /usr/lib64/ruby/psych.so
7ff65f74d000-7ff65f750000 r-xp 00000000 fd:01 786482 /usr/lib64/ruby/etc.so
7ff65f750000-7ff65f94f000 ---p 00003000 fd:01 786482 /usr/lib64/ruby/etc.so
7ff65f94f000-7ff65f950000 r--p 00002000 fd:01 786482 /usr/lib64/ruby/etc.so
7ff65f950000-7ff65f951000 rw-p 00003000 fd:01 786482 /usr/lib64/ruby/etc.so
7ff65f951000-7ff65fa4a000 r-xp 00000000 fd:03 2228633 /home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so
7ff65fa4a000-7ff65fc4a000 ---p 000f9000 fd:03 2228633 /home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so
7ff65fc4a000-7ff65fc67000 r--p 000f9000 fd:03 2228633 /home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so
7ff65fc67000-7ff65fc70000 rw-p 00116000 fd:03 2228633 /home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/ext/ferret_ext.so
7ff65fc70000-7ff65fc72000 rw-p 00000000 00:00 0
7ff65fc72000-7ff65fc74000 r-xp 00000000 fd:01 1182868 /usr/lib64/ruby/enc/trans/transdb.so
7ff65fc74000-7ff65fe74000 ---p 00002000 fd:01 1182868 /usr/lib64/ruby/enc/trans/transdb.so
7ff65fe74000-7ff65fe75000 r--p 00002000 fd:01 1182868 /usr/lib64/ruby/enc/trans/transdb.so
7ff65fe75000-7ff65fe76000 rw-p 00003000 fd:01 1182868 /usr/lib64/ruby/enc/trans/transdb.so
7ff65fe76000-7ff65fe78000 r-xp 00000000 fd:01 1182826 /usr/lib64/ruby/enc/encdb.so
7ff65fe78000-7ff660077000 ---p 00002000 fd:01 1182826 /usr/lib64/ruby/enc/encdb.so
7ff660077000-7ff660078000 r--p 00001000 fd:01 1182826 /usr/lib64/ruby/enc/encdb.so
7ff660078000-7ff660079000 rw-p 00002000 fd:01 1182826 /usr/lib64/ruby/enc/encdb.so
7ff660079000-7ff660180000 rw-p 00000000 00:00 0
7ff6601a0000-7ff6601a1000 rw-p 00000000 00:00 0
7ff6601a1000-7ff6601a8000 r--s 00000000 fd:01 9715 /usr/lib64/gconv/gconv-modules.cache
7ff6601a8000-7ff6601a9000 ---p 00000000 00:00 0
7ff6601a9000-7ff6601ad000 rw-p 00000000 00:00 0
7fff35660000-7fff35681000 rw-p 00000000 00:00 0 [stack]
7fff3579a000-7fff3579b000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Stack trace:
Not available

  1. Error:
    test_adding_long_url(IndexWriterTest):
    StandardError: Exiting on signal %s (%d) occured at <global.c>:423 in sighandler_crash
    SIGABRT
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/test/unit/index/tc_index_writer.rb:67:in `<<'
/home/bkabrda/rpmbuild/BUILD/rubygem-ferret-0.11.8.4/usr/share/gems/gems/ferret-0.11.8.4/test/unit/index/tc_index_writer.rb:67:in `test_adding_long_url'

Maybe it is somehow connected with the new GCC 4.7.0, we've been getting segfaults and memory leaks with that all over Fedora. I myself am no gcc expert, but maybe you could take a look at it?

Thanks!

Ruby 2.2 compatibility

I can't build ferret against Ruby 2.2:

r_analysis.c: In function 'frb_rb_hash_size':
r_analysis.c:68:5: warning: implicit declaration of function 'RHASH' [-Wimplicit-function-declaration]
     return RHASH(hash)->ntbl->num_entries;
     ^
r_analysis.c:68:23: error: invalid type argument of '->' (have 'int')
     return RHASH(hash)->ntbl->num_entries;
                       ^
r_analysis.c:72:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:238: recipe for target 'r_analysis.o' failed
make: *** [r_analysis.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.