[ruby-trunk - Bug #9535] [Closed] Kernel.send(:initialize_copy, Kernel) で segmentation fault

Issue #9535 has been updated by Nobuyoshi N…

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

Applied in changeset r45076.


class.c: do nothing if copying self

  • class.c (rb_mod_init_copy): do nothing if copying self.
    [ruby-dev:47989] [Bug #9535]
  • hash.c (rb_hash_initialize_copy): ditto.

Bug #9535: Kernel.send(:initialize_copy, Kernel) で segmentation fault

  • Author: Keita U.
  • Status: Closed
  • Priority: Normal
  • Assignee:
  • Category:
  • Target version:
  • ruby -v: ruby 2.2.0dev (2014-02-19 trunk 45047) [x86_64-linux]
  • Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN

以下のコードを実行すると segmentation fault が起きます。

Kernel.send(:initialize_copy, Kernel)

trunk (45047)、2.1.0p0、2.0.0p353 で再現しました。1.9.3p484 では再現しませんでした。
trunk で実行したときの backtrace を添付します。

—Files--------------------------------
trace.txt (10.1 KB)