Bug #3722
closedsegfault in rb_iterate (1.9.3, r29057)
Description
=begin
Reproducible every time while running bundler + cucumber + rprofile on a private rails project
(hard to reduce).
The second attached contains a short gdb session using Ruby with -g3/-O0/-ggdb.
I know this isn't much, but let me know if there is anything else I can do to help out.
=end
Files
Updated by Cezary (Cezary Baginski) about 14 years ago
=begin
I started tearing everything apart and came up with this minimal case:
% ruby --version
ruby 1.9.3dev (2010-08-19 trunk 29056) [x86_64-linux]
% cat fail.rb
require 'profile'
class A
include Enumerable
def each
yield 1
end
end
A.new.any? { true }
% ruby fail.rb
fail.rb: [BUG] cfp consistency error - send
ruby 1.9.3dev (2010-08-19 trunk 29056) [x86_64-linux]
-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:002598 d:002598 TOP
-- C level backtrace information -------------------------------------------
ruby() [0x52af54]
ruby() [0x565192]
ruby(rb_bug+0xcf) [0x565298]
ruby() [0x514c98]
ruby() [0x5152f1]
ruby() [0x51a9b3]
ruby() [0x527a23]
ruby() [0x52844d]
ruby() [0x41786f]
ruby(ruby_exec_node+0x24) [0x417982]
ruby(ruby_run_node+0x3e) [0x417955]
ruby() [0x416111]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7f84bb51ac4d]
ruby() [0x415fe9]
[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
[1] 15653 abort ruby fail.rb
=end
Updated by nobu (Nobuyoshi Nakada) about 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r29155.
Cezary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end