comp.lang.ada
 help / color / mirror / Atom feed
From: "Anthony E. Glover" <aeg@hiwaay.net>
Subject: SGI N32 Program Error
Date: 1998/11/27
Date: 1998-11-27T00:00:00+00:00	[thread overview]
Message-ID: <365F5AE3.E58F1678@hiwaay.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

SGI's tech support line is off for the holidays, so I thought I would
give the net a try.

My environment is as follows:

SGI Irix 6.2
SGI Ada95 1.3 (gnat 3.11b, I think)

I have tried switching from '-o32' to '-n32' binaries; however,
when I try to run my new '-n32' executable, I get 'program error'
exceptions raised.  Upon debugging the executable, I believe I
might have come across a code generation problem, or maybe I 
just don't understand something about Ada95.  The program error
appears to be comming from a de-reference of a pointer.  This
bad pointer appears to be comming from an 'in out' of a procedure
call.  This is my situation: I have a list type that is defined
as a record of three pointers, head, handle, and tail.  I pass a
variable of this list type to a procdure as an 'in out' parameter.
Prior to calling the routine, the variable has 0x0's for all
fields.  Immediately upon stepping into the routine, the 'in out'
parameter now has values in the three fields.  Of course these
new values are not good pointers.  I do not get these exceptions
raised when compiled as '-o32' so I believe that it is a '-n32'
code generation problem.  I will try and isolate the problem into
a much smaller piece of code next week.

Does anyone have any idea as to what is happening????

Thanks,
Tony

-- 
Tony Glover
ELMCO, Inc.
(256)721-6317
aeg@hiwaay.net

[-- Attachment #2: Card for Anthony E. Glover --]
[-- Type: text/x-vcard, Size: 274 bytes --]

begin:          vcard
fn:             Anthony E. Glover
n:              Glover;Anthony E.
org:            ELMCO, Inc.
email;internet: aeg@hiwaay.net
title:          Senior Software Engineer
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


             reply	other threads:[~1998-11-27  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-27  0:00 Anthony E. Glover [this message]
1998-11-30  0:00 ` SGI N32 Program Error Anthony E. Glover
replies disabled

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