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 nptl/22351] Unaligned pthread_cond_t stopped working


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

--- Comment #3 from Tulio Magno Quites Machado Filho <tuliom at linux dot vnet.ibm.com> ---
(In reply to Carlos O'Donell from comment #1)
> Are we missing explicit padding somewhere to avoid problems with user use of
> pragma pack(1)?

No.  The problem happens because of atomic instruction that are not aligned at
their natural boundary.

(In reply to Andreas Schwab from comment #2)
> That it appeared to work previously is irrelevent, because it has always
> been broken.  The kernel requires 32-bit alignment of futex variables.

For the record, it also fails with pragma pack(4).  Tested on powerpc64le.

-- 
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]