require 'tk'すると、このウィンドウを表示して、無限ループに突入する。
再現方法:
>ruby -rtk
とかで。
>ruby -v -rtk -e 'p Tk::TCL_VERSION, Tk::TK_VERSION, Tk::JAPANIZ ED_TK' ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] C:/Ruby/lib/ruby/1.8/tk.rb:1102: warning: Inconsistency.`tcltklib' is enabled nativethread-support. But loaded Tcl/Tk libraries are not. (Probably, the inconsistency doesn't cause any troubles.) "8.4" "8.4" false
>\ruby19\bin\ruby -v -rtk -e 'p Tk::TCL_VERSION, Tk::TK_VERSION, Tk::JAPANIZED_TK' ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mswin32] C:/ruby19/lib/ruby/1.9.1/tk.rb:3282: warning: shadowing outer local variable - key C:/ruby19/lib/ruby/1.9.1/tk.rb:3410: warning: shadowing outer local variable - key C:/ruby19/lib/ruby/1.9.1/tk.rb:3470: warning: shadowing outer local variable - key C:/ruby19/lib/ruby/1.9.1/tk.rb:3710: warning: mismatched indentations at 'end' with 'if' at 3708 C:/ruby19/lib/ruby/1.9.1/tk.rb:4299: warning: shadowing outer local variable - method C:/ruby19/lib/ruby/1.9.1/tk.rb:4338: warning: shadowing outer local variable - v C:/ruby19/lib/ruby/1.9.1/tk.rb:4685: warning: shadowing outer local variable - method C:/ruby19/lib/ruby/1.9.1/tk.rb:4724: warning: shadowing outer local variable - conf C:/ruby19/lib/ruby/1.9.1/tk.rb:4734: warning: shadowing outer local variable - conf C:/ruby19/lib/ruby/1.9.1/tk.rb:29: warning: Inconsistency.`tcltklib' is enabled nativethread-support. But loaded Tcl/Tk libraries are not. (Probably, the inconsistency doesn't cause any troubles.) C:/ruby19/lib/ruby/1.9.1/tk.rb:1233: warning: method redefined; discarding old to_s
ここで固まってしまう。止めると
C:/ruby19/lib/ruby/1.9.1/tk.rb:1340:in `_invoke': Interrupt
from C:/ruby19/lib/ruby/1.9.1/tk.rb:1340:in `<module:TkCore>'
from C:/ruby19/lib/ruby/1.9.1/tk.rb:1108:in `<top (required)>'
from \ruby19\bin\ruby:0:in `require'
って。