From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: stacktrace gan on raspberry pi Date: Tue, 11 May 2021 08:37:15 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cancel-Lock: sha1:Cv2LjXYfaVxovKz5UvHhjP/opHk= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61974 List-Id: Björn Lundin 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".