From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26838 invoked by alias); 8 Nov 2002 14:26:13 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26803 invoked by uid 71); 8 Nov 2002 14:26:12 -0000 Resent-Date: 8 Nov 2002 14:26:12 -0000 Resent-Message-ID: <20021108142612.26802.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, papadopo@shfj.cea.REMOVE.fr Received: (qmail 20178 invoked by uid 61); 8 Nov 2002 14:17:34 -0000 Message-Id: <20021108141734.20177.qmail@sources.redhat.com> Date: Fri, 08 Nov 2002 06:26:00 -0000 From: papadopo@shfj.cea.REMOVE.fr Reply-To: papadopo@shfj.cea.REMOVE.fr To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/8504: ios::app + pipes X-SW-Source: 2002-11/txt/msg00413.txt.bz2 List-Id: >Number: 8504 >Category: libstdc++ >Synopsis: ios::app + pipes >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Nov 08 06:26:10 PST 2002 >Closed-Date: >Last-Modified: >Originator: papadopo@shfj.cea.REMOVE.fr >Release: gcc-3.2 >Organization: >Environment: Solaris 8 7/01 + gcc-3.2 IRIX 6.5.13 + gcc-3.0.2 >Description: fstream::open() with ios::app flag fails on pipes for gcc 3.0 and better. This used to work fine with gcc 2.95.3. >How-To-Repeat: To reproduce: - build the attached openapp.cc source file - create a pipe named /tmp/pipe - use "mkfifo /tmp/pipe" - run the program, it will attempt to open /tmp/pipe with fstream::open() and ios::app flag - read the pipe from a shell to unblock - "cat /tmp/pipe" - fstream::open() will fail with error "Illegal seek" >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="openapp.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="openapp.cc" I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZnN0cmVhbT4KI2luY2x1ZGUgPGNzdHJpbmc+ CiNpbmNsdWRlIDxjZXJybm8+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAg b2ZzdHJlYW0gcGlwZTsKICBwaXBlLm9wZW4oICIvdG1wL3BpcGUiLCBpb3M6Om91dHxpb3M6OmFw cCApOwogIGlmKCAhcGlwZSApCiAgICBjZXJyIDw8ICJjb3VsZCBub3Qgb3BlbiBwaXBlICgiIDw8 IGVycm5vIDw8ICIsICIgPDwgc3RyZXJyb3IoZXJybm8pIDw8ICIpIiA8PCBlbmRsOwp9Cg==