From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17248 invoked by alias); 30 Oct 2008 01:30:30 -0000 Received: (qmail 17240 invoked by uid 22791); 30 Oct 2008 01:30:29 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 30 Oct 2008 01:30:26 +0000 Received: from spaceape7.eur.corp.google.com (spaceape7.eur.corp.google.com [172.28.16.141]) by smtp-out.google.com with ESMTP id m9U1UNkm024494 for ; Wed, 29 Oct 2008 18:30:24 -0700 Received: from ey-out-2122.google.com (eya25.prod.google.com [10.208.1.25]) by spaceape7.eur.corp.google.com with ESMTP id m9U1UL42018150 for ; Wed, 29 Oct 2008 18:30:22 -0700 Received: by ey-out-2122.google.com with SMTP id 25so140223eya.41 for ; Wed, 29 Oct 2008 18:30:21 -0700 (PDT) Received: by 10.103.241.5 with SMTP id t5mr4556819mur.72.1225330221428; Wed, 29 Oct 2008 18:30:21 -0700 (PDT) Received: by 10.103.131.20 with HTTP; Wed, 29 Oct 2008 18:30:21 -0700 (PDT) Message-ID: <8ac60eac0810291830g46604c3eye8365240c48007d0@mail.gmail.com> Date: Thu, 30 Oct 2008 01:30:00 -0000 From: "Paul Pluzhnikov" To: ajloft@umich.edu Subject: Re: "Cannot find new threads" on Fedora 9, but not on CentOS 5 (?) Cc: gdb@sourceware.org In-Reply-To: <490909B3.2080307@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49065BBD.3050800@gmail.com> <8ac60eac0810271741h135f077bj2c3fcd7391e89ed7@mail.gmail.com> <4906615E.50606@gmail.com> <8ac60eac0810271836saf8c28pb1392b77c7926be0@mail.gmail.com> <4907B915.5040101@gmail.com> <8ac60eac0810281920r4bf71400hc8171bdee3c92ca@mail.gmail.com> <490909B3.2080307@gmail.com> 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: 2008-10/txt/msg00137.txt.bz2 On Wed, Oct 29, 2008 at 6:11 PM, Andrew Lofthouse wrote: > It seems to me that there is some difference in the linking of shared > libraries between Fedora 9 and CentOS 5. With the same exact code and the > same exact configure, make sequence, CentOS 5 ldd shows libpthread (without > explicitly specifying it, i.e. LIBS=-pthread), while on Fedora, there is no > explicit link. Thus, gdb doesn't handle it on Fedora 9. I wonder what is > different? You can tell: for each library in ldd output on Fedora 9, namely: /usr/local/lib/libufs2D-0.9.so.2 /usr/local/lib/libgts-0.7.so.5 /lib/libgmodule-2.0.so.0 /lib/libdl.so.2 /lib/libglib-2.0.so.0 /lib/libselinux.so.1 do 'ldd /path/to/lib' on CentOS. At least one of them (I expect) will show libpthread.so.0 dependency, which implies that they were built differently. > And, yet, it handles your test case as well... Since we can't replicate "bad GDB behavior" on a test case, I am afraid the only way forward is for you to debug gdb with itself. This isn't as bad as it sounds, but probably would require some effort from you. Something like this: gdb -ex 'set prompt (top) ' --args gdb /usr/local/bin/ufs2oogl2D (top) rbreak throw_ # should set a couple of breakpoints (top) run (gdb) set verbose on (gdb) run -T "rho" < UAM10_002_UFS-005000.sim > test.plt # expect one of the throw_ breakpoints to fire and you should see # "(top)" prompt. (top) where -- Paul Pluzhnikov