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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Symbolic tracebacks on Debian Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <85f51aeb-cac9-4591-921a-a7f50c8ef142@a21g2000yqn.googlegroups.com> <1pup1z7a4f1pq$.of30sejrqe4m.dlg@40tude.net> <87hbmae33k.fsf@ludovic-brenta.org> <85j595F1lqU1@mid.individual.net> <87sk5navk6.fsf_-_@ludovic-brenta.org> <82bpc8s17m.fsf@stephe-leake.org> <85q413FgagU1@mid.individual.net> Date: Sat, 22 May 2010 15:56:24 +0200 Message-ID: <19xqkb0249fic.h4aao8vcp6tu$.dlg@40tude.net> NNTP-Posting-Date: 22 May 2010 15:56:24 CEST NNTP-Posting-Host: a147d206.newsspool1.arcor-online.net X-Trace: DXC=NmFLTlDgEX=85[]]\]T081ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2L8lJ>3=`J`3[6LHn;2LCV>[< On Sat, 22 May 2010 15:20:34 +0200, Bj�rn Persson wrote: > Stephen Leake wrote: > >> I dump the stack trace as hex addresses, then later run addr2line >> manually if I want the symbolic trace. > > That's what I'm doing and it's not helping. I'm trying to find out why my > email doorkeeper daemon sometimes crashes. I write the addresses to the log, > but when I pass them to addr2line it resolves ony those that are in my own > code. The crashes seem to happen somewhere in one of the libraries I use, > and addr2line returns only question marks for those addresses. I don't know > why. Perhaps it doesn't understand separate debug information files? That is the biggest problem when dealing with Gtk. This is why I integrated symbolic traceback into the GtkAda contributions + trapping of all log events of the Gtk. When Gtk logs an event (error, warning), I trace the stack at once. At this point it is still traceable. C stuff is shown as ???, but the Ada's caller's chain is OK. If you let it go further, it would crash in 80% cases, and the addresses will be guaranteed rubbish at that point. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de