Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Paul Pluzhnikov" <ppluzhnikov@google.com>
To: ajloft@umich.edu
Cc: gdb@sourceware.org
Subject: Re: "Cannot find new threads" on Fedora 9, but not on CentOS 5 (?)
Date: Thu, 30 Oct 2008 01:30:00 -0000	[thread overview]
Message-ID: <8ac60eac0810291830g46604c3eye8365240c48007d0@mail.gmail.com> (raw)
In-Reply-To: <490909B3.2080307@gmail.com>

On Wed, Oct 29, 2008 at 6:11 PM, Andrew Lofthouse <loftyhauser@gmail.com> 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


  reply	other threads:[~2008-10-30  1:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28  0:25 Andrew Lofthouse
2008-10-28  0:42 ` Paul Pluzhnikov
     [not found]   ` <4906615E.50606@gmail.com>
     [not found]     ` <8ac60eac0810271836saf8c28pb1392b77c7926be0@mail.gmail.com>
2008-10-29  1:16       ` Andrew Lofthouse
2008-10-29  1:52         ` Daniel Jacobowitz
2008-10-29  2:21         ` Paul Pluzhnikov
2008-10-30  1:11           ` Andrew Lofthouse
2008-10-30  1:30             ` Paul Pluzhnikov [this message]
2008-11-01  2:30               ` Andrew Lofthouse
2008-11-01  6:47                 ` Paul Pluzhnikov
2008-11-01 15:29                   ` Andrew Lofthouse
2008-11-01 21:41                     ` Paul Pluzhnikov
2008-11-02 12:54                       ` Andrew Lofthouse
2008-11-04  0:50                       ` Tom Tromey
2008-12-12 22:50                         ` Tom Tromey
2008-12-12 23:04                           ` Daniel Jacobowitz
2008-12-12 23:30                             ` Tom Tromey
2008-12-18 19:36                               ` Michael Snyder
2008-12-12 23:06                           ` Paul Pluzhnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8ac60eac0810291830g46604c3eye8365240c48007d0@mail.gmail.com \
    --to=ppluzhnikov@google.com \
    --cc=ajloft@umich.edu \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox