From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 1BBBA1B00052 for ; Tue, 15 Nov 2016 02:29:46 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 9DCF2B5D86F for ; Tue, 15 Nov 2016 03:00:10 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 82B5C18CC817 for ; Tue, 15 Nov 2016 03:00:10 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1A8CA1205F6; Tue, 15 Nov 2016 03:00:09 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 469F41205CB for ; Tue, 15 Nov 2016 03:00:05 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=EoKiBuSuF0Mw0/HIUqz3VUoijkQ=; b=OqGb49k3cQh3e8/y8n tpgVhkhWCS1jpNVS7AXwJyzwnGwIw72skuWAuxlEuoONGOtAy7UZlf0iv7nDFKzL 2QP316v09noH3KMJvPTwOJtejvud2dUi8m1AVk0x+XdPKaZOSiGB/aq0hSEgtUXa jY9pcEEEwSkdAZ1ogZHR8xQfM= Received: by filter0158p1las1.sendgrid.net with SMTP id filter0158p1las1-4924-5829FB93-5 2016-11-14 17:59:47.107769946 +0000 UTC Received: from herokuapp.com (ec2-54-204-151-192.compute-1.amazonaws.com [54.204.151.192]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id EeFh4xr4RRGr5dKpJwibag Mon, 14 Nov 2016 17:59:46.749 +0000 (UTC) Date: Mon, 14 Nov 2016 17:59:46 +0000 From: nagachika00@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 53007 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 12876 X-Redmine-Issue-Author: floehopper X-Redmine-Issue-Assignee: ko1 X-Redmine-Sender: nagachika X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7q9Iz3o5qEoYFl1EJ67E0e4a2c6IVikbdg4T ME8bebLWKCNLbwbFLu62CtYCDN1PblzRM49Wg3Odo1oHVkJ0Pt2dB2qfX28PwAkIblPVSp0Bc5wxJ+ LaK00r3/tw6FPq+xaGLnLLRA8EC3PU8ZR/IF4DfvDFhLeFX8SN3wSAy/Fg== X-ML-Name: ruby-core X-Mail-Count: 78129 Subject: [ruby-core:78129] [Ruby trunk Bug#12876] Calling new hangs Ruby when class prepends an empty module and makes initialize method public X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #12876 has been updated by Tomoyuki Chikanaga. Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: REQUIRED, 2.3: DONE ruby_2_3 r56783 merged revision(s) 56520. ---------------------------------------- Bug #12876: Calling new hangs Ruby when class prepends an empty module and makes initialize method public https://bugs.ruby-lang.org/issues/12876#change-61491 * Author: James Mead * Status: Closed * Priority: Normal * Assignee: Koichi Sasada * ruby -v: ruby 2.0.0p648 and ruby 2.1.3p242 onwards * Backport: 2.1: REQUIRED, 2.2: REQUIRED, 2.3: DONE ---------------------------------------- ```ruby module Foo end class Bar prepend Foo public :initialize end p Bar.new # => hangs ``` ## Runs OK * ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin14.0] * ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin14.0] * ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0] * rubinius 3.33 (2.2.2 db6f477e 2016-05-23 3.8.1) [x86_64-darwin14.5.0] ## Hangs on last line * ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-darwin14.5.0] * ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin14.0] * ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0] * ruby 2.1.10p492 (2016-04-01 revision 54464) [x86_64-darwin14.0] * ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-darwin14] * ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14] * ruby 2.4.0preview2 (2016-09-09 trunk 56129) [x86_64-darwin14] This might be related to Bug #12832, although in this case it is possible to interrupt with ctrl-C and the problem exists in Ruby v2.0.0 as well as v2.1.3 onwards. -- https://bugs.ruby-lang.org/