[Ruby 1.9-Bug#4129][Open] multi-tk を require すると、おかしい

Bug #4129: multi-tk を require すると、おかしい
http://redmine.ruby-lang.org/issues/show/4129

起票者: Makoto K.
ステータス: Open, 優先度: Low
カテゴリ: lib
ruby -v: ruby 1.9.3dev (2010-12-05 trunk 30086) [x86_64-freebsd8.2]

こうなります

$ ruby19 -rmulti-tk -e ‘’
/usr/local/lib/ruby/1.9.1/multi-tk.rb: [BUG] Segmentation fault
ruby 1.9.3dev (2010-12-05 trunk 30086) [x86_64-freebsd8.2]

– Control frame information

c:5692 p:0000 s:28446 b:28446 l:008445 d:008445 METHOD
c:5691 p:---- s:28438 b:28438 l:008437 d:008437 FINISH
c:5690 p:0021 s:28436 b:28436 l:008435 d:008435 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:5689 p:---- s:28428 b:28428 l:008427 d:008427 FINISH
c:5688 p:0021 s:28426 b:28426 l:008425 d:008425 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:5687 p:---- s:28418 b:28418 l:008417 d:008417 FINISH
c:5686 p:0021 s:28416 b:28416 l:008415 d:008415 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:5685 p:---- s:28408 b:28408 l:008407 d:008407 FINISH
(snip)
c:0019 p:---- s:0078 b:0078 l:000077 d:000077 FINISH
c:0018 p:0021 s:0076 b:0076 l:000075 d:000075 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:0017 p:---- s:0068 b:0068 l:000067 d:000067 FINISH
c:0016 p:0021 s:0066 b:0066 l:000065 d:000065 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:0015 p:---- s:0058 b:0058 l:000057 d:000057 FINISH
c:0014 p:0021 s:0056 b:0056 l:000055 d:000055 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:0013 p:---- s:0048 b:0048 l:000047 d:000047 FINISH
c:0012 p:0021 s:0046 b:0046 l:000045 d:000045 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:0011 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0010 p:0021 s:0036 b:0036 l:000035 d:000035 METHOD
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76
c:0009 p:---- s:0028 b:0028 l:000027 d:000027 FINISH
c:0008 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :dirname
c:0007 p:0051 s:0022 b:0022 l:000021 d:000021 CLASS
/usr/local/lib/ruby/1.9.1/multi-tk.rb:142
c:0006 p:0196 s:0017 b:0017 l:000016 d:000016 TOP
/usr/local/lib/ruby/1.9.1/multi-tk.rb:120
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 FINISH
c:0004 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC :require
c:0003 p:0013 s:0009 b:0009 l:000008 d:000008 METHOD
internal:lib/rubygems/custom_require:29
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001658 d:001658 TOP

– Ruby level backtrace information

internal:lib/rubygems/custom_require:29:in require' <internal:lib/rubygems/custom_require>:29:inrequire’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:120:in <top (required)>' /usr/local/lib/ruby/1.9.1/multi-tk.rb:142:inclass:MultiTkIp
/usr/local/lib/ruby/1.9.1/multi-tk.rb:142:in dirname' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' (snip) /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:76:inmethod_missing’
/usr/local/lib/ruby/1.9.1/multi-tk.rb:76:in method_missing' /usr/local/lib/ruby/1.9.1/multi-tk.rb:0:inmethod_missing’

– Other runtime information

  • Loaded script: -e

  • Loaded features:

    0 enumerator.so
    1 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/encdb.so
    2 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/trans/transdb.so
    3 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/tcltklib.so
    4 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/tkutil.so
    5 /usr/local/lib/ruby/1.9.1/thread.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6 (core dumped)

チケット #4129 が更新されました。 (by Hidetoshi Nagai)

ステータス OpenからClosedに変更
進捗 % 0から100に変更

This issue was solved with changeset r30169.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.