This is the mail archive of the glibc-bugs@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]

[Bug libc/19826] invalid pointer returned from __tls_get_addr with static linking


https://sourceware.org/bugzilla/show_bug.cgi?id=19826

--- Comment #10 from Andreas Schwab <schwab@linux-m68k.org> ---
You can also run it on a aarch64 system, there are a few on the GCC compile
farm.

#0  _dl_allocate_tls_init (result=0xf77ff7c0) at dl-tls.c:476
#1  0x000129fc in allocate_stack (stack=<synthetic pointer>, 
    pdp=<synthetic pointer>, attr=<optimized out>) at allocatestack.c:584
#2  __pthread_create_2_1 (newthread=<optimized out>, attr=<optimized out>, 
    start_routine=<optimized out>, arg=<optimized out>) at pthread_create.c:539
#3  0x00010518 in main () at tls.c:18

sysdeps/arm/nptl/tls.h:
/* Install the dtv pointer.  The pointer passed is to the element with
   index -1 which contain the length.  */
# define INSTALL_DTV(tcbp, dtvp) \
  (((tcbhead_t *) (tcbp))->dtv = (dtvp) + 1)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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