comp.lang.ada
 help / color / mirror / Atom feed
From: Pete <pete@nowhere.org>
Subject: gnat3.14p on solaris 9 crashes
Date: Tue, 19 Nov 2002 04:16:06 GMT
Date: 2002-11-19T04:16:06+00:00	[thread overview]
Message-ID: <pan.2002.11.18.23.23.47.499691.11234@nowhere.org> (raw)

Hi,

	Has anyone had a successful port of gnat onto solaris 9? I can
get basic ada programs to run but when I try to use tasks there is a
crash in ada_init. I've tried recompiling gnat on solaris 9 but that
didn't work either. Everything works fine on solaris 7, and 8. For
example the following simple program crashes on solaris 9. I don't
even have to start the task to get a seg fault. Also, if I replace
the libthread.so with libthread.so from solaris 8, it doesn't crash
but it just hangs. Maybe gnat is assuming something it shouldn't 
about the solaris threading model?

with Text_Io;

procedure Ada_Test is
	task Do_It is
		entry Start;
		entry Stop;
	end Do_It;

	task body Do_It is
	begin
		select
		   accept Start;
			   while true loop
				  Text_Io.Put_Line("Hello world");
			      select
			         accept Stop;
				     exit;
		          or
		             delay 1.0;
		          end select;	      
			   end loop;
		   or
		      terminate;
	       end select;
       end Do_It;

begin
   null;
end Ada_Test;

- pete



             reply	other threads:[~2002-11-19  4:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-19  4:16 Pete [this message]
2002-11-19  8:56 ` gnat3.14p on solaris 9 crashes Thierry Lelegard
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox