public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/63930] New: libgfortran should use 'abort ()' instead of 'exit (2)' for run-time errors
@ 2014-11-18 10:37 ludo at gnu dot org
  2015-07-05 12:41 ` [Bug libfortran/63930] " fxcoudert at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ludo at gnu dot org @ 2014-11-18 10:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63930

            Bug ID: 63930
           Summary: libgfortran should use 'abort ()' instead of 'exit
                    (2)' for run-time errors
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ludo at gnu dot org

libgfortran/runtime/error.c uses "exit (2)" in a few places to handle run-time
errors.  I would suggest replacing these calls with "abort ()".

The rationale is that using "abort" would make things more convenient for
users: one could inspect the core dump, or, when running the program in GDB,
directly get a prompt upon SIGABRT instead of having to resort to "catch
syscall exit_group".

Thanks.


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

end of thread, other threads:[~2015-09-04 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 10:37 [Bug libfortran/63930] New: libgfortran should use 'abort ()' instead of 'exit (2)' for run-time errors ludo at gnu dot org
2015-07-05 12:41 ` [Bug libfortran/63930] " fxcoudert at gcc dot gnu.org
2015-07-05 18:52 ` anlauf at gmx dot de
2015-07-05 18:53 ` anlauf at gmx dot de
2015-07-05 20:01 ` kargl at gcc dot gnu.org
2015-09-04 22:09 ` fxcoudert at gcc dot gnu.org

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