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,bc87a0d17d684f50,start X-Google-Attributes: gid103376,public From: witt@mppmu.mpg.de (Myriam Witt) Subject: Help with gnat storage error Date: 1997/06/23 Message-ID: <5olggu$dcg$1@cdserv.rzg.mpg.de>#1/1 X-Deja-AN: 251978328 Organization: Rechenzentrum der Max-Planck-Gesellschaft in Garching Newsgroups: comp.lang.ada Date: 1997-06-23T00:00:00+00:00 List-Id: 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)