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 (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 47DC717DEF16 for ; Thu, 23 Apr 2015 09:23:46 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id F0373B5D8D7 for ; Thu, 23 Apr 2015 09:36:02 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 02B7D97A832 for ; Thu, 23 Apr 2015 09:36:04 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wuN7T8B7TchU for ; Thu, 23 Apr 2015 09:36:03 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id B236297A827 for ; Thu, 23 Apr 2015 09:36:03 +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 91DEC952439 for ; Thu, 23 Apr 2015 09:36:02 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 0FCAF120446; Thu, 23 Apr 2015 09:36:00 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 598B5120419 for ; Thu, 23 Apr 2015 09:35:56 +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=3rc433kYwR3XxZqXmiHnNSv7Dvw=; b=pUongh6LoJQOykcb4x 6GdrfDnbfHOnQacBtkkhVHd8PS9Yw4K5dfaldTEqUJlBBo5AJuOaKeR77B+RkHgx vrfra1zQCSHxwd1ZhddGXIgTK3+tLiV7yQhIG/camDdzAHNKZ1fFxk811SCPSJF6 p4MtqEZ0mU51ckxjJUI6PBY/0= Received: by filter0157p1mdw1.sendgrid.net with SMTP id filter0157p1mdw1.29571.55383E672 2015-04-23 00:35:51.727317957 +0000 UTC Received: from herokuapp.com (ec2-54-160-226-213.compute-1.amazonaws.com [54.160.226.213]) by ismtpd-013 (SG) with ESMTP id 14ce3b3c430.6b35.237bea for ; Thu, 23 Apr 2015 00:35:51 +0000 (UTC) Date: Thu, 23 Apr 2015 00:35:51 +0000 From: kaiserprogrammer@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Redmine-MailingListIntegration-Message-Ids: 43363 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11088 X-Redmine-Issue-Author: kaiserprogrammer X-Redmine-Sender: kaiserprogrammer X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: OOF Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7XpzAcTIFzmMtQxo7bYBXgkwrgpyQru2ekZX BCPXtimGVY3SEKDiudjOTLCQZoAVV9IKpcsgd2L/NE4B8N270PfYo3lQgaV1GXr8SPLFfq4qmGywdP K64z+VJNjoOf/f0vzgJhS+2o46xGt62yY+om X-ML-Name: ruby-core X-Mail-Count: 68965 Subject: [ruby-core:68965] [Ruby trunk - Bug #11088] [Open] Infinite loop on calling missing/overwritten methods of restored marshaled objects 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: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11088 has been reported by J=C3=BCrgen Bickert. ---------------------------------------- Bug #11088: Infinite loop on calling missing/overwritten methods of restore= d marshaled objects https://bugs.ruby-lang.org/issues/11088 * Author: J=C3=BCrgen Bickert * Status: Open * Priority: Normal * Assignee:=20 * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- I have Marshal.dump some objects and then I Marshal.load them and later I c= all non-existent methods on those objects and instead of raising an excepti= on (NoMethodError) it runs off in an infinite loop. I have tested with simple cases where the dumped structure is not recursive= and it works fine. So I attached a non-working dump which will when called= with inspect or a non-existing method run off in an infinite loop. When you run "ruby bug_hunt.rb" it will get stuck and you have to abort(CTR= L-C) and only then will it print an error message and finish. ---Files-------------------------------- bug_hunt.rb (336 Bytes) ruby_object.dump (561 KB) --=20 https://bugs.ruby-lang.org/