From: "Paul Pluzhnikov" <ppluzhnikov@google.com>
To: "Laurent Carlier" <lordheavym@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Cannot find new threads: generic error
Date: Sun, 31 Aug 2008 05:05:00 -0000 [thread overview]
Message-ID: <8ac60eac0808291743i67ed9872wca32b21389e48dd3@mail.gmail.com> (raw)
In-Reply-To: <200808300213.57239.lordheavym@gmail.com>
On Fri, Aug 29, 2008 at 5:13 PM, Laurent Carlier <lordheavym@gmail.com> wrote:
> I've find a workaround, i've link the debugging app with libpthread and now gdb
> feels happy, and i can run it with gdb !
Are you dlopen()ing a library which is linked against libpthread.so
into a program which isn't?
Very few OSes support processes "suddenly" becoming multithreaded
(I know only of Solaris 10 and AIX 5).
If you do that on Linux, you should expect all kinds of trouble,
because e.g. glibc very early on decides whether pthreads are
present, and permanently switches to thread-unsafe behavior if they
are not.
Cheers,
--
Paul Pluzhnikov
next prev parent reply other threads:[~2008-08-30 0:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 17:48 Laurent Carlier
2008-08-31 2:30 ` Laurent Carlier
2008-08-31 5:05 ` Paul Pluzhnikov [this message]
2008-08-31 14:07 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2008-08-17 23:07 Russell Shaw
2008-08-18 13:16 ` 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=8ac60eac0808291743i67ed9872wca32b21389e48dd3@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=gdb@sourceware.org \
--cc=lordheavym@gmail.com \
/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