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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ab4f67f984ef04f9 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Is the Ada run-time required to detect out-of-memory conditions? Date: 21 May 2004 04:13:43 -0700 Organization: http://groups.google.com Message-ID: <5ad0dd8a.0405210313.70f9339d@posting.google.com> References: <878yfmiuak.fsf@insalien.org> NNTP-Posting-Host: 83.27.32.209 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1085138023 16424 127.0.0.1 (21 May 2004 11:13:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 21 May 2004 11:13:43 +0000 (UTC) Xref: controlnews3.google.com comp.lang.ada:738 Date: 2004-05-21T04:13:43-07:00 List-Id: Hello, > I have received a bug report [1] against GNAT 3.15p and reproduced the > same behaviour with GCC 3.4. I would like the advice of language > lawyers on the issue. > > [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=250076 > > The program allocates memory in an infinite loop using "new" and the > default storage pool, and of course exhausts all available storage. > The issue is whether or not Storage_Error should be raised. With > GNAT, no exception is raised; instead the program receives SIGKILL > (not even SIGSEGV) from Linux. I noticed, that if the program allocates memory in 6Kb chunks or larger, Storate_Error is raised. If the chunk size is 5Kb or less, the program only prints "Killed". In between I have not tested. Also, shouldn't cases like this one, as a rule, eventually become part of ACATS? Regards, Wojtek