comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: stacktrace gan on raspberry pi
Date: Tue, 11 May 2021 08:37:15 +0100	[thread overview]
Message-ID: <ly5yzpvhzo.fsf@pushface.org> (raw)
In-Reply-To: s7bldf$kei$1@dont-email.me

Björn Lundin <b.f.lundin@gmail.com> writes:

> Exception raised : GNU.DB.SQLCLI.INVALID_FUNCTION_SEQUENCE
>
> Message : [Proc=SQLFetch][Server=][State=HY010][unixODBC][Driver
> Manager]Function sequence error
> raised GNU.DB.SQLCLI.INVALID_FUNCTION_SEQUENCE :
> [Proc=SQLFetch][Server=][State=HY010][unixODBC][Driver
> Manager]Function sequence error
> Call stack traceback locations:
> 0xaaaab8fc2b84 0xaaaab8fc5924 0xaaaab900c364 0xaaaab90024dc
> 0xaaaab8fbab48 0xaaaab8fbe364 0xaaaab8fb9848 0xffffa687c08c
> 0xaaaab8fb9898
>
>
> but addr2line gives
>
> ubuntu@ubuntu:~/svn/wcs-std/target/message$ addr2line -e
> ./message_utility 0xaaaab8fc2b84 0xaaaab8fc5924 0xaaaab900c364 
> 0xaaaab90024dc 0xaaaab8fbab48 0xaaaab8fbe364 0xaaaab8fb9848
> 0xffffa687c08c 0xaaaab8fb9898
> ??:0
> ??:0
> ??:0
> ??:0
> ??:0
> ??:0
> ??:0
> ??:0
> ??:0

I think you need to compile and link your code with -g to rsp generate &
preserve symbol information. In a GPR, this should do the trick:

   package Builder is
      for Default_Switches ("ada") use ("-g");
   end Builder;

Also, -gnateE should "generate extra information in exception messages".

  parent reply	other threads:[~2021-05-11  7:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 16:01 stacktrace gan on raspberry pi Björn Lundin
2021-05-10 16:53 ` Joakim Strandberg
2021-05-11  8:28   ` Björn Lundin
2021-05-11  7:37 ` Simon Wright [this message]
2021-05-11  8:27   ` Björn Lundin
2021-05-11  9:51     ` Simon Wright
2021-05-11 11:17       ` Dmitry A. Kazakov
2021-05-11 16:32         ` Björn Lundin
replies disabled

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