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 X-Received: by 2002:a37:7906:: with SMTP id u6mr23568440qkc.225.1620665616364; Mon, 10 May 2021 09:53:36 -0700 (PDT) X-Received: by 2002:a25:3241:: with SMTP id y62mr33624281yby.73.1620665616193; Mon, 10 May 2021 09:53:36 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 10 May 2021 09:53:35 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=188.150.24.77; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 188.150.24.77 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0e67bc90-ac8c-4ed4-bd49-df5be5da0317n@googlegroups.com> Subject: Re: stacktrace gan on raspberry pi From: Joakim Strandberg Injection-Date: Mon, 10 May 2021 16:53:36 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61973 List-Id: m=C3=A5ndag 10 maj 2021 kl. 18:01:53 UTC+2 skrev bj=C3=B6rn lundin: > Hi!=20 > I got a raspberry pi 4 - 8 Gb, with=20 > Ubuntu 20.04 LTS on.=20 >=20 > I use the gnat provided by apt -=20 >=20 >=20 > ubuntu@ubuntu:~/svn/wcs-std/target/message$ gnatls -v=20 >=20 > GNATLS 9.3.0=20 > Copyright (C) 1997-2019, Free Software Foundation, Inc.=20 >=20 > Source Search Path:=20 > =20 > /usr/lib/gcc/aarch64-linux-gnu/9/adainclude=20 >=20 >=20 > Object Search Path:=20 > =20 > /usr/lib/gcc/aarch64-linux-gnu/9/adalib=20 >=20 >=20 > Project Search Path:=20 > =20 > /home/ubuntu/svn/wcs-std/config/gpr=20 > /home/ubuntu/svn/wcs-std/config/gpr/unix=20 > /usr/aarch64-linux-gnu/lib/gnat=20 > /usr/aarch64-linux-gnu/share/gpr=20 > /usr/share/gpr=20 > /usr/lib/gnat=20 >=20 >=20 > I seem to get some info out on a crash=20 >=20 > Exception raised : GNU.DB.SQLCLI.INVALID_FUNCTION_SEQUENCE=20 >=20 > Message : [Proc=3DSQLFetch][Server=3D][State=3DHY010][unixODBC][Driver=20 > Manager]Function sequence error=20 > raised GNU.DB.SQLCLI.INVALID_FUNCTION_SEQUENCE :=20 > [Proc=3DSQLFetch][Server=3D][State=3DHY010][unixODBC][Driver Manager]Func= tion=20 > sequence error=20 > Call stack traceback locations:=20 > 0xaaaab8fc2b84 0xaaaab8fc5924 0xaaaab900c364 0xaaaab90024dc=20 > 0xaaaab8fbab48 0xaaaab8fbe364 0xaaaab8fb9848 0xffffa687c08c 0xaaaab8fb989= 8=20 >=20 >=20 > but addr2line gives=20 >=20 > ubuntu@ubuntu:~/svn/wcs-std/target/message$ addr2line -e=20 > ./message_utility 0xaaaab8fc2b84 0xaaaab8fc5924 0xaaaab900c364=20 > 0xaaaab90024dc 0xaaaab8fbab48 0xaaaab8fbe364 0xaaaab8fb9848=20 > 0xffffa687c08c 0xaaaab8fb9898=20 > ??:0=20 > ??:0=20 > ??:0=20 > ??:0=20 > ??:0=20 > ??:0=20 > ??:0=20 > ??:0=20 > ??:0=20 >=20 >=20 > Is stacktracing not implemented (which i suspect it is not) or is there= =20 > another tool to use? (like atos on macos)=20 >=20 >=20 > --=20 > Bj=C3=B6rn Hi Bj=C3=B6rn, According to what I've heard but not checked it myself, the Ada-runtime for= the GNAT FSF compiler is not compiled with symbol information and it is th= erefore not possible to get stacktrace from exceptions that originate from = inside the standard library. However, you should be able to see the stack-t= race from your own code. Best regards, Joakim