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 873B319C001F for ; Wed, 25 Nov 2015 09:36:25 +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 833C5B5D839 for ; Wed, 25 Nov 2015 10:07:29 +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 D57DB18CC7E6 for ; Wed, 25 Nov 2015 10:07:29 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 0BD911204C8; Wed, 25 Nov 2015 10:07:28 +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 6989C1204B1 for ; Wed, 25 Nov 2015 10:07:25 +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=/d3yjI2YcWTsvpCChwpoziOqev4=; b=YtVpqE9zrcyXqKQ3C1 o1Y2R6BrMI5R3UOHH6OhE+NPhKhqT8759kGipVVvz074kI8XwscGjCkMM+5EK4Tj 7feHKP5d0lFqIskguC0uSIylv9aad3+YRxgP2S5KyiFd2eNy8F1lLGLfb/v4v2en Vs0yKcHBB7hTf26jo7sCfvVLQ= Received: by filter0430p1mdw1.sendgrid.net with SMTP id filter0430p1mdw1.944.565509C717 2015-11-25 01:07:19.445658361 +0000 UTC Received: from herokuapp.com (ec2-54-159-41-37.compute-1.amazonaws.com [54.159.41.37]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id a-tHPsCbToOquk21ECMYRQ for ; Wed, 25 Nov 2015 01:07:19.541 +0000 (UTC) Date: Wed, 25 Nov 2015 01:07:19 +0000 From: shugo@ruby-lang.org To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46344 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11738 X-Redmine-Issue-Author: shugo X-Redmine-Sender: shugo 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5k8zN8ZhNnmILbCayhaEKF6onZK1wBbZykWl dv0+T028+UKpRZjQnCilqa3foWT3vfQaD5NX7PJm7nsQTnjHMW01SOHX5Tl5mZrwbuBYlpS619tvK2 zXJIAZzphxdanr0= X-ML-Name: ruby-core X-Mail-Count: 71668 Subject: [ruby-core:71668] [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception 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 #11738 has been reported by Shugo Maeda. ---------------------------------------- Bug #11738: ARGF.readpartial raises a wrong exception https://bugs.ruby-lang.org/issues/11738 * Author: Shugo Maeda * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-11-09 trunk 52500) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ARGF.readpartial raises a RuntimeError when EOF is detected more than twice: ``` lexington:ruby$ cat t.rb p ARGF.readpartial(16) rescue nil p ARGF.readpartial(16) lexington:ruby$ ruby t.rb /dev/null t.rb:2:in `readpartial': can't modify frozen NilClass (RuntimeError) from t.rb:2:in `
' lexington:ruby$ ``` An EOFError is expected. -- https://bugs.ruby-lang.org/