Forum: Ruby-dev [Bug: 1.8] generator causes abort

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
SASADA Koichi (Guest)
on 2009-02-25 23:04
(Received via mailing list)
 ささだです.

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


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
強制終了


 32bit Linux でも同様でした.

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
Akinori MUSHA (Guest)
on 2009-02-26 05:44
(Received via mailing list)
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

This topic is locked and can not be replied to.