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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.77.195 with SMTP id l186mr10504728itb.40.1516036954462; Mon, 15 Jan 2018 09:22:34 -0800 (PST) X-Received: by 10.157.11.12 with SMTP id a12mr728552ota.8.1516036954350; Mon, 15 Jan 2018 09:22:34 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.freedyn.net!open-news-network.org!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w142no1784004ita.0!news-out.google.com!s63ni5789itb.0!nntp.google.com!w142no1784000ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 15 Jan 2018 09:22:34 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.39; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.39 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4ff1db1f-cf2e-4683-9882-da9a907d07b0@googlegroups.com> Subject: Re: ADA.STRINGS.INDEX_ERROR : a-strunb.adb:782 From: Anh Vo Injection-Date: Mon, 15 Jan 2018 17:22:34 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:49921 Date: 2018-01-15T09:22:34-08:00 List-Id: On Monday, January 15, 2018 at 12:29:41 AM UTC-8, Dmitry A. Kazakov wrote: > On 15/01/2018 02:18, Mehdi Saada wrote: > > This if statement exactly, seems to raise > > "ADA.STRINGS.INDEX_ERROR : a-strunb.adb:782"(No indication of line, so I can't know more). > > There is a list of funny numbers following the exception message. Pass > that list to > > addr2line --exe= > > That will give you the stack trace. It is even better to use GNAT addition to print out full stack trace as shown in the snippet. -- ... exception when Err : others => Text_Io.Put_Line ("Houston we have a problem: " & Exceptions.Exception_Information (Err)); Text_Io.Put_Line ("Traceback => " & GNAT.Traceback.Symbolic.Symbolic_Traceback(Err)); end [Ada Unit Name]; Anh Vo