comp.lang.ada
 help / color / mirror / Atom feed
From: witt@mppmu.mpg.de (Myriam Witt)
Subject: Help with gnat storage error
Date: 1997/06/23
Date: 1997-06-23T00:00:00+00:00	[thread overview]
Message-ID: <5olggu$dcg$1@cdserv.rzg.mpg.de> (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)






             reply	other threads:[~1997-06-23  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-23  0:00 Myriam Witt [this message]
1997-06-24  0:00 ` Help with gnat storage error 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
replies disabled

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