From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: raised PROGRAM_ERROR : XXXXXX finalize/adjust raised exception
Date: Sat, 6 May 2017 14:58:15 +0200
Date: 2017-05-06T14:58:15+02:00 [thread overview]
Message-ID: <oekh96$be8$1@gioia.aioe.org> (raw)
In-Reply-To: 21b617ac-563a-4bac-9e39-a179ed94a240@googlegroups.com
On 2017-05-06 14:18, reinert wrote:
> I got the following rare error message (when running my Ada program under debian - updated):
>
> "raised PROGRAM_ERROR : cells.ads:43 finalize/adjust raised exception"
>
>
> Line 43-50 in "cells.ads" is like this:
>
> type cell_observation_t is record
> id : cell_names1.target_t;
> state : cell_state_t := live;
> r, dr : real_vector2d := (0.0, 0.0);
> axis : degree_t;
> children1 : cell_names1.cell_names_sets.set;
> pre_cell, next_cell : target_t := cnil;
> end record;
>
> Is there something obvious I should be aware of?
Exceptions inside controlled object's finalization. Presumably you have
a controlled member in cell_observation_t.
Add this to the main program:
GNAT.Exception_Traces.Trace_On (GNAT.Exception_Traces.Every_Raise);
to see the original issue.
(Frequently it is an unhandled exception that rolls the stack, which in
turn destroys a controlled object that raises an exception in its
Finalize, all thoroughly hidden away with a Program_Error presented
instead...)
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2017-05-06 12:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-06 12:18 raised PROGRAM_ERROR : XXXXXX finalize/adjust raised exception reinert
2017-05-06 12:58 ` Dmitry A. Kazakov [this message]
2017-05-06 15:01 ` reinert
2017-05-06 14:08 ` Jeffrey R. Carter
2017-05-06 14:57 ` reinert
2017-05-06 15:46 ` Jeffrey R. Carter
2017-05-07 19:15 ` reinert
2017-05-07 19:19 ` reinert
2017-05-06 14:59 ` reinert
2017-05-06 15:05 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox