Project

General

Profile

Actions

Bug #5211

closed

Segmentation fault in Enumerator#each

Added by woollyams (Mike Williams) over 13 years ago. Updated about 13 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
Backport:
[ruby-core:39043]

Description

Under ruby-1.9.2-p290, on OS X Lion, the following code

@e1 = %w(strike strike strike).to_enum
@e2 = [1,2,3].to_enum

p [@e1.next, @e2.next]
p [@e1.next, @e2.next]
p [@e1.next, @e2.next]

Fails with a Segmentation fault.

Same code works fine in both ruby-1.9.2-p180 and ruby-1.9.3dev.


Files

ruby-192-fiber-bug.rb (131 Bytes) ruby-192-fiber-bug.rb code that triggers the problem woollyams (Mike Williams), 08/22/2011 03:31 PM
ruby-192-fiber-bug.out (845 Bytes) ruby-192-fiber-bug.out output woollyams (Mike Williams), 08/22/2011 03:31 PM
ruby_2011-08-22-162147_dukeofyork.crash (8.7 KB) ruby_2011-08-22-162147_dukeofyork.crash OS X crash report woollyams (Mike Williams), 08/22/2011 03:31 PM

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #5082: test_context_switch(TestMarshal) was failed on OS X 10.7 (Lion)Closedkosaki (Motohiro KOSAKI)07/23/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0