From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5975 invoked by alias); 16 Aug 2012 11:14:30 -0000 Received: (qmail 5961 invoked by uid 22791); 16 Aug 2012 11:14:29 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from gbenson.demon.co.uk (HELO gbenson.demon.co.uk) (80.177.220.214) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Aug 2012 11:14:09 +0000 Date: Thu, 16 Aug 2012 11:14:00 -0000 From: Gary Benson To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: [RFA 4/4 take 2] Improved linker-debugger interface Message-ID: <20120816111406.GA3467@redhat.com> Mail-Followup-To: Jan Kratochvil , gdb-patches@sourceware.org References: <20120719110518.GE16185@redhat.com> <20120815172346.GA5696@host2.jankratochvil.net> <20120815174546.GA7270@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120815174546.GA7270@host2.jankratochvil.net> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00452.txt.bz2 Jan Kratochvil wrote: > On Wed, 15 Aug 2012 19:23:46 +0200, Jan Kratochvil wrote: > > (3) > > There is some issue we already discussed off-list, in some cases (Fedora > > Rawhide x86_64 with Fedora patched GDB) it breaks on > > FAIL: gdb.base/break-dlmopen.exp: info sharedlibrary #5 > > reproduced it also with FSF GDB HEAD with the patch below. > > Apparently the address 0x6020a0 is already freed/invalid that time, > I guess it is more clear to you: > > > namespace_update_full(lmid=0x1,debug_base=0x7ffff7ffd0f8,is_initial_ns=0 > > svr4_read_so_list(lm=0x6020a0,prev_lm=0x0) > > lm=0x6020a0={next=0x602670,prev=0x0} > > lm=0x602670={next=0x0,prev=0x0} > > warning: Corrupted shared library list: 0x6020a0 != 0x0 > > diff --git a/gdb/testsuite/gdb.base/break-dlmopen.exp b/gdb/testsuite/gdb.base/break-dlmopen.exp > index 52cd5ef..ebf9089 100644 > --- a/gdb/testsuite/gdb.base/break-dlmopen.exp > +++ b/gdb/testsuite/gdb.base/break-dlmopen.exp > @@ -33,7 +33,7 @@ if { [gdb_compile_shlib $srcfile_lib $binfile_lib \ > } > > if { [prepare_for_testing $testfile.exp $testfile $srcfile \ > - [list additional_flags=-DSHLIB_NAME\=\"$binfile_lib\" libs=-ldl]] } { > + [list additional_flags=-DSHLIB_NAME\=\"$binfile_lib\" libs=-ldl libs=-lmcheck]] } { > return -1 > } Thanks for this, I have it reproduced now and I'm looking into it. Cheers, Gary -- http://gbenson.net/