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/12113] Segmentation fault in dynamic loader on AVX enabled OS and CPU with AVX


http://sourceware.org/bugzilla/show_bug.cgi?id=12113

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-13 23:24:42 UTC ---
(In reply to comment #12)
> So shouldn't the fix be just that TLS_INIT_TCB_ALIGN is defined to 32 as well?

Not enough due to

descr.h has

struct pthread
{
  union
  {
#if !TLS_DTV_AT_TP
    /* This overlaps the TCB as used for TLS without threads (see tls.h).  */
    tcbhead_t header;
#else
...
} __attribute ((aligned (TCB_ALIGNMENT)));

#define TCB_ALIGNMENT        16

If tcbhead_t isn't aligned at >= 32byte, struct pthread will be
aligned at 16byte,

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]