From: Jere <jhb.chat@gmail.com>
Subject: Re: Possible GNAT bug, but wanted to see if it was a violtion of the RM
Date: Sat, 24 Feb 2018 14:10:06 -0800 (PST)
Date: 2018-02-24T14:10:06-08:00 [thread overview]
Message-ID: <0f6421b0-e8f7-4624-aa38-6b424d3d8c51@googlegroups.com> (raw)
In-Reply-To: <lyvaeojcac.fsf@pushface.org>
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 <program_error>, message=...) at s-excdeb.adb:40
> 40 s-excdeb.adb: No such file or directory.
> (gdb) bt
> #0 __gnat_debug_raise_exception (e=0x10003eaa0 <program_error>, 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 <program_error>, 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?
next prev parent reply other threads:[~2018-02-24 22:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-23 2:36 Possible GNAT bug, but wanted to see if it was a violtion of the RM Jere
2018-02-23 9:16 ` Simon Wright
2018-02-24 22:07 ` Jere
2018-02-25 11:55 ` Simon Wright
2018-02-25 15:55 ` Jere
2018-02-24 22:10 ` Jere [this message]
2018-02-25 11:50 ` Simon Wright
2018-02-25 15:22 ` Jere
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox