public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/30498]  New: Support traceback (backtrace) on errors
@ 2007-01-18 12:46 burnus at gcc dot gnu dot org
  2007-01-18 18:00 ` [Bug libfortran/30498] " fxcoudert at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-01-18 12:46 UTC (permalink / raw)
  To: gcc-bugs

+++ This bug was initially created as a clone of Bug #29649 +++
Running an application I got the following error 
Fortran runtime error: Attempt to allocate negative amount of memory.  Possible
integer overflow

This is not very helpful in debugging, as it gives no clue as to where in the
code it occurred. It would be extremely helpful to have a way to force a
backtrace produced, either explicitly via stderr (as Intel Fortran does for
code compiled with -traceback), or implicitly by producing a core dump.
------------

The core dump has been implemented in bug #29649.

A draft patch, containing both the now-checked in core dumping and the
traceback can be found at http://gcc.gnu.org/ml/fortran/2006-11/msg00634.html

That patch calls the addr2line to translate the address to the file/line
number.  The library used by addr2line cannot be used as it is GPL. (Cf. PR
5773 for gcj.)

FX wrote in the initial PR:
"It was mentionned on IRC tonight that Daniel Berlin has a library that
extracts
line and file information from DWARF2 info. It's internal to Google, but he
said he'll see if he can get it released. We'll have to get back to him in some
time..."


-- 
           Summary: Support traceback (backtrace) on errors
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
 BugsThisDependsOn: 29649


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30498


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-05-14  9:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-18 12:46 [Bug libfortran/30498] New: Support traceback (backtrace) on errors burnus at gcc dot gnu dot org
2007-01-18 18:00 ` [Bug libfortran/30498] " fxcoudert at gcc dot gnu dot org
2007-02-07  9:08 ` fxcoudert at gcc dot gnu dot org
2007-02-07  9:47 ` burnus at gcc dot gnu dot org
2007-02-08 20:30 ` patchapp at dberlin dot org
2007-02-09  7:44 ` P dot Schaffnit at access dot rwth-aachen dot de
2007-02-09  8:16 ` fxcoudert at gcc dot gnu dot org
2007-02-09  8:25 ` P dot Schaffnit at access dot rwth-aachen dot de
2007-02-09  9:56 ` burnus at gcc dot gnu dot org
2007-02-09 10:05 ` P dot Schaffnit at access dot rwth-aachen dot de
2007-02-09 13:25 ` P dot Schaffnit at access dot rwth-aachen dot de
2007-02-21 11:59 ` P dot Schaffnit at access dot rwth-aachen dot de
2007-03-10 16:47 ` burnus at gcc dot gnu dot org
2007-03-14 22:12 ` fxcoudert at gcc dot gnu dot org
2007-03-15 12:57 ` fxcoudert at gcc dot gnu dot org
2007-05-14  9:06 ` P dot Schaffnit at access dot rwth-aachen dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).