From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28023 invoked by alias); 12 Aug 2011 15:31:52 -0000 Received: (qmail 28015 invoked by uid 22791); 12 Aug 2011 15:31:51 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Aug 2011 15:31:38 +0000 From: "matz at suse dot de" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12724] fclose violates POSIX 2008 on seekable input streams Date: Fri, 12 Aug 2011 15:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: matz at suse dot de X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00042.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12724 Michael Matz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz at suse dot de --- Comment #3 from Michael Matz 2011-08-12 15:31:21 UTC --- Over at SuSE we ran into issues with this change. See https://bugzilla.novell.com/show_bug.cgi?id=711829 . Ruby does a dup/fdopen, but then doesn't do any reading/writing with the new stream, and when it gets fclosed the file position is reset also for the other stream associated with the same file. That one does reads/writes. I believe that's exactly the interaction between active/inactive streams that http://austingroupbugs.net/view.php?id=87#c895 is talking about. Now, that may or may not be useless code in ruby, but there we are. The current half-POSIX-compliant way is worse than either the non-compliant or the compliant way. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.