This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] Also use l_tls_dtor_count to decide on object unload (BZ #18657)
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org, roland at hack dot frob dot com
- Date: Wed, 15 Jul 2015 16:21:43 +0530
- Subject: Re: [PATCH v2] Also use l_tls_dtor_count to decide on object unload (BZ #18657)
- Authentication-results: sourceware.org; auth=none
- References: <20150709204301 dot 792A02C39DC at topped-with-meat dot com> <1436552195-16464-1-git-send-email-siddhesh at redhat dot com> <20150710193352 dot GA5302 at domone>
On Fri, Jul 10, 2015 at 09:33:52PM +0200, OndÅej BÃlka wrote:
> Does not work. In thread A we register destructor just before atomic
> add. Meanwhile we call dlclose in thread B which succeeds as count is
> zero. After thread A resumes it causes SIGSEGV when destructor gets
> called.
Right, thanks for pointing out. Let me look at this again.
Siddhesh