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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Increasing GNAT's heap Date: Wed, 13 Nov 2013 09:21:05 +0100 Organization: A noiseless patient Spider Message-ID: <87habgiufi.fsf@ludovic-brenta.org> References: <1o29hesl8k6yk$.1kqputng2vdks$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="d46e6434f8e66b4835c82e1b4dd9d890"; logging-data="23197"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Jr+BngccyvTU6iMU9QXeD" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:ZUy6cPPgH3jdUvLF5eE8RhtMuZY= sha1:HtqVRdsyaQD4zHc56LJ6qWyPft4= X-Original-Bytes: 1679 Xref: number.nntp.dca.giganews.com comp.lang.ada:183847 Date: 2013-11-13T09:21:05+01:00 List-Id: "Dmitry A. Kazakov" writes: > Does anybody know a way to increase the heap size available for GNAT? It > crashes with famous GNAT BUG DETECTED, Storage_Error heap exhausted. > > GNAT 4.6.4 under Debian, testing, 32-bit Presuming the heap is really exhausted (i.e. the command "free" shows no free physical RAM and no free swap space left, and the command "top" shows the gnat1 process consuming close to 4 GiB of resident memory) then I'd suggest that you cannot increase the heap. So, you should compile smaller source files. I'd try to identify which subprogram causes the problem and place that subprogram in a compilation unit of its own (e.g. a private child unit). -- Ludovic Brenta.