public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Laurent GUERBY <laurent@guerby.net>
To: Dave Korn <dave.korn.cygwin@googlemail.com>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: Any tips for debugging a GNAT tasking implementation problem?
Date: Fri, 25 Sep 2009 16:05:00 -0000	[thread overview]
Message-ID: <1253893711.18435.200.camel@localhost> (raw)
In-Reply-To: <4ABC2F40.7020905@gmail.com>

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.

Sincerely,

Laurent

On Fri, 2009-09-25 at 03:47 +0100, Dave Korn wrote:
> Hi all,
> 
>   Over on the cygwin-improvements branch(*) I've got a fairly nifty fully
> POSIX-based port of Ada, but there's one FAIL on the gnat testsuite that I'm
> trying to debug.  It could be a bug in the port, or the testcase might have
> stressed an underlying bug in Cygwin's pthread functions.  I'm hoping to get
> some pointers to help me understand the architecture of the tasking control in
> GNAT.
> 
>   The failing case is gnat.dg/task_stack_align.adb, which fails like so:
> 
> > $ ./task_stack_align.exe
> > 
> > raised TASKING_ERROR : Failure during activation
> > 
> > $



  reply	other threads:[~2009-09-25 15:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25  5:39 Dave Korn
2009-09-25 16:05 ` Laurent GUERBY [this message]
2009-09-25 16:31   ` Laurent GUERBY
2009-09-26 20:24     ` Dave Korn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1253893711.18435.200.camel@localhost \
    --to=laurent@guerby.net \
    --cc=dave.korn.cygwin@googlemail.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).