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=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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Wed, 29 Nov 2006 16:06:58 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Possible heap problem on Windows, help sought References: <456d72b1$0$31519$39db0f71@news.song.fi> In-Reply-To: <456d72b1$0$31519$39db0f71@news.song.fi> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <456d9441$0$24608$39db0f71@news.song.fi> Organization: TDC Song Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1164809281 news.song.fi 24608 81.17.205.61:33026 X-Complaints-To: abuse@song.fi Xref: g2news2.google.com comp.lang.ada:7738 Date: 2006-11-29T16:06:58+02:00 List-Id: 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 . @ .