Bug #3722

segfault in rb_iterate (1.9.3, r29057)

Added by Cezary Baginski over 3 years ago. Updated almost 3 years ago.

[ruby-core:31783]
Status:Closed
Priority:High
Assignee:-
Category:core
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2010-08-19 trunk 29056) [x86_64-linux] Backport:

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

segfault.txt Magnifier (2.75 KB) Cezary Baginski, 08/20/2010 08:49 AM

segfault2.txt Magnifier (5.48 KB) Cezary Baginski, 08/20/2010 08:49 AM

History

#1 Updated by Cezary Baginski over 3 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(rbbug+0xcf) [0x565298]
ruby() [0x514c98]
ruby() [0x5152f1]
ruby() [0x51a9b3]
ruby() [0x527a23]
ruby() [0x52844d]
ruby() [0x41786f]
ruby(ruby
execnode+0x24) [0x417982]
ruby(ruby
runnode+0x3e) [0x417955]
ruby() [0x416111]
/lib/libc.so.6(
libcstart_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

#2 Updated by Nobuyoshi Nakada over 3 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

Also available in: Atom PDF