https://bugs.kde.org/show_bug.cgi?id=421931

--- Comment #6 from Carlos O'Donell <car...@redhat.com> ---
(In reply to Carlos O'Donell from comment #5)
> (In reply to Mark Wielaard from comment #3)
> > What is a "detached thread" according to you?  There is no concept of
> > detached threads in valgrind, all threads are under control of valgrind and
> > valgrind makes sure that only one (kernel) thread is scheduled to run at any
> > one time. See
> > https://valgrind.org/docs/manual/manual-core.html#manual-core.pthreads
> 
> If you use ptrace under the hood to stop a pthread detached thread, and
> therefore terminate it, then yes, there will be nothing else using the
> streams.
> 
> If that's the case, and we feel comfortable with that as a position then I
> can flip this back to glibc and discuss *always* shutting down streams via
> __libc_freeres regardless of their state?

Even if we did enhance glibc, there is a need for all existing distributions
that have unbuffered stderr which won't be freed by __libc_freeres().

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to