From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4380 invoked by alias); 16 Mar 2006 12:29:39 -0000 Received: (qmail 4361 invoked by uid 48); 16 Mar 2006 12:29:36 -0000 Date: Thu, 16 Mar 2006 12:29:00 -0000 Subject: [Bug libfortran/26712] New: gfortran on mac intel runtime floating point exception when printing X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ccb at dl dot ac dot uk" 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 X-SW-Source: 2006-03/txt/msg01680.txt.bz2 List-Id: All attempts to run code compiled with gfortran fail if there is a floating point print. This seems to be due to a floating point underflow exception being invoked. cat test.f program test real a a = 10.0 print *,a stop end gdb stack trace follows: (gdb) run Starting program: /Users/charlesb/a.out Reading symbols for shared libraries .++ done Program received signal EXC_ARITHMETIC, Arithmetic exception. 0x900e5158 in __gdtoa () (gdb) where #0 0x900e5158 in __gdtoa () #1 0x900e47f8 in __ldtoa () #2 0x9000c947 in __vfprintf () #3 0x9000baf0 in sprintf () #4 0x0024d968 in output_float (dtp=0xbfffefb0, f=0x400390, value=10) at ../../../gcc-4.1.0/ libgfortran/io/write.c:472 #5 0x0024e597 in write_float (dtp=0xbfffefb0, f=0xbfffef08, source=0x3ff40000
, len=4) at ../../../gcc-4.1.0/libgfortran/io/write.c:898 #6 0x0024e6a9 in write_real (dtp=0xbfffefb0, source=0xbfffe368 "", length=1072955392) at ../../../ gcc-4.1.0/libgfortran/io/write.c:1390 #7 0x0024f06d in *__gfortrani_list_formatted_write (dtp=0xbfffefb0, type=BT_REAL, p=0xbffff0c0, kind=4, size=4, nelems=1) at ../../../gcc-4.1.0/libgfortran/io/write.c:1460 #8 0x002486f0 in *__gfortran_transfer_real (dtp=0xbfffefb0, p=0xbffff0c0, kind=4) at ../../../ gcc-4.1.0/libgfortran/io/transfer.c:1079 #9 0x00001ebb in MAIN__ () at test.f:4 #10 0x00001efc in main (argc=-1073745608, argv=0x1de6) at ../../../gcc-4.1.0/libgfortran/fmain.c: 18 Specs of compiler version: Using built-in specs. Target: i386-apple-darwin8.5.1 Configured with: ../gcc-4.1.0/configure --enable-languages=c,c++,fortran,java Thread model: posix gcc version 4.1.0 -- Summary: gfortran on mac intel runtime floating point exception when printing Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ccb at dl dot ac dot uk GCC build triplet: i386-apple-darwin8.5.1 GCC host triplet: i386-apple-darwin8.5.1 GCC target triplet: i386-apple-darwin8.5.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26712