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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,23d2475711dc99b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-11 10:15:32 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news.algonet.se!algonet!news.tele.dk!news.tele.dk!small.news.tele.dk!news-stoc.telia.net!news-stoa.telia.net!telia.net!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: sv, en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A bug in Gnat, or in my code? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: <4124c.85798$dP1.242683@newsc.telia.net> Date: Thu, 11 Mar 2004 18:15:28 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1079028928 217.209.116.179 (Thu, 11 Mar 2004 19:15:28 CET) NNTP-Posting-Date: Thu, 11 Mar 2004 19:15:28 CET Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:6248 Date: 2004-03-11T18:15:28+00:00 List-Id: Preben Randhol wrote: > % apt-get install gnat-3.3 >=20 > (I just love the package system in Debian. One command and it is > installed :-) ) Yes, that's nice. Yum does the same in Fedora, (And there's a version of = Apt for Fedora too.) > Now to the case. I removed both trims and now I get: >=20 >=20 > % gnatmake -gnatv -f klyv_test > gcc-3.3 -c -gnatv klyv_test.adb >=20 > GNAT 3.3.3 (Debian) > Copyright 1992-2002 Free Software Foundation, Inc. >=20 > Compiling: klyv_test.adb (source file time stamp: 2004-03-11 17:12:0= 0) > 45 lines: No errors > gnatbind -x klyv_test.ali > gnatlink klyv_test.ali > k-083152(randhol:~)% ./klyv_test=20 > Ada 95 =3D morsomt =3D> Ada 95 & morsomt >=20 > raised STORAGE_ERROR : stack overflow (or erroneous memory access) Okay, then I won't report it to Redhat. > Do you get a STORAGE_ERROR or do you get a segmentation fault? You could say I get both. :-) Running from a shell I get the same=20 message as you: [bjorn@groucho Parafras]$ ./error raised STORAGE_ERROR : stack overflow (or erroneous memory access) [bjorn@groucho Parafras]$ ./klyv_test Ada 95 =3D morsomt =3D> Ada 95 & morsomt raised STORAGE_ERROR : stack overflow (or erroneous memory access) Running in GDB (inside GPS) I first get "Program received signal=20 SIGSEGV, Segmentation fault." If I try to continue from there,=20 Storage_Error is raised and the program terminates. So the SIGSEGV=20 signal is translated to a Storage_Error. --=20 Bj=F6rn Persson jor ers @sv ge. b n_p son eri nu