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!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!fu-berlin.de!uni-berlin.de!not-for-mail From: user@domain.invalid Newsgroups: comp.lang.ada Subject: Re: Is the Ada run-time required to detect out-of-memory conditions? Date: Fri, 21 May 2004 23:39:15 +0200 Message-ID: <2h7b84Fa2aefU1@uni-berlin.de> References: <878yfmiuak.fsf@insalien.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de VWK81H2f9SA3fXLNPX8bVAxxXGEnKgEqzkkba5bv8OdD7qpm0= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 X-Accept-Language: de-de, de, en-us, en In-Reply-To: <878yfmiuak.fsf@insalien.org> Xref: controlnews3.google.com comp.lang.ada:756 Date: 2004-05-21T23:39:15+02:00 List-Id: Ludovic Brenta wrote: > 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 > > ... > > PS. The original reported says that the program receives SIGSEGV. He > uses Linux 2.4.22. I use 2.4.26 and the program receives SIGKILL > instead. I don't know if this is a known change in the kernel's > behaviour. > Hi, I'm the original reporter of the bug. I forgot to mention that I limited the virtual memory of the process using 'ulimit -v 100000' in a bash. I'm very new to Ada, but I'm impressed of all the features. In parallel I'm developing a little library to make C programming easier. In this library I malloc'ed some "emergency memory" at the program start which is simply freed when the process gets out of memory. Then the error handler can at least raise an exception or print some warning. Perhaps the GNAT runtime library could use a similar approach. Roland