comp.lang.ada
 help / color / mirror / Atom feed
* Help with gnat storage error
@ 1997-06-23  0:00 Myriam Witt
  1997-06-24  0:00 ` Kirk Beitz
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Myriam Witt @ 1997-06-23  0:00 UTC (permalink / raw)



Hello....

I'm using gnat's binary distribution
gnat-3.09-sparc-sun-solaris2.4-bin.tar.gz
on a SUN Ultra 2, Solaris 2.5.1 (anyone knows about a 2.5.1 binary?).


During compile-/linktime I get some messages 
'warning: creation of object of this type may raise Storage_Error'
from code like 
---
   type T_Polygon_XYZ (Max_Punkte: Natural := 1) is
      record
        Punkte : Natural   := Max_Punkte;  -- Anzahl der Polygonpunkte
        X : T_Vector_Float(1..Max_Punkte) := (others => 0.0);
        Y : T_Vector_Float(1..Max_Punkte) := (others => 0.0);
        Z : T_Vector_Float(1..Max_Punkte) := (others => 0.0);
      end record;

where

   type  T_Vector_Float   is array(integer range <>) of Float;


At runtime my (pure ADA) executables do what they are supposed to but
at exit-time I get: 

raised STORAGE_ERROR

and have to quit the program with ^C. gdb says:

Program received signal SIGBUS, Bus error.
0x10debc in _fini ()
(gdb) bt
#0  0x10debc in _fini ()
#1  0xef69784c in _exithandle ()
#2  0xef6f4174 in exit ()


Funny is the following: some (not all) of my executables terminate
correctly
when called from the directory they are located in but raise the above
storage
error when called from elsewhere (e.g. ../exename).

Any hints?

Thanks in advance

(writing from my girlfriend's account)
--
Eike Kr"omer                                 IABG - Ottobrunn
kroemer@iabg.de
08106/20626                                  089/6088-3313 
              "...but plagiarize, plagiarize, plagiarize, 
            only be sure to always call it please -- research"  
                       (Tom Lehrer: Lobachevsky)






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

end of thread, other threads:[~1997-06-28  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-23  0:00 Help with gnat storage error Myriam Witt
1997-06-24  0:00 ` Kirk Beitz
1997-06-24  0:00 ` Stephen Leake
1997-06-25  0:00   ` Peter Hermann
1997-06-26  0:00 ` Myriam Witt
1997-06-28  0:00 ` Robert Dewar

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