Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian GCC (http://www.linux-archive.org/debian-gcc/)
-   -   Bug#582485: gnat-4.3: symbolic tracebacks broken; raise Storage_Error (http://www.linux-archive.org/debian-gcc/374124-bug-582485-gnat-4-3-symbolic-tracebacks-broken-raise-storage_error.html)

Ludovic Brenta 05-20-2010 07:48 PM

Bug#582485: gnat-4.3: symbolic tracebacks broken; raise Storage_Error
 
Package: gnat-4.3
Version: 4.3.0-1
Severity: important

(from Björn Persson):

with Ada.Text_IO;
with GNAT.Traceback.Symbolic;

procedure Stack_Trace_Test is

Oopsie : Exception;

procedure Eledile is
begin
raise Oopsie with "How unfortunate!";
end Eledile;

procedure Crocophant is
begin
Eledile;
end Crocophant;

begin
Crocophant;
exception
when E : others =>
Ada.Text_IO.Put_Line(GNAT.Traceback.Symbolic.Symbo lic_Traceback(E));
end Stack_Trace_Test;

$ gnatmake stack_trace_test.adb -g -bargs -E
gcc-4.3 -c -g stack_trace_test.adb
gnatbind -E -x stack_trace_test.ali
gnatlink stack_trace_test.ali -g
$ ./stack_trace_test

Execution terminated by unhandled exception
Exception name: STORAGE_ERROR
Message: stack overflow (or erroneous memory access)
Call stack traceback locations:
0xb7e7c56b
$ addr2line --functions --exe=stack_trace_test 0xb7e7c56b
??
??:0




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87hbm2bbii.fsf@ludovic-brenta.org">http://lists.debian.org/87hbm2bbii.fsf@ludovic-brenta.org


All times are GMT. The time now is 05:39 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.