From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25861 invoked by alias); 24 Aug 2011 19:40:01 -0000 Received: (qmail 25853 invoked by uid 22791); 24 Aug 2011 19:40:00 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_CX,TW_XA X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Aug 2011 19:39:42 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7OJdfGZ001758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 24 Aug 2011 15:39:41 -0400 Received: from host1.jankratochvil.net (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7OJddMq002899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 24 Aug 2011 15:39:41 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p7OJddA0018850; Wed, 24 Aug 2011 21:39:39 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p7OJdcQI018849; Wed, 24 Aug 2011 21:39:38 +0200 Date: Wed, 24 Aug 2011 19:40:00 -0000 From: Jan Kratochvil To: Jeffrey Walton Cc: GDB Users List Subject: Re: Interpret object causing crash in __cxa_finalize (have core) Message-ID: <20110824193938.GA18325@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00104.txt.bz2 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. > But I'm having problems interpreting what object is being problematic. [...] > #21 0x00002ba649808630 in __cxa_finalize (d=0x2ba64901c3d8) > at cxa_finalize.c:56 > check = > cxafn = 0x6 > cxaarg = 0xa46 > f = 0x13925e0 > funcs = 0x13924f0 > (gdb) po 0x13925e0 > evaluation of this expression requires the target program to be active print-object is for Objecttive-C. And you will decode there just the info you see in the frame #20. This looks as a memory corruption, it is better to debug instrument the code leading to this state, this core file may no longer be too useful. Regards, Jan [...] > #20 0x0000000000470c0a in ~map (this=0x83dfc0, __in_chrg=) > at /usr/include/c++/4.4/bits/stl_map.h:87 > No locals. > #21 0x00002ba649808630 in __cxa_finalize (d=0x2ba64901c3d8) > at cxa_finalize.c:56 > check = > cxafn = 0x6 > cxaarg = 0xa46 > f = 0x13925e0 > funcs = 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)