From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 1748C1F4B4 for ; Tue, 22 Sep 2020 18:30:11 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 327EB120A48; Wed, 23 Sep 2020 03:29:33 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 6AE97120A47 for ; Wed, 23 Sep 2020 03:29:30 +0900 (JST) Received: by filterdrecv-p3mdw1-5dd6bc5999-sjdcs with SMTP id filterdrecv-p3mdw1-5dd6bc5999-sjdcs-19-5F6A42AA-68 2020-09-22 18:30:02.541879629 +0000 UTC m=+73889.327028035 Received: from herokuapp.com (unknown) by ismtpd0100p1iad2.sendgrid.net (SG) with ESMTP id si2z3Eo_TbeduubRmp1yUA for ; Tue, 22 Sep 2020 18:30:02.458 +0000 (UTC) Date: Tue, 22 Sep 2020 18:30:02 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 75914 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 12468 X-Redmine-Issue-Author: rovf X-Redmine-Sender: jeremyevans0 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: =?us-ascii?Q?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BIieyT4nNpNHUPRm7NuVyrLypw85qUapyg6SVqz?= =?us-ascii?Q?TBi4l5PS4ZLTRSrh=2Frm4l9U6+=2Fd+WCLkrY7Laro?= =?us-ascii?Q?FMqdmF8kwRTtOKLzoghigW+XWHJ1NsXzwyFVbBa?= =?us-ascii?Q?KPfa+zH9+pi9+=2Fi=2FJBwDggCWaXX0ZSQeODsryam?= =?us-ascii?Q?V+PO2jgYlYqMJQ0u4=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 100074 Subject: [ruby-core:100074] [Ruby master Bug#12468] Logger: Can not rotate (log shifting failed. closed stream) 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 #12468 has been updated by jeremyevans0 (Jeremy Evans). I can't test cygwin, but I've added a pull request to logger that should fix this by treating cygwin like mswin and mingw in regards to log shifting: https://github.com/ruby/logger/pull/50 ---------------------------------------- Bug #12468: Logger: Can not rotate (log shifting failed. closed stream) https://bugs.ruby-lang.org/issues/12468#change-87626 * Author: rovf (Ronald Fischer) * Status: Open * Priority: Normal * ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-cygwin] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- If I configure a Logger to rotate, by the time the logger is supposed to do the first rotation, it creates the new log file, but then hangs. When I abort the program using Control-C, I get an infinite series of error messages saying log shifting failed. closed stream You can reproduce the error, if you run the attached example program on **Windows** (it could be a platform issue). The only prerequisite is that a subdirectory 'logs' must exist below the working directory. I'm reporting error for the Cygwin version of Ruby. However, I found the nearly identical error also with JRuby 1.9.3, which suggests that the bug is likely in the Ruby stdlib code, and not in the specific port (i.e. Cygwin vs. JRuby). The main difference between the behaviour of the bug in Cygwin Ruby vs. JRuby is that aborting the program on JRuby does not produced the "log shifting...." error message. ---Files-------------------------------- logtest_s.rb (481 Bytes) -- https://bugs.ruby-lang.org/