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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7fe1f0669a9fe9d X-Google-Attributes: gid103376,public From: Stephen Arnold Subject: Re: GNAT implementation bug? (or my code) Date: 2000/04/14 Message-ID: <38F7935B.22173D26@ensco.com>#1/1 X-Deja-AN: 611290802 Content-Transfer-Encoding: 7bit References: <38F5EC37.DED92CDE@ensco.com> <38F79059.27632CBE@averstar.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Concentric Internet Services Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-14T00:00:00+00:00 List-Id: 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