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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,de183036289811c4,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-19 06:12:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!bnewspeer01.bru.ops.eu.uu.net!emea.uu.net!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Requeue in GNAT 3.14p (Linux) Date: Wed, 19 Jun 2002 15:17:45 +0200 Message-ID: NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1024492341 9677803 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:26375 Date: 2002-06-19T15:17:45+02:00 List-Id: Hi! The following code is the distilled problem. When a chain of external requeues returns back to a protected object it causes a hang-up on the last requeue. It happens in GNAT 3.14p under Linux. Interestingly is that under Windows NT it works. I found nothing in ARM that forbids that. Is it a GNAT bug? ------------------------------ test.adb with Ping_Pong; use Ping_Pong; procedure Test is begin A.Service; end Test; ------------------------------ ping_pong.ads package Ping_Pong is protected A is entry Service; entry Back; end A; protected B is entry Wall; end B; end Ping_Pong; ---------------------------- ping_pong.adb with Text_IO; package body Ping_Pong is protected body A is entry Service when True is begin Text_IO.Put_Line ("Service!"); requeue B.Wall; end Service; entry Back when True is begin Text_IO.Put_Line ("Got it!"); end Back; end A; protected body B is entry Wall when True is begin Text_IO.Put_Line ("Wall!"); requeue A.Back; end Wall; end B; end Ping_Pong; --- Regards, Dmitry Kazakov www.dmitry-kazakov.de