[Bug: 1.8] generator causes abort


#1

e$B!!$5$5$@$G$9!%e(B

e$B!!e(Bgenerator e$B$re(B 1.8
e$B%(%C%8$G;H$C$?$i$3$s$J46$8$G6/@)=*N;$5$l$^$7$?!%e(B

Linux … 2.6.18-6-amd64 #1 SMP Thu Dec 25 21:08:54 UTC 2008 x86_64
GNU/Linux

$ /tmp/ruby_1_8/bin/ruby -ve "
require ‘generator’
gen = Generator.new((0…600000))
while gen.next?
gen.next
end
"
ruby 1.8.7p5000 (2009-02-25 revision 22633) [x86_64-linux]
/tmp/ruby_1_8/lib/ruby/1.8/generator.rb:188: warning: method redefined;
discarding old next
e$B6/@)=*N;e(B

e$B!!e(B32bit Linux e$B$G$bF1MM$G$7$?!%e(B

Linux vd 2.6.18-6-686 #1 SMP Sat Dec 27 09:31:05 UTC 2008 i686 GNU/Linux

ruby 1.8.7p5000 (2009-02-25 revision 20371) [i686-linux]
/tmp/ruby_1_8/lib/ruby/1.8/generator.rb:188: warning: method redefined;
discarding old next
Killed


#2

At Thu, 26 Feb 2009 06:02:10 +0900,
SASADA Koichi wrote:

 generator を 1.8 エッジで使ったらこんな感じで強制終了されました.

これは callcc ã®ãƒ¡ãƒ¢ãƒªãƒªãƒ¼ã‚¯ãŒåŽŸå› ã§ã™ã‚ˆã­ã€‚

http://redmine.ruby-lang.org/issues/show/744

/tmp/ruby_1_8/lib/ruby/1.8/generator.rb:188: warning: method redefined;
discarding old next

この警告は出ないようにしておきました。