comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Possible heap problem on Windows, help sought
Date: Wed, 29 Nov 2006 16:04:57 +0100
Date: 2006-11-29T16:04:57+01:00	[thread overview]
Message-ID: <4t5lq7F12jm1nU1@mid.individual.net> (raw)
In-Reply-To: mailman.30.1164810040.4389.comp.lang.ada@ada-france.org

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.



  reply	other threads:[~2006-11-29 15:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 11:43 Possible heap problem on Windows, help sought Niklas Holsti
2006-11-29 11:54 ` Duncan Sands
2006-11-29 13:42   ` Niklas Holsti
2006-11-29 14:06 ` Niklas Holsti
2006-11-29 14:20   ` Duncan Sands
2006-11-29 15:04     ` Alex R. Mosteo [this message]
2006-11-29 16:40       ` Niklas Holsti
2006-11-29 17:23         ` Ludovic Brenta
2006-11-29 17:53           ` Niklas Holsti
2006-11-29 18:00             ` Ludovic Brenta
2006-12-01  1:05             ` Randy Brukardt
     [not found] ` <mailman.32.1164869912.4389.comp.lang.ada@ada-france.org>
2006-11-30 20:48   ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox