Bug #2024

memory leak in eval with TOPLEVEL_BINDING

Added by Usaku NAKAMURA almost 6 years ago. Updated about 4 years ago.

[ruby-dev:39205]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 1.9.2dev (2009-08-31 trunk 24720) [i386-mswin32] Backport:

Description

=begin
以下のスクリプトが無限にメモリを消費します。
なお1.8では問題ありませんし、TOPLEVEL_BINDINGの代わりにbindingを渡した場合も問題ありません。

loop do
eval("", TOPLEVEL_BINDING)
GC.start
end
=end

Associated revisions

Revision 24726
Added by Koichi Sasada almost 6 years ago

  • vm_eval.c (eval_string_with_cref): fix to check local_table_size. [Bug #2024]

Revision 24726
Added by Koichi Sasada almost 6 years ago

  • vm_eval.c (eval_string_with_cref): fix to check local_table_size. [Bug #2024]

History

#1 Updated by Koichi Sasada almost 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r24726.
=end

Also available in: Atom PDF