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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:45db:: with SMTP id c88-v6mr5643575itd.41.1534128844546; Sun, 12 Aug 2018 19:54:04 -0700 (PDT) X-Received: by 2002:aca:de07:: with SMTP id v7-v6mr401140oig.5.1534128844409; Sun, 12 Aug 2018 19:54:04 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g24-v6no2823785iti.0!news-out.google.com!g5-v6ni3175iti.0!nntp.google.com!g24-v6no2823781iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 12 Aug 2018 19:54:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=121.45.203.80; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 121.45.203.80 References: <9ebc1079-fcb0-4f63-a56a-9da37c593886@googlegroups.com> <2ed1d5bb-9fb0-4e97-b7c4-454b8692fbd7@googlegroups.com> <438cca28-9ef5-4ea4-a45c-e7c28d6bf069@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: AdaCore Community 2018 Bugs From: Roger Injection-Date: Mon, 13 Aug 2018 02:54:04 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54156 Date: 2018-08-12T19:54:04-07:00 List-Id: On Monday, August 13, 2018 at 2:37:52 AM UTC+10, Simon Wright wrote: > Roger writes: > > > On Sunday, August 12, 2018 at 5:33:35 PM UTC+10, Simon Wright wrote: > >> Roger writes: > >> > >> > As it now occurs even with GCC 6.1.0 I'm thinking it most likely has > >> > to do with recent OSX changes. > >> > >> Since it occurs on Debian Stretch, GCC 6.3.0, it can't be just macOS. > >> > >> The actual error reported can change with successive compilations > >> (sometimes it says something like 'undeclared variable ""', seems to > >> settle on the CE), a surefire symptom of bad memory handling. > >> > >> > This problem doesn't occur for compile only. > >> > It occurs when I Build All from GPS > >> > >> The error is a crash in the compiler, doesn't matter how you get there. > > > > I Have cut most of the code out of the test program but the crash > > still occurs. However, I am making progress on tracking back to the > > minimal code where the crash first occurs. > > The problem is in the packages Morph.Mesh_Morph_Value_Pointers, > Mesh_Morph_Weight_Pointers. > > You say > > package Mesh_Morph_Value_Pointers is new Interfaces.C.Pointers > (Interfaces.C.unsigned, API_Morph_Value, API_Morph_Values_Array, > API_Morph_Value'(others => <>)); > > but > > type API_Morph_Value is new Interfaces.C.unsigned; > > so others => <> isn't a legal expression for an API_Morph_Value; you > should say > > API_Morph_Value'(0)); > > > There is still a bug, which ought to be fixed, but it's that GNAT has > failed to recognise the actual problem and has got fatally confused. Thanks, very much appreciated. I now have my main program building without crashing GNAT. I'll also update my bug report with this information.