This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linking experimental patch


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.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]