public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/30498] Support traceback (backtrace) on errors
Date: Fri, 09 Feb 2007 09:56:00 -0000 [thread overview]
Message-ID: <20070209095554.27093.qmail@sourceware.org> (raw)
In-Reply-To: <bug-30498-13404@http.gcc.gnu.org/bugzilla/>
------- Comment #8 from burnus at gcc dot gnu dot org 2007-02-09 09:55 -------
Hi,
> I cannot judge how much work this would be, but would it be possible to extend
> this patch a little further so that these backtraces can be requested by the
> user?
Well, this is possible if one combines this patch with the ISO C Bindings of
our fortran-experiments branch. One could then simply use:
integer, parameter :: SIGBUS = 7
integer :: res
interface
function kill(pid, signal) bind(c, name='kill')
use :: ISO_C_BINDING
integer(C_INT),value :: pid, signal
integer(C_INT),bind(c) :: kill
end function kill
end interface
res = kill(0,SIGBUS)
To get a backtrace. Alternatively, with the current patch and the main branch,
one only needs to generate somehow SIGSEGV, SIGFPE, SIGILL or SIGBUS. For
instance as follows:
-ffpe-trap=zero -fbacktrace with
r = 0.0
r = 1.0/r
which gives a nice backtrace.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30498
next prev parent reply other threads:[~2007-02-09 9:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-18 12:46 [Bug libfortran/30498] New: " 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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070209095554.27093.qmail@sourceware.org \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).