comp.lang.ada
 help / color / mirror / Atom feed
From: petter.fryklund.konsult@dynamics.saab.se (Petter Fryklund)
Subject: Re: Stack Problem?
Date: 20 Jan 2003 02:05:06 -0800
Date: 2003-01-20T10:05:07+00:00	[thread overview]
Message-ID: <f74cb448.0301200205.5cab1bee@posting.google.com> (raw)
In-Reply-To: ba162549.0301161252.17eefbbe@posting.google.com

The problem was really an erronous free of an instance of a global
data array.

But for future ... what can we do about monitoring stack usage in
general. We're using several different GNAT's but this specific is
3.15 on Solaris 5.5, 5.6 or 5.8.


kcline17@hotmail.com (Kevin Cline) wrote in message news:<ba162549.0301161252.17eefbbe@posting.google.com>...
> petter.fryklund.konsult@dynamics.saab.se (Petter Fryklund) wrote in message news:<f74cb448.0301160210.3fa1bd66@posting.google.com>...
> > We are getting a SEGV out of realfree (/libc.so.1) call stack is
> > 
> > realfree
> > cleanfree
> > _malloc_unlocked
> > malloc
> > calloc
> > netconfig_dup
> > __rpc_getconfigip
> > gethostbyname_r
> > gnat__sockets__get_host_by_name
> > ....
> > 
> > Parameters sent from gnat__... seems to be alright. I've no idea about
> > the library, since it's not compiled with debug info.
> > 
> > I suspect that we've exceed the stack limit, but I can't find a way to
> > verify that. 
> 
> Crashes below malloc are almost always caused by heap
> corruption.  Your code or some library code has probably corrupted 
> the heap by freeing the same object twice, or by modifying an object
> after it was deallocated.



  reply	other threads:[~2003-01-20 10:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-16 10:10 Stack Problem? Petter Fryklund
2003-01-16 12:56 ` David C. Hoos, Sr.
2003-01-16 20:52 ` Kevin Cline
2003-01-20 10:05   ` Petter Fryklund [this message]
2003-01-21  7:06     ` Kevin Cline
  -- strict thread matches above, loose matches on Subject: below --
2003-01-20 12:16 David C. Hoos, Sr.
2003-01-21 17:24 ` Petter Fryklund
replies disabled

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