From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26631 invoked by alias); 30 Jul 2005 21:18:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26622 invoked by uid 48); 30 Jul 2005 21:18:17 -0000 Date: Sat, 30 Jul 2005 21:46:00 -0000 Message-ID: <20050730211817.26621.qmail@sourceware.org> From: "fxcoudert at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050527162050.21787.dir@lanl.gov> References: <20050527162050.21787.dir@lanl.gov> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libfortran/21787] flush I/O before calling abort() X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg03993.txt.bz2 List-Id: ------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-07-30 21:18 ------- For the bug noted in comments 5 and 6: [dranta:~/tests/gfortran] dir% gfortran -o callabort callabort.f [dranta:~/tests/gfortran] dir% callabort Abort [dranta:~/tests/gfortran] dir% cat callabort.f program test write(3,*)' error in program' call abort end [dranta:~/tests/gfortran] dir% cat fort.3 [dranta:~/tests/gfortran] dir% A fix is easy to design: calling close_units() before abort() in file intrinsics/abort.c does the trick (no time to submit a real patch now, just noting this in case I forget about it). -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Keywords| |patch Last reconfirmed|2005-06-02 13:40:54 |2005-07-30 21:18:15 date| | Summary|libfortran - better error |flush I/O before calling |message needed |abort() http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21787