public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: mexas@bris.ac.uk, fortran@gcc.gnu.org
Subject: Re: About 'error stop' statement
Date: Sun, 06 Aug 2017 14:37:00 -0000	[thread overview]
Message-ID: <6d885d0d-e5aa-b07c-9744-66f777f98ecb@alice.it> (raw)
In-Reply-To: <201708061223.v76CNoP5021680@mech-as222.men.bris.ac.uk>

Ciao Anton,

Il 06/08/2017 14:23, Anton Shterenlikht ha scritto:> All of the above 
outputs are acceptable.
> ERROR STOP initiates error termination.
> The standard says, N2134, 5.3.7p3 [42:16-17]:
> "When error termination on an image has been
> initiated, the processor should initiate
> error termination on other images as quickly
> as possible."
> 
> Basically, anything can happen.
> If calling MPI_abort is deemed by the implementors
> to be the quickest way, then this is acceptable.
> If an image has initiated error termination, it's
> data might or might not be accessible from other images.
> If other images try to access it's data before they
> realise that error termination was initiated, you
> can segfaults or MPI errors or any other error, really.
> None of this matters, because the aim of error termination
> is to quit the execution on all images as fast as possible.
> The way this is achieved does not matter.

when this morning I saw "Program received signal SIGSEGV: Segmentation 
fault - invalid memory reference." in the example n. (1), I tried to 
figure out what was happening in my apps because, a few months ago, it 
did not occur.. and so I tried with the test case..

So a change between versions 5.x and 6.x of gfortran is causing this, 
likely because now 'error stop' is more standard conform.

Really I consider this very misleading, maybe I have to replace the new 
"error stop" with the old 'stop' statement.

Thanks for clarification.

Ciao,
  Angelo.

  reply	other threads:[~2017-08-06 14:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-06 10:20 Angelo Graziosi
2017-08-06 12:24 ` Anton Shterenlikht
2017-08-06 14:37   ` Angelo Graziosi [this message]
2017-08-06 15:53     ` Anton Shterenlikht
     [not found]       ` <etPan.5987aef7.1774020e.4b1@sourceryinstitute.org>
2017-08-07  6:40         ` Angelo Graziosi
2017-08-07  6:59         ` Angelo Graziosi
2017-08-07  8:08           ` Janne Blomqvist
2017-08-07 16:56             ` Damian Rouson
2017-08-07  8:24           ` Anton Shterenlikht
2017-08-07 20:33 Tim Prince via fortran

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=6d885d0d-e5aa-b07c-9744-66f777f98ecb@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=fortran@gcc.gnu.org \
    --cc=mexas@bris.ac.uk \
    /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).