comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: A bug in Gnat, or in my code?
Date: Thu, 11 Mar 2004 18:15:28 GMT
Date: 2004-03-11T18:15:28+00:00	[thread overview]
Message-ID: <4124c.85798$dP1.242683@newsc.telia.net> (raw)
In-Reply-To: <slrnc517ir.dap.randhol+valid_for_reply_from_news@k-083152.nt.ntnu.no>

Preben Randhol wrote:

> % apt-get install gnat-3.3
> 
> (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:
> 
> 
>    % gnatmake -gnatv -f klyv_test
>    gcc-3.3 -c -gnatv klyv_test.adb
> 
>    GNAT 3.3.3 (Debian)
>    Copyright 1992-2002 Free Software Foundation, Inc.
> 
>    Compiling: klyv_test.adb (source file time stamp: 2004-03-11 17:12:00)
>     45 lines: No errors
>    gnatbind -x klyv_test.ali
>    gnatlink klyv_test.ali
>    k-083152(randhol:~)% ./klyv_test 
>    Ada 95 = morsomt => Ada 95 & morsomt
> 
>    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 
message as you:

    [bjorn@groucho Parafras]$ ./error

    raised STORAGE_ERROR : stack overflow (or erroneous memory access)
    [bjorn@groucho Parafras]$ ./klyv_test
    Ada 95 = morsomt => Ada 95 & morsomt

    raised STORAGE_ERROR : stack overflow (or erroneous memory access)

Running in GDB (inside GPS) I first get "Program received signal 
SIGSEGV, Segmentation fault." If I try to continue from there, 
Storage_Error is raised and the program terminates. So the SIGSEGV 
signal is translated to a Storage_Error.

-- 
Björn Persson

jor ers @sv ge.
b n_p son eri nu




  reply	other threads:[~2004-03-11 18:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-11  3:18 A bug in Gnat, or in my code? Björn Persson
2004-03-11  7:47 ` Preben Randhol
2004-03-11 12:48   ` Georg Bauhaus
2004-03-11 13:59     ` Björn Persson
2004-03-12 16:21       ` Florian Villoing
2004-03-12 23:01         ` Björn Persson
2004-03-11 14:29   ` Björn Persson
2004-03-11 14:59     ` Preben Randhol
2004-03-11 17:08       ` Björn Persson
2004-03-11 17:14         ` Preben Randhol
2004-03-11 18:15           ` Björn Persson [this message]
2004-03-11 15:08     ` Preben Randhol
2004-03-12  2:59 ` Björn Persson
2004-03-12  5:25   ` Per Sandberg
2004-03-12 23:01     ` Björn Persson
2004-03-12 11:11   ` Manuel Collado
2004-03-12 23:01     ` Björn Persson
replies disabled

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