From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31373 invoked by alias); 25 Sep 2009 16:05:24 -0000 Received: (qmail 31204 invoked by uid 22791); 25 Sep 2009 16:05:22 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_40,J_CHICKENPOX_23 X-Spam-Check-By: sourceware.org Received: from smtp22.services.sfr.fr (HELO smtp22.services.sfr.fr) (93.17.128.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Sep 2009 16:05:16 +0000 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2203.sfr.fr (SMTP Server) with ESMTP id 497E170000B3; Fri, 25 Sep 2009 18:05:14 +0200 (CEST) Received: from [192.168.1.101] (228.156.90-79.rev.gaoland.net [79.90.156.228]) by msfrf2203.sfr.fr (SMTP Server) with ESMTP id EB41270000A3; Fri, 25 Sep 2009 18:05:13 +0200 (CEST) X-SFR-UUID: 20090925160513963.EB41270000A3@msfrf2203.sfr.fr Subject: Re: Any tips for debugging a GNAT tasking implementation problem? From: Laurent GUERBY To: Dave Korn Cc: "gcc@gcc.gnu.org" In-Reply-To: <1253893711.18435.200.camel@localhost> References: <4ABC2F40.7020905@gmail.com> <1253893711.18435.200.camel@localhost> Content-Type: text/plain Date: Fri, 25 Sep 2009 16:31:00 -0000 Message-Id: <1253894712.18435.201.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00539.txt.bz2 On Fri, 2009-09-25 at 17:48 +0200, Laurent GUERBY wrote: > Hi, > > I'd say from the symptoms tasking doesn't work at all, could you try > with a simpler testcase: > > -- begin tt.adb > with Ada.Text_IO; use Ada.Text_IO; > procedure TT is > task T; > task body T is > begin > Put_Line ("task"); > end; > begin > Put_Line ("main"); > end; > -- end tt.adb > > To my knowledge once "created" an Ada task will immediately start > executing user program code with magic synchronization lock. with => without Laurent