This is the mail archive of the
mailing list for the glibc project.
Re: linking experimental patch
- From: Daniel Jacobowitz <drow at false dot org>
- To: Janne Karhunen <jkarhune at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 18 Mar 2008 12:57:41 -0400
- Subject: Re: linking experimental patch
- References: <1205858922.3174.71.camel@gargravarr>
On Tue, Mar 18, 2008 at 12:48:42PM -0400, Janne Karhunen wrote:
> While it would definitely be better not to fork a broken task and
> just freeze all threads one by one and make the dump internally,
> Linux does not seem to have proper support for this. Even ptrace
> interface doesn't support stopping internal threads anymore. Same
> goes for SIGSTOP processing; there simply are no clean ways to
> make it thread specific (as far as I know).
Neither of those should be true unless your kernel is broken.
You can PTRACE_ATTACH to a tid - use gettid not getpid of course - and
you can send SIGSTOP to one thread with tkill.
The latter will definitely deliver SIGSTOP to the selected thread.
But it may still stop the whole process, I'm not actually sure.
> Added functions are being made local. I take it this is due to
> symbol versioning magic? Weak symbols seem to be missing as well
> even though they are defined in the code.
You need to add it to Versions.