public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/52594] New: no traceback expected for explicit fortran stop command combined with -fbacktrace
@ 2012-03-15 18:47 kloedej at knmi dot nl
  2012-03-15 18:59 ` [Bug fortran/52594] " burnus at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: kloedej at knmi dot nl @ 2012-03-15 18:47 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52594
           Summary: no traceback expected for explicit fortran stop
                    command combined with -fbacktrace
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kloedej@knmi.nl


I noticed that a full traceback is generated when gfortran executables exit
after an explicit stop command in the code.
Although useful in some cases, I would like to request an additional
commandline switch to block this behaviour.

My reasons:
-I am developing a collection of fortran software and am running routinely a
large number of unittests on them. A significant number of these unit tests
provoke the tool to stop with non-zero exit status (usually by inserting faulty
data that should trigger some safety checks in the software).
-I would like to easily discriminate real programming errors that can be
detected by gfortran (i.e. segmentation fault, illegal instruction, bus error
or floating-point exception, etc., as mentioned on the manpage), from these
explicit stop commands.
-the current situation where both types of conditions generate a full traceback
makes it hard to interpret the results because the interesting tracebacks get
lost in the large number of unwanted tracebacks from explicit stops.

Maybe you could consider implementing an option like: -fno-traceback-on-stop to
remedy this?


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

end of thread, other threads:[~2012-12-14  8:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-15 18:47 [Bug fortran/52594] New: no traceback expected for explicit fortran stop command combined with -fbacktrace kloedej at knmi dot nl
2012-03-15 18:59 ` [Bug fortran/52594] " burnus at gcc dot gnu.org
2012-03-16  8:45 ` kloedej at knmi dot nl
2012-03-16 11:37 ` burnus at gcc dot gnu.org
2012-03-16 11:49 ` kloedej at knmi dot nl
2012-06-06  7:48 ` jb at gcc dot gnu.org
2012-12-14  7:59 ` Joost.VandeVondele at mat dot ethz.ch
2012-12-14  8:44 ` jb at gcc dot gnu.org
2012-12-14  8:47 ` Joost.VandeVondele at mat dot ethz.ch

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).