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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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 05:28:27 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Howto debug seg-faulting Ada 95 code? Date: Tue, 3 Sep 2002 07:15:52 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <1f358d66.0208302358.6f1c6a39@posting.google.com> <1f358d66.0209030138.45302a4@posting.google.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1031055422 69804 137.194.161.2 (3 Sep 2002 12:17:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 3 Sep 2002 12:17:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2711.0600 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Original-Cc: karlran@hotmail.com Xref: archiver1.google.com comp.lang.ada:28694 Date: 2002-09-03T07:15:52-05:00 Compiling with -fstack-check results in exactly the same behavior, unless the environment variable GNAT_STACK_LIMIT is set -- in which case STORAGE_ERROR is raised with the message "stack overflow detected" if the GNAT_STACK_LIMIT is set below 6170. It would be a good thing to read carefully the GNAT User's Guide section on stack checking -- particularly with regard to the environment task -- since it is in the environment task that you are experiencing stack overflow. With regard to "ACT-certified" Linux distributions, RedHat 7.2 isn't "certified" either -- only 6.2, if I recall. The only problem I encountered with GNAT on RedHat 7.2 was related to support for symbolic call-stack tracing, and I fixed those problems myself. The last time I looked at SuSe was in early 1999 when I evaluated Slackware, SuSe and RedHat. I decided against SuSe for reasons unrelated to GNAT -- my preference for System V over BSD, and the fact that the SuSe English documentation was clearly translated (from German?) by persons for whom English is not their native tongue. I preferred the better (though imperfect) English of the RedHat distribution for the sake of my customer. ----- Original Message ----- From: "Karl Ran" Newsgroups: comp.lang.ada To: Sent: September 03, 2002 4:38 AM Subject: Re: Howto debug seg-faulting Ada 95 code? > "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 > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >