From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20745 invoked by alias); 11 Jun 2004 16:05:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20662 invoked from network); 11 Jun 2004 16:05:26 -0000 Received: from unknown (HELO dyn.fergaldaly.com) (212.13.198.240) by sourceware.org with SMTP; 11 Jun 2004 16:05:26 -0000 Received: from fergal by dyn.fergaldaly.com with local (Exim 3.35 #1 (Debian)) id 1BYoWT-0004XT-00; Fri, 11 Jun 2004 17:04:53 +0100 Date: Fri, 11 Jun 2004 16:05:00 -0000 From: Fergal Daly To: binutils@sources.redhat.com, gdb-patches@sources.redhat.com, drow@false.org Subject: Re: [PATCH] prevent core dump for multiple def symbols Message-ID: <20040611160453.GH16613@dyn.fergaldaly.com> References: <20040611144526.GF16613@dyn.fergaldaly.com> <20040611145341.GA24143@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-SW-Source: 2004-06/txt/msg00265.txt.bz2 On Fri, Jun 11, 2004 at 11:39:35AM -0400, Ian Lance Taylor wrote: > Daniel Jacobowitz writes: > > > It seems obvious and correct to me. Is multiple_definition a recent > > callback or did I just miss it when I wrote simple.c? [I won't even > > ask how you have a shared library with multiple definitions of a > > dynamic symbol.] > > multiple_definition is not a recent callback. It's been there from > the start. > > I agree that for it to be called in this scenario is odd. nm myWeird.so | wc -l 11282 nm myWeird.so | cut -f 3 -d " " | sort | uniq -d | wc -l 92 so it seems Kylix is in the habit of generating multiple copies of symbols. I think it's because of overloaded functions. I've just picked a few duplicate symbols at random and they turned out to be overloaded. I don't know if this is Kylix's fault or what but I hope you will consider applying the patch anyway? There's zero chance of getting Kylix fixed :-( Fergal