Forum: Ruby-dev [ruby-trunk - Bug #7750][Open] GC中にオブジェクトが割り当てられる

Posted by "konishi takurou (瀧澤 悠介)" <gotysoft@yahoo.co.jp> (Guest)
on 2013-01-28 15:46
(Received via mailing list)
Issue #7750 has been reported by konishi_takurou (瀧澤 悠介).

----------------------------------------
Bug #7750: GC中にオブジェクトが割り当てられる
https://bugs.ruby-lang.org/issues/7750

Author: konishi_takurou (瀧澤 悠介)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p374 (2013-01-15) [i386-mingw32]


下記が吐き出されたメッセージです。

0062.rb:2: [BUG] object allocation during garbage collection phase
ruby 1.9.3p374 (2013-01-15) [i386-mingw32]

-- Control frame information 
-----------------------------------------------
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC  :permutation
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :each
c:0003 p:0055 s:0007 b:0007 l:00220c d:002640 EVAL   0062.rb:2
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00220c d:00220c TOP

-- Ruby level backtrace information 
----------------------------------------
0062.rb:2:in `<main>'
0062.rb:2:in `each'
0062.rb:2:in `permutation'

-- C level backtrace information 
-------------------------------------------

-- Other runtime information 
-----------------------------------------------

* Loaded script: 0062.rb

* Loaded features:

    0 enumerator.so
    1 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/encdb.so
    2 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/shift_jis.so
    3 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/trans/transdb.so
    4 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    5 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/rbconfig.rb
    6 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    7 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    8 
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.rb
    9 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
   10 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.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


This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
Posted by usa (Usaku NAKAMURA) (Guest)
on 2013-01-30 10:10
(Received via mailing list)
Issue #7750 has been updated by usa (Usaku NAKAMURA).


とりあえず、現時点ではRubyのどのバージョンでも再現できていません。
が、非常に時間のかかるスクリプトのようですので、そもそも落ちるところまで我慢できずに実行を打ち切ってしまっているため、という感もあります。

参考までに、どのような環境(CPU)でどれくらいの時間でこの現象が起きるのか、教えていただけますか?
----------------------------------------
Bug #7750: GC中にオブジェクトが割り当てられる
https://bugs.ruby-lang.org/issues/7750#change-35721

Author: konishi_takurou (瀧澤 悠介)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p374 (2013-01-15) [i386-mingw32]


下記が吐き出されたメッセージです。

0062.rb:2: [BUG] object allocation during garbage collection phase
ruby 1.9.3p374 (2013-01-15) [i386-mingw32]

-- Control frame information 
-----------------------------------------------
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC  :permutation
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :each
c:0003 p:0055 s:0007 b:0007 l:00220c d:002640 EVAL   0062.rb:2
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00220c d:00220c TOP

-- Ruby level backtrace information 
----------------------------------------
0062.rb:2:in `<main>'
0062.rb:2:in `each'
0062.rb:2:in `permutation'

-- C level backtrace information 
-------------------------------------------

-- Other runtime information 
-----------------------------------------------

* Loaded script: 0062.rb

* Loaded features:

    0 enumerator.so
    1 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/encdb.so
    2 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/shift_jis.so
    3 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/trans/transdb.so
    4 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    5 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/rbconfig.rb
    6 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    7 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    8 
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.rb
    9 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
   10 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.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


This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
Posted by "konishi takurou (瀧澤 悠介)" <gotysoft@yahoo.co.jp> (Guest)
on 2013-02-01 15:58
(Received via mailing list)
Issue #7750 has been updated by konishi_takurou (瀧澤 悠介).


OSはWindows8で、CPUは、Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz 
3.30GHzです。5分程度でスクリプト自体は死にます。再度手元で、10回程度実行してみたところ前述したメッセージが出ませんでした。すいません。

----------------------------------------
Bug #7750: GC中にオブジェクトが割り当てられる
https://bugs.ruby-lang.org/issues/7750#change-35763

Author: konishi_takurou (瀧澤 悠介)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p374 (2013-01-15) [i386-mingw32]


下記が吐き出されたメッセージです。

0062.rb:2: [BUG] object allocation during garbage collection phase
ruby 1.9.3p374 (2013-01-15) [i386-mingw32]

-- Control frame information 
-----------------------------------------------
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC  :permutation
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :each
c:0003 p:0055 s:0007 b:0007 l:00220c d:002640 EVAL   0062.rb:2
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00220c d:00220c TOP

-- Ruby level backtrace information 
----------------------------------------
0062.rb:2:in `<main>'
0062.rb:2:in `each'
0062.rb:2:in `permutation'

-- C level backtrace information 
-------------------------------------------

-- Other runtime information 
-----------------------------------------------

* Loaded script: 0062.rb

* Loaded features:

    0 enumerator.so
    1 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/encdb.so
    2 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/shift_jis.so
    3 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/trans/transdb.so
    4 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    5 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/rbconfig.rb
    6 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    7 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    8 
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.rb
    9 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
   10 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.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


This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
Posted by ko1 (Koichi Sasada) (Guest)
on 2013-02-18 01:12
(Received via mailing list)
Issue #7750 has been updated by ko1 (Koichi Sasada).

Category set to core
Assignee set to authorNari (Narihiro Nakamura)
Target version changed from 1.9.3 to 2.1.0

見た感じ、メモリが無いとかそういう状況でオブジェクトを生成した、
というような気がしますが、果てどうしたものか。
ストレステストが足りてないんですよね。

なりさんに振っておこう。
----------------------------------------
Bug #7750: GC中にオブジェクトが割り当てられる
https://bugs.ruby-lang.org/issues/7750#change-36465

Author: konishi_takurou (瀧澤 悠介)
Status: Open
Priority: Normal
Assignee: authorNari (Narihiro Nakamura)
Category: core
Target version: 2.1.0
ruby -v: ruby 1.9.3p374 (2013-01-15) [i386-mingw32]


下記が吐き出されたメッセージです。

0062.rb:2: [BUG] object allocation during garbage collection phase
ruby 1.9.3p374 (2013-01-15) [i386-mingw32]

-- Control frame information 
-----------------------------------------------
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC  :permutation
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :each
c:0003 p:0055 s:0007 b:0007 l:00220c d:002640 EVAL   0062.rb:2
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00220c d:00220c TOP

-- Ruby level backtrace information 
----------------------------------------
0062.rb:2:in `<main>'
0062.rb:2:in `each'
0062.rb:2:in `permutation'

-- C level backtrace information 
-------------------------------------------

-- Other runtime information 
-----------------------------------------------

* Loaded script: 0062.rb

* Loaded features:

    0 enumerator.so
    1 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/encdb.so
    2 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/shift_jis.so
    3 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/enc/trans/transdb.so
    4 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    5 C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/rbconfig.rb
    6 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    7 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    8 
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.rb
    9 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
   10 C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.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


This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.