comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Arnold <arnold.steve@ensco.com>
Subject: Re: GNAT implementation bug? (or my code)
Date: 2000/04/14
Date: 2000-04-14T00:00:00+00:00	[thread overview]
Message-ID: <38F7935B.22173D26@ensco.com> (raw)
In-Reply-To: 38F79059.27632CBE@averstar.com

Tucker Taft wrote:
> 
> It compiles and works fine on our Solaris AdaMagic Ada95 compiler.
> See the output below.
> 
> One possibility might be that the default stack size on the
> GNAT run-time system on RH6.1 is insufficient for your test.
> 
> > ...
> > > Dequeued item:  4
> > > Dequeued item:  3
> > > Something is terribly wrong. There was as unanticipated exception:
> > > STORAGE_ERROR
> > > stack overflow (or erroneous memory access)

> ----------- output from q_test ---------
> [snip]
> Adding known values to A and dequeueing them.
> Dequeued item:  17
> Dequeued item:  13
> Dequeued item:  11
> Dequeued item:  10
> Dequeued item:  8
> Dequeued item:  4
> Dequeued item:  3
> Dequeued item:  1
> 
> Testing Enqueue, Dequeue, and Front.
> Filling other queues with 8 random integers...

Erm...  With a little help, I found the problem (and posted on my other
thread) and it seems like my code should've bombed on Solaris too (as I
was trying to free the same memory twice -> Remove calls Clear, which
frees Orphan and sets the list pointers to null, then it jumps back to
Remove, which tried to free Orphan again).  Any thoughts?

(thanks for trying my code, though :)

Steve




  reply	other threads:[~2000-04-14  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <38F5EC37.DED92CDE@ensco.com>
2000-04-14  0:00 ` GNAT implementation bug? (or my code) Tucker Taft
2000-04-14  0:00   ` Stephen Arnold [this message]
2000-04-15  0:00     ` Robert Dewar
2000-04-16  0:00       ` Simon Wright
replies disabled

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