comp.lang.ada
 help / color / mirror / Atom feed
* gnat3.14p on solaris 9 crashes
@ 2002-11-19  4:16 Pete
  2002-11-19  8:56 ` Thierry Lelegard
  0 siblings, 1 reply; 2+ messages in thread
From: Pete @ 2002-11-19  4:16 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-19  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-19  4:16 gnat3.14p on solaris 9 crashes Pete
2002-11-19  8:56 ` Thierry Lelegard

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