From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:1883:: with SMTP id 125-v6mr28063927ioy.35.1537377798020; Wed, 19 Sep 2018 10:23:18 -0700 (PDT) X-Received: by 2002:a9d:2306:: with SMTP id j6-v6mr299632otb.3.1537377797764; Wed, 19 Sep 2018 10:23:17 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!x188-v6no132670ite.0!news-out.google.com!c63-v6ni139ith.0!nntp.google.com!x188-v6no132667ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 19 Sep 2018 10:23:17 -0700 (PDT) In-Reply-To: <8c3c2511-d521-4f06-9c6e-1a868ea2a2b4@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.35; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.35 References: <87musdtstw.fsf@jacob-sparre.dk> <8c3c2511-d521-4f06-9c6e-1a868ea2a2b4@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4cffa5e8-e810-4195-b9fa-d9b1ab60aa1f@googlegroups.com> Subject: Re: Ada.Containers and concurrent modification exception. From: Anh Vo Injection-Date: Wed, 19 Sep 2018 17:23:18 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54377 Date: 2018-09-19T10:23:17-07:00 List-Id: On Wednesday, September 19, 2018 at 9:31:43 AM UTC-7, Anh Vo wrote: > On Wednesday, September 19, 2018 at 9:05:03 AM UTC-7, Simon Wright wrote: > > Jacob Sparre Andersen writes: > > > > > I've posted an executable example here: > > > > > > https://bitbucket.org/sparre/ada-2012-examples/src/default/src/container_tampering.adb > > > > On macOS this hangs. Also on debian stretch. No assertion failures. > > It also occurred on GNAT Community 2018 running on Windows 7 and Red Hat Enterprise Linux Workstation release 7.5 (Maipo) Adding -gnata switch to compilation, the SYSTEM.ASSERTIONS.ASSERT_FAILURE was raised on both Windows and Red Hat. This is compiler dependency. Should pragma Assertion_Policy(check) be used for consistency.