[ruby-cvs:67356] nobu:r60175 (trunk): error.c: infinite recursion at Warning#warn

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Oct 13 10:34:52 JST 2017


nobu	2017-10-13 10:34:52 +0900 (Fri, 13 Oct 2017)

  New Revision: 60175

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60175

  Log:
    error.c: infinite recursion at Warning#warn
    
    * error.c (rb_warn_m): write the message to rb_stderr directly, to
      get rid of infinite recursion when called on Warning module
      itself, by super in redefined Warning#warn.
      [ruby-dev:50293] [Bug #14006]

  Modified files:
    trunk/error.c
    trunk/test/ruby/test_exception.rb


More information about the ruby-cvs mailing list