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-Thread: a07f3367d7,fea50f781bb229dc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?UTF-8?B?QmrDtnJu?= Persson Newsgroups: comp.lang.ada Subject: Re: About static libraries and Debian policy Followup-To: comp.lang.ada Date: Wed, 19 May 2010 23:59 +0200 Message-ID: <85j595F1lqU1@mid.individual.net> References: <85f51aeb-cac9-4591-921a-a7f50c8ef142@a21g2000yqn.googlegroups.com> <1pup1z7a4f1pq$.of30sejrqe4m.dlg@40tude.net> <87hbmae33k.fsf@ludovic-brenta.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: individual.net h9LtPiR8aZXmGcCz6VaLZAGREBq4j8qg/4LMKNu/vgeZw1/KZC Cancel-Lock: sha1:4ACjh8VVCzbsvcXicqFsFtI+6R0= User-Agent: KNode/4.4.2 Xref: g2news2.google.com comp.lang.ada:11782 Date: 2010-05-19T23:59:00+02:00 List-Id: Ludovic Brenta wrote: > Traceback is always available, either in symbolic or numeric form. To > get the symbolic form, you need the -dbg package installed. Is that libgnat-4.3-dbg that needs to be installed (on Etch)? I can't get symbolic traceback to work; I get Storage_Error instead. Below is my test program and how I compile and run it. Do you have any idea of what's wrong? 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.Symbolic_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 -- Björn Persson PGP key A88682FD