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 10.36.13.80 with SMTP id 77mr5117257itx.40.1519510207105; Sat, 24 Feb 2018 14:10:07 -0800 (PST) X-Received: by 10.157.83.129 with SMTP id w1mr261228otg.2.1519510207010; Sat, 24 Feb 2018 14:10:07 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w142no1300039ita.0!news-out.google.com!s63ni4150itb.0!nntp.google.com!o66no1296054ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 24 Feb 2018 14:10:06 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.171.117.31; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 71.171.117.31 References: <906cd418-adff-4eeb-9da5-7c6f7c777ff8@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0f6421b0-e8f7-4624-aa38-6b424d3d8c51@googlegroups.com> Subject: Re: Possible GNAT bug, but wanted to see if it was a violtion of the RM From: Jere Injection-Date: Sat, 24 Feb 2018 22:10:07 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2890 X-Received-Body-CRC: 3045642248 Xref: reader02.eternal-september.org comp.lang.ada:50625 Date: 2018-02-24T14:10:06-08:00 List-Id: On Friday, February 23, 2018 at 4:17:02 AM UTC-5, Simon Wright wrote: > I don't know if it helps, but running under the debugger (GCC 8.0.1, > macOS) show the first exception is > > Catchpoint 1, PROGRAM_ERROR (Main.Composite.Vectors.Implementation.TC_Check: attempt to tamper with cursors) at __gnat_debug_raise_exception ( > e=0x10003eaa0 , message=...) at s-excdeb.adb:40 > 40 s-excdeb.adb: No such file or directory. > (gdb) bt > #0 __gnat_debug_raise_exception (e=0x10003eaa0 , message=...) > at s-excdeb.adb:40 > #1 0x0000000100011cdd in ada__exceptions__complete_occurrence (x=0x1003020f0) > at a-except.adb:931 > #2 0x0000000100011ced in ada__exceptions__complete_and_propagate_occurrence ( > x=0x1003020f0) at a-except.adb:942 > #3 0x0000000100011d42 in __gnat_raise_exception ( > e=0x10003eaa0 , message=...) at a-except.adb:984 > #4 0x0000000100006f27 in main.composite.vectors.implementation.tc_check () > #5 0x0000000100008e11 in main.composite.vectors.finalize () > #6 0x000000010000fe19 in main__composite__instanceDF.7589 () > #7 0x0000000100010250 in main___finalizer.4676 () > #8 0x0000000100006c20 in main () Side question: I wasn't able to get the GPL debugger to trigger on the exception. I tried stepping through the program but the application just exits at the end without the debug info. I tried putting an exception handler and break point in that, but it never catches the exception (so either I am not allowed to catch Program_Error or the exception happens outside of my main operation). How did you get the debugger to provide that info?