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=-2.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,330279f3e4fb8016 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: Problem with finalized protected object Date: Wed, 7 Jul 2004 12:53:13 +0200 Organization: Cuivre, Argent, Or Message-ID: References: <2l227jF7p6vqU1@uni-berlin.de> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1089197610 42086 212.85.156.195 (7 Jul 2004 10:53:30 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 7 Jul 2004 10:53:30 +0000 (UTC) Cc: Jano To: comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.6.2 In-Reply-To: <2l227jF7p6vqU1@uni-berlin.de> Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:2097 Date: 2004-07-07T12:53:13+02:00 > I have a program that, when ended, gives the following error: > > Execution terminated by unhandled exception > Exception name: PROGRAM_ERROR > Message: Protected Object is finalized > Call stack traceback locations: > 0x8ab417b 0x8ad5d4e 0x8ad5940 0x8ad5893 0x8aab4d8 While it's most likely that your program is wrong, it is also true that GNAT's finalization implementation is buggy: if you use (say) valgrind to watch a program mixing tasks and controlled objects in the right way, you quickly discover that during finalization the run-time system is trying to use tasking structures that it has already freed. This leads to "interesting" behavior on program finalization. Ciao, Duncan.