From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31993 invoked by alias); 20 Sep 2005 19:53:02 -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 31933 invoked by uid 22791); 20 Sep 2005 19:52:51 -0000 Received: from host254.speakeasy.net (HELO douglas.highley-recommended.com) (216.231.62.254) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 20 Sep 2005 19:52:51 +0000 Received: from douglas.highley-recommended.com (localhost.localdomain [127.0.0.1]) by douglas.highley-recommended.com (8.13.4/8.13.4) with ESMTP id j8KJqnOS018388 for ; Tue, 20 Sep 2005 12:52:49 -0700 Received: (from dhighley@localhost) by douglas.highley-recommended.com (8.13.4/8.13.4/Submit) id j8KJqnaS018386 for gdb@sources.redhat.com; Tue, 20 Sep 2005 12:52:49 -0700 From: David Highley Message-Id: <200509201952.j8KJqnaS018386@douglas.highley-recommended.com> Subject: Re: GDB problem with statically linked application To: gdb@sources.redhat.com Date: Tue, 20 Sep 2005 19:53:00 -0000 In-Reply-To: <1127244795.20581@horse.he.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00143.txt.bz2 "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. > > Thanks > Ajay > > > -- Regards, David Highley Phone: (206) 669-0081 Highley Recommended, Inc. FAX: (253) 838-8509 2927 SW 339th Street Email: dhighley@highley-recommended.com Federal Way, WA 98023-7732 WEB: http://www.highley-recommended.com