From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 3DFE81F453 for ; Tue, 6 Nov 2018 21:27:08 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id A46C1121841; Wed, 7 Nov 2018 06:27:01 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id EBA9412185F for ; Wed, 7 Nov 2018 06:26:59 +0900 (JST) Received: by filter0048p3mdw1.sendgrid.net with SMTP id filter0048p3mdw1-6223-5BE20721-25 2018-11-06 21:26:57.543397484 +0000 UTC m=+513656.772174941 Received: from herokuapp.com (ec2-54-162-32-3.compute-1.amazonaws.com [54.162.32.3]) by ismtpd0046p1mdw1.sendgrid.net (SG) with ESMTP id RmV1ele3Sj67b3t9VCzo5Q for ; Tue, 06 Nov 2018 21:26:57.496 +0000 (UTC) Date: Tue, 06 Nov 2018 21:26:57 +0000 (UTC) From: hsbt@ruby-lang.org To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 65122 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 10419 X-Redmine-Issue-Author: tjlsmith X-Redmine-Sender: hsbt 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS60h5msf7CXst3eBmOvlHe6PWARtIlJQtXuRy 1apIxO2wT2apwTZKo//xi+ZZ/WFnPbdzftel3onnJMb9TEgyT5Va1Ssx2u5UEYXlXqwoB0BBmaiWnC PujtHQT+qQr3M/Q3Slcyx+kYSLqADYQy26ScKKCVALS9BO7xkmLprM1+8A== X-ML-Name: ruby-core X-Mail-Count: 89736 Subject: [ruby-core:89736] [Ruby trunk Bug#10419] ruby 2.1.3 kackes during IO.readlines of huge file 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 #10419 has been updated by hsbt (Hiroshi SHIBATA). Assignee deleted (tjlsmith (Terry Smith)) ---------------------------------------- Bug #10419: ruby 2.1.3 kackes during IO.readlines of huge file https://bugs.ruby-lang.org/issues/10419#change-74780 * Author: tjlsmith (Terry Smith) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: uby 2.1.3p242 (2014-09-19 revision 47630) [i386-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Trying to read massive text file - here's the one line program with all info included a = IO.readlines('sentences.txt') =begin D:\sentences>dir Volume in drive D is DATA Volume Serial Number is BE2F-06B2 Directory of D:\sentences 10/22/2014 14:15 . 10/22/2014 14:15 .. 10/22/2014 14:15 2,389 s.rb 10/10/2014 09:56 1,425,731,345 sentences.txt 2 File(s) 1,425,733,734 bytes 2 Dir(s) 425,943,310,336 bytes free D:\sentences>ruby -v ruby 2.1.3p242 (2014-09-19 revision 47630) [i386-mingw32] D:\sentences>ruby s.rb s.rb:1: [BUG] object allocation during garbage collection phase ruby 2.1.3p242 (2014-09-19 revision 47630) [i386-mingw32] -- Control frame information ----------------------------------------------- c:0003 p:---- s:0009 e:000008 CFUNC :readlines c:0002 p:0013 s:0005 E:000d28 EVAL s.rb:1 [FINISH] c:0001 p:0000 s:0002 E:0009d4 TOP [FINISH] s.rb:1:in `
' s.rb:1:in `readlines' -- C level backtrace information ------------------------------------------- -- Other runtime information ----------------------------------------------- * Loaded script: s.rb * Loaded features: 0 enumerator.so 1 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/enc/encdb.so 2 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/enc/iso_8859_1.so 3 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/enc/trans/transdb.so 4 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/rbconfig.rb 5 C:/Ruby21/lib/ruby/2.1.0/rubygems/compatibility.rb 6 C:/Ruby21/lib/ruby/2.1.0/rubygems/defaults.rb 7 C:/Ruby21/lib/ruby/2.1.0/rubygems/deprecate.rb 8 C:/Ruby21/lib/ruby/2.1.0/rubygems/errors.rb 9 C:/Ruby21/lib/ruby/2.1.0/rubygems/version.rb 10 C:/Ruby21/lib/ruby/2.1.0/rubygems/requirement.rb 11 C:/Ruby21/lib/ruby/2.1.0/rubygems/platform.rb 12 C:/Ruby21/lib/ruby/2.1.0/rubygems/basic_specification.rb 13 C:/Ruby21/lib/ruby/2.1.0/rubygems/stub_specification.rb 14 C:/Ruby21/lib/ruby/2.1.0/rubygems/util/stringio.rb 15 C:/Ruby21/lib/ruby/2.1.0/rubygems/specification.rb 16 C:/Ruby21/lib/ruby/2.1.0/rubygems/exceptions.rb 17 C:/Ruby21/lib/ruby/2.1.0/rubygems/defaults/operating_system.rb 18 C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb 19 thread.rb 20 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/thread.so 21 C:/Ruby21/lib/ruby/2.1.0/monitor.rb 22 C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb 23 C:/Ruby21/lib/ruby/2.1.0/rubygems.rb [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. =end -- https://bugs.ruby-lang.org/