comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@nospam.please>
Subject: Re: Possible heap problem on Windows, help sought
Date: Wed, 29 Nov 2006 16:06:58 +0200
Date: 2006-11-29T16:06:58+02:00	[thread overview]
Message-ID: <456d9441$0$24608$39db0f71@news.song.fi> (raw)
In-Reply-To: <456d72b1$0$31519$39db0f71@news.song.fi>

Niklas Holsti (that's me) wrote:

> I'm using Gnat 3.15p (why change if it works ;-) on both MS Windows XP 
> and Linux (Debian) and having some problems on the Windows platform
...
> My compiled Ada application runs fine on Linux both for large and small 
> jobs. On Windows it works for small jobs but stops in the middle for 
> larger ones, with no error or exception message. Here "large" means 
> about 250 - 300 MB of heap. I have some catch-all exception handlers at 
> various levels of the software that should report exceptions using 
> Text_IO, but nothing appears.
> 
> The funny thing is that if I run the application under gdb on Windows it 
> works for large jobs too.

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.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .



  parent reply	other threads:[~2006-11-29 14:06 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 [this message]
2006-11-29 14:20   ` Duncan Sands
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