comp.lang.ada
 help / color / mirror / Atom feed
* SGI N32 Program Error
@ 1998-11-27  0:00 Anthony E. Glover
  1998-11-30  0:00 ` Anthony E. Glover
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony E. Glover @ 1998-11-27  0:00 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SGI N32 Program Error
  1998-11-27  0:00 SGI N32 Program Error Anthony E. Glover
@ 1998-11-30  0:00 ` Anthony E. Glover
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony E. Glover @ 1998-11-30  0:00 UTC (permalink / raw)


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

Just an update on this problem.
By moving the call above some of the other code, I'm able to eliminate
this
problem.  However, the algorithm does not let me move the line.
But, when looking at the code in dissasembly view, there is no
difference in the call.  Therefore, I believe that the error
may be a side effect of memory or register usage in the 
preceding calls.  Still not sure.  Any help would be appreciated.

Thanks,
Tony

[-- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-11-30  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-27  0:00 SGI N32 Program Error Anthony E. Glover
1998-11-30  0:00 ` Anthony E. Glover

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