From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29866 invoked by alias); 24 Aug 2011 19:54:28 -0000 Received: (qmail 29857 invoked by uid 22791); 24 Aug 2011 19:54:27 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_CX,TW_XA X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Aug 2011 19:54:11 +0000 Received: by wwe32 with SMTP id 32so1416276wwe.12 for ; Wed, 24 Aug 2011 12:54:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.10.211 with SMTP id 61mr5095851wev.4.1314215649050; Wed, 24 Aug 2011 12:54:09 -0700 (PDT) Received: by 10.216.62.72 with HTTP; Wed, 24 Aug 2011 12:54:09 -0700 (PDT) Reply-To: noloader@gmail.com In-Reply-To: <20110824193938.GA18325@host1.jankratochvil.net> References: <20110824193938.GA18325@host1.jankratochvil.net> Date: Wed, 24 Aug 2011 19:54:00 -0000 Message-ID: Subject: Re: Interpret object causing crash in __cxa_finalize (have core) From: Jeffrey Walton To: Jan Kratochvil Cc: GDB Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00105.txt.bz2 On Wed, Aug 24, 2011 at 3:39 PM, Jan Kratochvil wrote: > On Wed, 24 Aug 2011 21:31:14 +0200, Jeffrey Walton wrote: >> I'm observing an intermittent crash during unloading of a shared >> object. The library and test harness were built with '-g3 -ggdb -O0', >> and 'ulimit -c unlimited', so I am able to get it under GDB. > > If you have it reproducible run it under valgrind first. Boost has made Valgrind useless (15000 line of output). And I have not been successful in getting suppression rules: http://lists.boost.org/boost-users/2011/08/70235.php and http://sourceforge.net/mailarchive/forum.php?thread_name=3DCAH8yC8k0QAqj%2B= 4eyQ%3D20aH11Tnb7m43%3DxjCdkxKZY8ssgf3rfg%40mail.gmail.com&forum_name=3Dval= grind-users. >> But I'm having problems interpreting what object is being problematic. > [...] >> #21 0x00002ba649808630 in __cxa_finalize (d=3D0x2ba64901c3d8) >> =A0 =A0 at cxa_finalize.c:56 >> =A0 =A0 =A0 =A0 check =3D >> =A0 =A0 =A0 =A0 cxafn =3D 0x6 >> =A0 =A0 =A0 =A0 cxaarg =3D 0xa46 >> =A0 =A0 =A0 =A0 f =3D 0x13925e0 >> =A0 =A0 =A0 =A0 funcs =3D 0x13924f0 >> (gdb) po 0x13925e0 >> evaluation of this expression requires the target program to be active > > print-object is for Objecttive-C. =A0And you will decode there just the i= nfo you > see in the frame #20. Indeed! I've been working on iPhones/iPads for too long. > This looks as a memory corruption, it is better to debug instrument the c= ode > leading to this state, this core file may no longer be too useful. Ok, thanks. To retain info on the objects in question, do I need to compile with g++ -v and save the intermediate (ii?) files? Jeff > [...] >> #20 0x0000000000470c0a in ~map (this=3D0x83dfc0, __in_chrg=3D) >> =A0 =A0 at /usr/include/c++/4.4/bits/stl_map.h:87 >> No locals. >> #21 0x00002ba649808630 in __cxa_finalize (d=3D0x2ba64901c3d8) >> =A0 =A0 at cxa_finalize.c:56 >> =A0 =A0 =A0 =A0 check =3D >> =A0 =A0 =A0 =A0 cxafn =3D 0x6 >> =A0 =A0 =A0 =A0 cxaarg =3D 0xa46 >> =A0 =A0 =A0 =A0 f =3D 0x13925e0 >> =A0 =A0 =A0 =A0 funcs =3D 0x13924f0 >> #22 0x00002ba648c59076 in __do_global_dtors_aux () from lib/libesapi-c++= .so >> No symbol table info available. >> #23 0x0000000000000000 in ?? () >> No symbol table info available. >> (gdb) >