comp.lang.ada
 help / color / mirror / Atom feed
From: Duncan Sands <baldrick@free.fr>
To: comp.lang.ada@ada-france.org
Cc: Niklas Holsti <niklas.holsti@nospam.please>
Subject: Re: Possible heap problem on Windows, help sought
Date: Wed, 29 Nov 2006 15:20:00 +0100
Date: 2006-11-29T15:25:01+01:00	[thread overview]
Message-ID: <mailman.30.1164810040.4389.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <456d9441$0$24608$39db0f71@news.song.fi>

> 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.

Ciao,

Duncan.



  reply	other threads:[~2006-11-29 14:20 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 [this message]
2006-11-29 15:04     ` Alex R. Mosteo
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