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-Thread: 103376,d139a44b4dd6bc63 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Possible heap problem on Windows, help sought Date: Wed, 29 Nov 2006 16:04:57 +0100 Message-ID: <4t5lq7F12jm1nU1@mid.individual.net> References: <456d72b1$0$31519$39db0f71@news.song.fi> <456d9441$0$24608$39db0f71@news.song.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net 27q3fy4URBGDbf8OmmyntQXzd8UvWJFbix/6PU8UFFbZxskc4= User-Agent: KNode/0.10.4 Xref: g2news2.google.com comp.lang.ada:7740 Date: 2006-11-29T16:04:57+01:00 List-Id: Duncan Sands wrote: >> Well I made a small test program using my ordinary compilation options >> (-g -O2 -gnato -fstack-check) and it happily allocated and used 300 MB >> of heap, as I asked it to, so it seems that this is not a heap problem. >> Sorry for a mistaken hypothesis, I should have checked it before posting >> my question. But the problem remains and any advice will be gratefully >> received, although I now suspect that the cause may be a programming >> error, a Heisenbug that disappears in the debugger and does not manifest >> on Linux for some reason. > > It could well be memory corruption or the use of an uninitialized > variable. These both have a tendency to manifest themselves differently in > the debugger. Try running your program under valgrind. Also check Gnat.Debug_Pools (Is it already in Gnat 3.15p?) With the default stack size, a windows program will lock when creating the ~250 task, but you said you didn't use tasks.