From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28346 invoked by alias); 5 Aug 2007 11:56:28 -0000 Received: (qmail 28320 invoked by uid 22791); 5 Aug 2007 11:56:27 -0000 X-Spam-Check-By: sourceware.org Received: from fk-out-0910.google.com (HELO fk-out-0910.google.com) (209.85.128.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 05 Aug 2007 11:56:24 +0000 Received: by fk-out-0910.google.com with SMTP id 26so1251128fkx for ; Sun, 05 Aug 2007 04:56:22 -0700 (PDT) Received: by 10.86.77.5 with SMTP id z5mr3581435fga.1186314982400; Sun, 05 Aug 2007 04:56:22 -0700 (PDT) Received: from ?144.82.208.57? ( [144.82.208.57]) by mx.google.com with ESMTPS id d25sm4889849nfh.2007.08.05.04.56.20 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2007 04:56:21 -0700 (PDT) In-Reply-To: <1186314392.3449.7.camel@meiner.onlinehome.de> References: <23DD0646-EB5E-4621-9F64-71222F45CA01@gmail.com> <1186305632.3449.5.camel@meiner.onlinehome.de> <1186314392.3449.7.camel@meiner.onlinehome.de> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Fortran List , gcc-patches list Content-Transfer-Encoding: 7bit From: FX Coudert Subject: Re: [gfortran,patch] Allow backtracing non-library errors Date: Sun, 05 Aug 2007 11:56:00 -0000 To: Thomas Koenig X-Mailer: Apple Mail (2.752.3) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00268.txt.bz2 > Program received signal SIGFPE, Arithmetic exception. > 0x080485ea in MAIN__ () at u3.f90:3 > 3 x = sqrt(x) > Current language: auto; currently fortran It's really weird, cause it's not the same address as you had with your first post: > $ cat u3.f90 > real :: x > x = -1 > x = sqrt(x) > print *, x > end > $ gfortran -g -fbacktrace -ffpe-trap=invalid u3.f90 && ./a.out > > Program received signal 8 (SIGFPE): Floating-point exception. > > Backtrace for this error: > + /lib/i686/cmov/libc.so.6 [0xb7ce1208] > + /lib/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7ccd030] Could you try to do both tests with the same executable, setting GFORTRAN_ERROR_BACKTRACE=1 when run without gdb? Thanks, FX