From: Domenico Giannini <ari@teseo.it>
Subject: stack overflow on GNAT 3.09 (linux)
Date: 1997/06/18
Date: 1997-06-18T00:00:00+00:00 [thread overview]
Message-ID: <33A79DE8.9392E2C@teseo.it> (raw)
-- I have same problems with stack overflow with GNAT 3.09 for Linux.
-- Some programs abort with "Segmentation fault" and some others lost
-- the value of the default parameters of some procedures.
--
-- Can i change some parameter of Gnat to avoid this problem?
-- Gnat 4.00 for Linux has the same limitations?
with Text_Io;
use Text_Io;
procedure The_Test is
-- LEN:constant:=1397748; -- Terminate correctly
LEN:constant:=1397749; -- Terminate with Segmentation fault
procedure Do_The_Test_2 is
str:string(1..LEN):=(others => ' ');
begin
put_line("Hello 2 !");
end Do_The_Test_2;
procedure Do_The_Test_1 is
str:string(1..LEN):=(others => ' ');
begin
put_line("Hello 1 !");
do_the_test_2;
end Do_The_Test_1;
procedure Do_The_Test is
str:string(1..LEN):=(others => ' ');
begin
put_line("Hello !");
do_the_test_1;
end Do_The_Test;
begin -- The_Test
put_line("Start !");
do_the_test;
put_line("The End !");
end The_Test;
--------------------------------------------------------
Applicazioni Ricerche Informatica tel. +39 80 5482012
Via Fanelli 224 DS/10 fax. +39 80 5482012
70126 BARI -- ITALY -- Email ari@teseo.it
reply other threads:[~1997-06-18 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox