public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libfortran/48915] New: Incorrect process return code with -fdump-core @ 2011-05-06 11:54 jb at gcc dot gnu.org 2011-05-06 11:34 ` [Bug libfortran/48915] " jb at gcc dot gnu.org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-06 11:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 Summary: Incorrect process return code with -fdump-core Product: gcc Version: unknown Status: UNCONFIRMED Severity: minor Priority: P3 Component: libfortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: jb@gcc.gnu.org Consider the program program errcode stop 10 end program errcode $ gfortran errcode.f90 $ ./a.out STOP 10 $ echo $? 10 $ gfortran -fdump-core errcode.f90 $ ./a.out STOP 10 Quit (core dumped) $ echo $? 131 Looking at runtime/error.c (sys_exit) the reason is quite obvious; with kill(getpid(), SIGQUIT); the process kills itself (return code is 128 + signal number = 131 in this case) and never gets a chance to execute exit() with the provided exit code! ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/48915] Incorrect process return code with -fdump-core 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org @ 2011-05-06 11:34 ` jb at gcc dot gnu.org 2011-05-06 11:51 ` jb at gcc dot gnu.org ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-06 11:34 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 --- Comment #1 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-06 11:31:38 UTC --- Assigning to myself, I have some ideas to improve error handling and fix this in the process. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/48915] Incorrect process return code with -fdump-core 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org 2011-05-06 11:34 ` [Bug libfortran/48915] " jb at gcc dot gnu.org @ 2011-05-06 11:51 ` jb at gcc dot gnu.org 2011-05-14 9:30 ` jb at gcc dot gnu.org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-06 11:51 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 Janne Blomqvist <jb at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot |jb at gcc dot gnu.org |gnu.org | --- Comment #2 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-06 11:32:04 UTC --- Really assigning this time. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/48915] Incorrect process return code with -fdump-core 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org 2011-05-06 11:34 ` [Bug libfortran/48915] " jb at gcc dot gnu.org 2011-05-06 11:51 ` jb at gcc dot gnu.org @ 2011-05-14 9:30 ` jb at gcc dot gnu.org 2011-05-14 9:52 ` jb at gcc dot gnu.org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-14 9:30 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 --- Comment #3 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-14 08:44:12 UTC --- Author: jb Date: Sat May 14 08:44:09 2011 New Revision: 173750 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173750 Log: PR 48915 Abort handling Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/gfortran.h trunk/gcc/fortran/gfortran.texi trunk/gcc/fortran/intrinsic.texi trunk/gcc/fortran/invoke.texi trunk/gcc/fortran/lang.opt trunk/gcc/fortran/options.c trunk/gcc/fortran/trans-decl.c trunk/libgfortran/ChangeLog trunk/libgfortran/intrinsics/abort.c trunk/libgfortran/libgfortran.h trunk/libgfortran/runtime/backtrace.c trunk/libgfortran/runtime/compile_options.c trunk/libgfortran/runtime/environ.c trunk/libgfortran/runtime/error.c trunk/libgfortran/runtime/stop.c ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/48915] Incorrect process return code with -fdump-core 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org ` (2 preceding siblings ...) 2011-05-14 9:30 ` jb at gcc dot gnu.org @ 2011-05-14 9:52 ` jb at gcc dot gnu.org 2011-05-14 10:36 ` jb at gcc dot gnu.org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-14 9:52 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 Janne Blomqvist <jb at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #4 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-14 09:05:59 UTC --- Fixed, closing. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/48915] Incorrect process return code with -fdump-core 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org ` (3 preceding siblings ...) 2011-05-14 9:52 ` jb at gcc dot gnu.org @ 2011-05-14 10:36 ` jb at gcc dot gnu.org 2011-05-14 10:43 ` jb at gcc dot gnu.org 2011-05-15 11:14 ` jb at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-14 10:36 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 --- Comment #5 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-14 10:20:59 UTC --- Author: jb Date: Sat May 14 10:20:56 2011 New Revision: 173753 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173753 Log: PR 48915 Update mixed-language programming documentation Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/gfortran.texi ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/48915] Incorrect process return code with -fdump-core 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org ` (4 preceding siblings ...) 2011-05-14 10:36 ` jb at gcc dot gnu.org @ 2011-05-14 10:43 ` jb at gcc dot gnu.org 2011-05-15 11:14 ` jb at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-14 10:43 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 --- Comment #6 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-14 10:24:20 UTC --- Author: jb Date: Sat May 14 10:24:18 2011 New Revision: 173754 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173754 Log: PR 48915 Update mixed-language programming documentation Modified: trunk/gcc/fortran/gfortran.texi ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/48915] Incorrect process return code with -fdump-core 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org ` (5 preceding siblings ...) 2011-05-14 10:43 ` jb at gcc dot gnu.org @ 2011-05-15 11:14 ` jb at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: jb at gcc dot gnu.org @ 2011-05-15 11:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48915 --- Comment #7 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-15 10:23:56 UTC --- Author: jb Date: Sun May 15 10:23:53 2011 New Revision: 173770 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173770 Log: PR 48915 Clarify _gfortran_set_options documentation Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/gfortran.texi ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-05-15 10:45 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-05-06 11:54 [Bug libfortran/48915] New: Incorrect process return code with -fdump-core jb at gcc dot gnu.org 2011-05-06 11:34 ` [Bug libfortran/48915] " jb at gcc dot gnu.org 2011-05-06 11:51 ` jb at gcc dot gnu.org 2011-05-14 9:30 ` jb at gcc dot gnu.org 2011-05-14 9:52 ` jb at gcc dot gnu.org 2011-05-14 10:36 ` jb at gcc dot gnu.org 2011-05-14 10:43 ` jb at gcc dot gnu.org 2011-05-15 11:14 ` jb 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).