(gdb) run script/runner "Post.find_by_contents('ruby-forum')" Starting program: /usr/local/bin/ruby script/runner "Post.find_by_contents('ruby-forum')" Program received signal SIGSEGV, Segmentation fault. 0x400e2db5 in mallopt () from /lib/libc.so.6 (gdb) backtrace #0 0x400e2db5 in mallopt () from /lib/libc.so.6 #1 0x400e1f33 in malloc () from /lib/libc.so.6 #2 0x0806dcd3 in ruby_xmalloc (size=1075450688) at gc.c:121 #3 0x0806dd5d in ruby_xcalloc (n=120, size=120) at gc.c:139 #4 0x40b8a648 in stde_new (tir=0x2f2, frq_in=0x2f2, deleted_docs=0x2f2, skip_interval=754) at index.c:2251 #5 0x40b8a9d3 in stpe_new (tir=0x2f2, frq_in=0x2f2, prx_in=0x2f2, del_docs=0x2f2, skip_interval=754) at index.c:2357 #6 0x40b8cd90 in sr_term_positions (ir=0x2a8) at index.c:3452 #7 0x40b8b05f in mtpe_reader_tde_i (ir=0x2f2) at index.c:2600 #8 0x40b8aacc in mtde_get_tde_i (mtde=0x87b3480, i=0) at index.c:2419 #9 0x40b8ad74 in mtde_next (tde=0x87b3480) at index.c:2484 #10 0x40b94d07 in pp_next (self=0x87ec028) at q_phrase.c:46 #11 0x40b94f3e in phsc_init (phsc=0x87a6288) at q_phrase.c:174 #12 0x40b951ae in phsc_next (self=0x87a6288) at q_phrase.c:242 #13 0x40b9996f in dssc_init_scorer_queue (dssc=0x8977fe0) at q_boolean.c:78 #14 0x40b99ab9 in dssc_next (self=0x8977fe0) at q_boolean.c:136 #15 0x40b9aecc in bsc_next (self=0x882d208) at q_boolean.c:1002 #16 0x40b83b56 in isea_search_w (self=0x8aae6f8, weight=0x882d208, first_doc=0, num_docs=10, filter=0x2a8, sort=0x0, filter_func=0, load_fields=0) at search.c:990 #17 0x40b83d24 in isea_search (self=0x8aae6f8, query=0x2f2, first_doc=754, num_docs=754, filter=0x2f2, sort=0x2f2, filter_func=0x2f2, load_fields=754) ---Type to continue, or q to quit--- at search.c:1048 #18 0x40bca20a in frt_sea_search_internal (query=0x2f2, roptions=1083958400, sea=0x8aae6f8) at r_search.c:2176 #19 0x40bca37d in frt_sea_search_each (argc=754, argv=0x2f2, self=754) at r_search.c:2271 #20 0x080688aa in call_cfunc (func=0x40bca300 , recv=1083957940, len=680, argc=1075450780, argv=0xbfff6da8) at eval.c:5553 #21 0x0805c4ba in rb_call0 (klass=1079401356, recv=1083957940, id=88193, oid=754, argc=2, argv=0xbfff6da8, body=0x40561424, flags=0) at eval.c:5692 #22 0x0805cda6 in rb_call (klass=1079401356, recv=1083957940, mid=88193, argc=2, argv=0xbfff6da8, scope=0) at eval.c:5920 #23 0x08057ddf in rb_eval (self=1083958220, n=0x2f2) at ruby.h:638 #24 0x080571be in rb_eval (self=1083958220, n=0x2f2) at eval.c:3109 #25 0x0805aa3c in rb_yield_0 (val=6, self=1083958220, klass=0, flags=0, avalue=0) at eval.c:4897 #26 0x080584bd in rb_eval (self=1083958180, n=0x2f2) at eval.c:3185 #27 0x080575d2 in rb_eval (self=1083958180, n=0x2f2) at eval.c:3245 #28 0x0805c7d3 in rb_call0 (klass=1077770964, recv=1083958180, id=19009, oid=754, argc=0, argv=0x0, body=0x403d92e4, flags=0) at eval.c:5826 #29 0x0805cda6 in rb_call (klass=1077770964, recv=1083958180, mid=19009, argc=0, argv=0x0, scope=0) at eval.c:5920 #30 0x08057ddf in rb_eval (self=1083958220, n=0x2f2) at ruby.h:638 #31 0x080571be in rb_eval (self=1083958220, n=0x2f2) at eval.c:3109 ---Type to continue, or q to quit--- #32 0x0805c7d3 in rb_call0 (klass=1085071700, recv=1083958220, id=88193, oid=754, argc=0, argv=0xbfff98b0, body=0x404561c4, flags=-1073768276) at eval.c:5826 #33 0x0805cda6 in rb_call (klass=1085071700, recv=1083958220, mid=88193, argc=2, argv=0xbfff98a8, scope=0) at eval.c:5920 #34 0x08057ddf in rb_eval (self=1084043980, n=0x2f2) at ruby.h:638 #35 0x080571be in rb_eval (self=1084043980, n=0x2f2) at eval.c:3109 #36 0x08057689 in rb_eval (self=1084043980, n=0x2f2) at eval.c:3551 #37 0x0805c7d3 in rb_call0 (klass=1084923500, recv=1084043980, id=89337, oid=754, argc=0, argv=0xbfffada0, body=0x40aba528, flags=-1073762916) at eval.c:5826 #38 0x0805cda6 in rb_call (klass=1084923500, recv=1084043980, mid=89337, argc=2, argv=0xbfffad98, scope=1) at eval.c:5920 #39 0x08057ddf in rb_eval (self=1084043980, n=0x2f2) at ruby.h:638 #40 0x080571be in rb_eval (self=1084043980, n=0x2f2) at eval.c:3109 #41 0x08057689 in rb_eval (self=1084043980, n=0x2f2) at eval.c:3551 #42 0x0805c7d3 in rb_call0 (klass=1084923500, recv=1084043980, id=88985, oid=754, argc=0, argv=0xbfffc28c, body=0x40abd714, flags=-1073757556) at eval.c:5826 #43 0x0805cda6 in rb_call (klass=1084923500, recv=1084043980, mid=88985, argc=1, argv=0xbfffc288, scope=0) at eval.c:5920 #44 0x08057ddf in rb_eval (self=1075661168, n=0x2f2) at ruby.h:638 #45 0x0805dce3 in eval (self=1075661168, src=1075597708, scope=4, ---Type to continue, or q to quit--- file=0x80d1faa "(eval)", line=1) at eval.c:6314 #46 0x0805df5d in rb_f_eval (argc=-1073755488, argv=0x2f2, self=1075661168) at eval.c:6427 #47 0x080688aa in call_cfunc (func=0x805ddd0 , recv=1075661168, len=680, argc=1075450780, argv=0xbfffccf8) at eval.c:5553 #48 0x0805c4ba in rb_call0 (klass=1075666068, recv=1075661168, id=3921, oid=754, argc=1, argv=0xbfffccf8, body=0x401d41f0, flags=2) at eval.c:5692 #49 0x0805cda6 in rb_call (klass=1075666068, recv=1075661168, mid=3921, argc=1, argv=0xbfffccf8, scope=1) at eval.c:5920 #50 0x08057ddf in rb_eval (self=1075661168, n=0x2f2) at ruby.h:638 #51 0x0805e93c in rb_load (fname=1081681720, wrap=0) at eval.c:6715 #52 0x0805f362 in rb_require_safe (fname=1075597228, safe=0) at eval.c:7035 #53 0x08068882 in call_cfunc (func=0x805edf0 , recv=1075661168, len=680, argc=1075450780, argv=0xbfffd858) at eval.c:5550 #54 0x0805c4ba in rb_call0 (klass=1075666088, recv=1075661168, id=14825, oid=754, argc=1, argv=0xbfffd858, body=0x401c6730, flags=2) at eval.c:5692 #55 0x0805cda6 in rb_call (klass=1075666088, recv=1075661168, mid=14825, argc=1, argv=0xbfffd858, scope=1) at eval.c:5920 #56 0x08057ddf in rb_eval (self=1075661168, n=0x2f2) at ruby.h:638 #57 0x0805748a in rb_eval (self=1075661168, n=0x2f2) at eval.c:3196 #58 0x0805c7d3 in rb_call0 (klass=1075666068, recv=1075661168, id=9545, oid=754, argc=0, argv=0xbfffe72c, body=0x401a993c, flags=-1073748180) at eval.c:5826 ---Type to continue, or q to quit--- #59 0x0805cda6 in rb_call (klass=1075666068, recv=1075661168, mid=9545, argc=1, argv=0xbfffe728, scope=3) at eval.c:5920 #60 0x0805d414 in rb_call_super (argc=1, argv=0xbfffe728) at eval.c:6088 #61 0x080582d2 in rb_eval (self=1075661168, n=0x2f2) at eval.c:3433 #62 0x0805748a in rb_eval (self=1075661168, n=0x2f2) at eval.c:3196 #63 0x0805c7d3 in rb_call0 (klass=1075666208, recv=1075661168, id=9545, oid=754, argc=0, argv=0xbffff5bc, body=0x403d1ea4, flags=-1073744452) at eval.c:5826 #64 0x0805cda6 in rb_call (klass=1075666208, recv=1075661168, mid=9545, argc=1, argv=0xbffff5b8, scope=1) at eval.c:5920 #65 0x08057ddf in rb_eval (self=1075661168, n=0x2f2) at ruby.h:638 #66 0x0805418d in ruby_exec_internal () at eval.c:1543 #67 0x080541c6 in ruby_exec () at eval.c:1563 #68 0x080541f0 in ruby_run () at eval.c:1573 #69 0x08052335 in main (argc=754, argv=0x2f2, envp=0xbffffda4) at main.c:46 (gdb)