Bug #5211
closedSegmentation fault in Enumerator#each
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
Updated by mrkn (Kenta Murata) about 13 years ago
- Status changed from Open to Rejected
- Assignee set to mrkn (Kenta Murata)
- Priority changed from 5 to Normal
On 1.9.3, I cannot reproduce this issue using gcc-4.2 with -O3 and llvm-gcc with -O0 on OS X 10.7 (Lion).
Which version of gcc do you use to compile ruby?
llvm-gcc and clang with -On (n>0) are not supported to build 1.9.3.
On the other hand, the present ruby_1_9_2 branch doesn't support Lion. Backporting #5074 is able to resolve this.
llvm-gcc and clang are still not supported to build 1.9.2 even if #5074 were to be backported.
Please use gcc-4.2 for building 1.9.2 and 1.9.3.