comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Garbage Collection ???
Date: Fri, 13 Apr 2012 22:06:17 +0200
Date: 2012-04-13T22:06:17+02:00	[thread overview]
Message-ID: <1ueoh3nw8oobm$.1ww19ebcvg7v4$.dlg@40tude.net> (raw)
In-Reply-To: 4f888010$0$2641$703f8584@news.kpn.nl

On Fri, 13 Apr 2012 21:27:23 +0200, ldries46 wrote:

> I have been trying to find the place where a faulty pointer could have been 
> introduced and I come to the conclusion that the return of a procedure in 
> the place.

Note that pointers are most likely passed by value. This means that the way
you are debugging it does not make much sense. Furthermore, dangling
pointers usually manifest themselves after corrupting the program state
beyond any recognition. Thus the observed effect is a consequence of a bug
many source lines and executed instructions away.

You may try to use the GNAT Debug Pool to locate the problem:

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/The-GNAT-Debug-Pool-Facility.html

Or you may trace all allocations, deallocations, dereferences of the
pointer type. Put the trace into a DB or Excel, sort it by the address key
in order to determine the first place where some pointer gets dangled.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-04-13 20:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13 12:14 Garbage Collection ??? ldries46
2012-04-13 13:20 ` Dmitry A. Kazakov
2012-04-13 19:27   ` ldries46
2012-04-13 20:06     ` Dmitry A. Kazakov [this message]
2012-04-13 22:49     ` Brian Drummond
2012-04-14  3:21       ` ldries46
2012-04-14 18:21         ` Robert A Duff
2012-04-18  9:07           ` Julian Leyh
2012-04-19 14:36             ` Robert A Duff
2012-04-19 20:26               ` Randy Brukardt
2012-04-20  7:11                 ` Dmitry A. Kazakov
2012-04-21  0:46                   ` Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
1992-04-22 18:55 Garbage collection? dog.ee.lbl.gov!overload.lbl.gov!agate!spool.mu.edu!yale.edu!jvnc.net!darw
1992-04-21 23:48 Robert I. Eachus
1992-04-21 23:02 Rick Hudson
1992-04-21 21:09 titan.ksc.nasa.gov!mcroberts
replies disabled

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