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 19:53:42 +0200
Date: 2006-11-29T19:53:42+02:00	[thread overview]
Message-ID: <456dc966$0$31542$39db0f71@news.song.fi> (raw)
In-Reply-To: <873b82qi90.fsf@ludovic-brenta.org>

Ludovic Brenta wrote:
> Niklas Holsti writes:
> 
>>I'm grateful for your advice. Thanks to the Ada run-time checks it
>>has been a while since I had to fight with this kind of bug, but I
>>hope it will come back to me -- and then go away again :-)
> 
> 
> Same here; for the past coupld of months, I've been trying, on and
> off, to fight a nasty heap corruption bug in GPS 3.1.3, 4.0.0 and now
> 4.1.1.  I've documented the various symptoms in Debian bugs #393636,
> #400876 and #400883.  I realised that my skills are insufficient for
> such a large-scale undertaking; Valgrind detected more that 10 million
> errors during a short run of GPS, most of which in Python or GTK+
> libraries, and not all of which are necessarily serious.  Any advice?

Ouch. Makes me feel comforted, in a way, but sorry, no advice yet.

> Today I replaced one instance of Unchecked_Deallocation with a no-op
> and behold, GPS no longer crashes.  Obviously, it leaks, but that's
> not as bad as crashing or hanging.

My application is a batch computation, not interactive, so I 
deliberately avoid deallocation and cheerfully let all low-turnover 
allocations leak. (I know this will bite me if/when I try to build a GUI 
for this application.) So I have only a small number of access types 
where dangling pointers may occur (I think).

> I'm thinking maybe I should instrument access types to use debug
> pools, but there are too many of them.

What do you think of a GNAT option to make debug-pools the default? 
Would it make sense?

> That's obviously not on Windows; sorry for hijacking your thread,
> Niklas :)

Feel free, it seems my problem is not Windows-specific, either.

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



  reply	other threads:[~2006-11-29 17:53 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
2006-11-29 16:40       ` Niklas Holsti
2006-11-29 17:23         ` Ludovic Brenta
2006-11-29 17:53           ` Niklas Holsti [this message]
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