This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix TLS access for -static -pthread
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Yao Qi <yao at codesourcery dot com>, gdb-patches at sourceware dot org, Sergio Durigan Junior <sergiodj at redhat dot com>
- Date: Fri, 6 Jun 2014 17:03:28 +0200
- Subject: Re: [patch] Fix TLS access for -static -pthread
- Authentication-results: sourceware.org; auth=none
- References: <20140410115204 dot GB16411 at host2 dot jankratochvil dot net> <539018F9 dot 5060307 at codesourcery dot com> <20140605080639 dot GA32146 at host2 dot jankratochvil dot net> <53908A15 dot 8000501 at redhat dot com>
On Thu, 05 Jun 2014 17:17:41 +0200, Pedro Alves wrote:
> On 06/05/2014 09:06 AM, Jan Kratochvil wrote:
> > On Thu, 05 Jun 2014 09:15:05 +0200, Yao Qi wrote:
> > [...]
> >> thread 1^M
> >> [Switching to thread 1 (Thread 5784)]^M
> >> #0 clone () at ../ports/sysdeps/unix/sysv/linux/arm/nptl/../clone.S:62^M
> >> 62 cmp r0, #0^M
> >> (gdb) PASS: gdb.threads/staticthreads.exp: thread 1
> >> up 10^M
> >> #2 0xbe8ea7e4 in ?? ()^M
> >> (gdb) FAIL: gdb.threads/staticthreads.exp: up 10
>
> It'd be nice if this was reported to glibc upstream.
I agree and it is unrelated to the unspecific x86_64 issue I mentioned.
> > This is a bug of unwinding clone() at this PC. IIRC even x86_64 has this or
> > similar CFI bug, though.
>
> I think it's fixed. It works here on f20:
I agree the issue I could not remember much is a different one, I have filed
it now as:
[x86_64] conditional cfi_undefined missing right after clone()
https://sourceware.org/bugzilla/show_bug.cgi?id=17033
But it is really unrelated to this mail thread.
Jan