Bug #3722: segfault in rb_iterate (1.9.3, r29057) http://redmine.ruby-lang.org/issues/show/3722 Author: Cezary Baginski Status: Open, Priority: High Category: core, Target version: 1.9.3 ruby -v: ruby 1.9.3dev (2010-08-19 trunk 29056) [x86_64-linux] 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.
on 2010-08-20 01:54
on 2010-08-20 20:36
Issue #3722 has been updated by Cezary Baginski.
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
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3722
on 2010-09-01 05:57
Issue #3722 has been updated by Nobuyoshi Nakada. Status changed from Open to Closed % Done changed from 0 to 100 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. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3722
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.