Bug #5200

Ruby Crash Segmentation fault

Added by Jason Lee over 2 years ago. Updated over 1 year ago.

[ruby-core:39004]
Status:Rejected
Priority:Low
Assignee:-
Category:-
Target version:-
ruby -v:1.9.2p290 Backport:

Description

/Users/jason/work/redis-search/lib/redissearch/search.rb:38: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86
64-darwin10.8.0]

-- control frame ----------
c:0041 p:0016 s:0145 b:0142 l:000141 d:000141 METHOD /Users/jason/work/redis-search/lib/redissearch/search.rb:38
c:0040 p:0018 s:0138 b:0138 l:000128 d:000137 BLOCK /Users/jason/work/redis-search/lib/redis
search/search.rb:54
c:0039 p:---- s:0134 b:0134 l:000133 d:000133 FINISH
c:0038 p:---- s:0132 b:0132 l:000131 d:000131 CFUNC :each
c:0037 p:0177 s:0129 b:0129 l:000128 d:000128 METHOD /Users/jason/work/redis-search/lib/redissearch/search.rb:53
c:0036 p:0079 s:0123 b:0123 l:000122 d:000122 METHOD (eval):16
c:0035 p:0011 s:0119 b:0119 l:002038 d:000118 BLOCK /Users/jason/work/simple/lib/tasks/search.rake:5
c:0034 p:0008 s:0116 b:0116 l:000094 d:000115 BLOCK /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/active
record/relation/batches.rb:21
c:0033 p:---- s:0113 b:0113 l:000112 d:000112 FINISH
c:0032 p:---- s:0111 b:0111 l:000110 d:000110 CFUNC :each
c:0031 p:0011 s:0108 b:0108 l:000094 d:000107 BLOCK /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/activerecord/relation/batches.rb:21
c:0030 p:0306 s:0105 b:0105 l:000104 d:000104 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/active
record/relation/batches.rb:71
c:0029 p:0017 s:0095 b:0095 l:000094 d:000094 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/activerecord/relation/batches.rb:20
c:0028 p:0023 s:0091 b:0091 l:000090 d:000090 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/active
record/base.rb:446
c:0027 p:0035 s:0086 b:0086 l:002038 d:0002e8 BLOCK /Users/jason/work/simple/lib/tasks/search.rake:4
c:0026 p:---- s:0084 b:0084 l:000083 d:000083 FINISH
c:0025 p:---- s:0082 b:0082 l:000081 d:000081 CFUNC :call
c:0024 p:0043 s:0077 b:0077 l:000068 d:000076 BLOCK /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:205
c:0023 p:---- s:0074 b:0074 l:000073 d:000073 FINISH
c:0022 p:---- s:0072 b:0072 l:000071 d:000071 CFUNC :each
c:0021 p:0173 s:0069 b:0069 l:000068 d:000068 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:200
c:0020 p:0111 s:0065 b:0065 l:000059 d:000064 BLOCK /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:158
c:0019 p:0019 s:0063 b:0063 l:000062 d:000062 METHOD /Users/jason/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201
c:0018 p:0033 s:0060 b:0060 l:000059 d:000059 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:151
c:0017 p:0048 s:0053 b:0053 l:000052 d:000052 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:144
c:0016 p:0045 s:0048 b:0048 l:000047 d:000047 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:112
c:0015 p:0012 s:0041 b:0041 l:000026 d:000040 BLOCK /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:90
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC :each
c:0012 p:0069 s:0033 b:0033 l:000026 d:000032 BLOCK /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:90
c:0011 p:0009 s:0031 b:0031 l:000030 d:000030 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:129
c:0010 p:0011 s:0027 b:0027 l:000026 d:000026 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:84
c:0009 p:0029 s:0024 b:0024 l:000017 d:000023 BLOCK /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:62
c:0008 p:0009 s:0022 b:0022 l:000021 d:000021 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:129
c:0007 p:0011 s:0018 b:0018 l:000017 d:000017 METHOD /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:59
c:0006 p:0048 s:0015 b:0015 l:000014 d:000014 TOP /Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/bin/rake:32
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :load
c:0003 p:0127 s:0007 b:0007 l:002278 d:002440 EVAL /Users/jason/.rvm/gems/ruby-1.9.2-p290/bin/rake:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH

c:0001 p:0000 s:0002 b:0002 l:002278 d:002278 TOP

-- Ruby level backtrace information ----------------------------------------
/Users/jason/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in <main>'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
load'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/bin/rake:32:in <top (required)>'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:59:in
run'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:62:in
block in run'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:84:in top_level'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:129:in
standardexceptionhandling'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:90:in block in top_level'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:90:in
each'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:90:in block (2 levels) in top_level'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:112:in
invoketask'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:144:in invoke'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:151:in
invoke
withcallchain'
/Users/jason/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:158:in
block in invokewithcallchain'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:200:in execute'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:200:in
each'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:205:in block in execute'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task.rb:205:in
call'
/Users/jason/work/simple/lib/tasks/search.rake:4:in block (2 levels) in <top (required)>'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/active_record/base.rb:446:in
find
each'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/activerecord/relation/batches.rb:20:in find_each'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/active_record/relation/batches.rb:71:in
find
inbatches'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/active
record/relation/batches.rb:21:in block in find_each'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/active_record/relation/batches.rb:21:in
each'
/Users/jason/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.0.9/lib/activerecord/relation/batches.rb:21:in block (2 levels) in find_each'
/Users/jason/work/simple/lib/tasks/search.rake:5:in
block (3 levels) in '
(eval):16:in redis_search_index_create'
/Users/jason/work/redis-search/lib/redis_search/search.rb:53:in
save'
/Users/jason/work/redis-search/lib/redis
search/search.rb:53:in each'
/Users/jason/work/redis-search/lib/redis_search/search.rb:54:in
block in save'
/Users/jason/work/redis-search/lib/redis_search/search.rb:38:in `word?'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap

History

#1 Updated by Yui NARUSE over 2 years ago

  • Status changed from Open to Feedback

It seems segved on "return !/[\w\u4e00-\u9fa5]+$/i.match(word.force_encoding("UTF-8")).blank?".
So can you show the word?

Or I doubt redis returns broken string.

#2 Updated by Yusuke Endoh over 1 year ago

  • Priority changed from Normal to Low

Please tell us how to reproduce.

Yusuke Endoh mame@tsg.ne.jp

#3 Updated by Yusuke Endoh over 1 year ago

  • Status changed from Feedback to Rejected

Sorry, I'm closing this ticket.
We cannot investigate this issue, and I believe that this ticket can make no progress.

Yusuke Endoh mame@tsg.ne.jp

Also available in: Atom PDF