From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2541 invoked by alias); 20 Sep 2005 19:59:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2095 invoked by uid 22791); 20 Sep 2005 19:59:11 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 20 Sep 2005 19:59:11 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1EHoGk-0007Vj-3V; Tue, 20 Sep 2005 15:59:10 -0400 Date: Tue, 20 Sep 2005 19:59:00 -0000 From: Daniel Jacobowitz To: David Highley Cc: gdb@sources.redhat.com Subject: Re: GDB problem with statically linked application Message-ID: <20050920195910.GA28801@nevyn.them.org> Mail-Followup-To: David Highley , gdb@sources.redhat.com References: <1127244795.20581@horse.he.net> <200509201952.j8KJqnaS018386@douglas.highley-recommended.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200509201952.j8KJqnaS018386@douglas.highley-recommended.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-09/txt/msg00144.txt.bz2 On Tue, Sep 20, 2005 at 12:52:49PM -0700, David Highley wrote: > "Ajay Patel wrote:" > > > > > > > We still see multiple pid's for static linked applications and not for > > > dynamically linked applications. We are now in the process of rebuilding > > > and running tests on our applications. > > > > I also saw this. I did not investigated much. > > I think this may be glibc bug. This shows up > > when you use linux-threads. If you use NPTL > > it does go away. > > The insidious part of this is our small test code will execute even if > you use the incorrect "-lpthread" flag with dynamic linking. So the > remaining question to be figured out is whether the thread model is the > same between the static and dynamic links. Do we get NPTL threads in > both cases? We might be able to tell with the nm command. For the second or third time: this is not the appropriate list to discuss this particular problem. It is completely dependent upon your distributor, not the GNU toolchain. In general, most distributions which ship both ship LinuxThreads (because it is more portable) as the static default. They also publish in their documentation instructions on how to statically link with NPTL. The distributor's documentation is your best reference. -- Daniel Jacobowitz CodeSourcery, LLC