From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a59c0afeb6808e51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-03 02:38:55 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: karlran@hotmail.com (Karl Ran) Newsgroups: comp.lang.ada Subject: Re: Howto debug seg-faulting Ada 95 code? Date: 3 Sep 2002 02:38:55 -0700 Organization: http://groups.google.com/ Message-ID: <1f358d66.0209030138.45302a4@posting.google.com> References: <1f358d66.0208302358.6f1c6a39@posting.google.com> NNTP-Posting-Host: 80.134.16.122 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1031045935 2706 127.0.0.1 (3 Sep 2002 09:38:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 3 Sep 2002 09:38:55 GMT Xref: archiver1.google.com comp.lang.ada:28689 Date: 2002-09-03T09:38:55+00:00 List-Id: "David C. Hoos, Sr." wrote in message > This code runs perfectly well on my RedHat 7.2 > GNAT 3.14 system under my normal shell environment Thanks for your report. > I can make it segfault if I set the stacksize > limit to 6171 kbytes. With 6172 kbytes it runs OK. Would you please recompile my test code with '-fstack-check'? > So, there is no "software defect" as has been > suggested, but merely a case of failure to provide > an execution environment in which the program is to > execute, having adequate resources to accommodate > the program's design. Well, in Forian`s and in my case the compiled code fails to raise STORAGE_ERROR when compiled with '-fstack-check'! The result is a segmentation fault - but it can be worse, right? Another point is that neither Florina nor myself is using a ACT-certified Linux distribution :-/ Karl