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/16549] pthread_cond_wait and pthread_cond_timedwait do not suspend the calling thread


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

vinxxe at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |MOVED

--- Comment #8 from vinxxe at gmail dot com ---
I think (In reply to Rich Felker from comment #7)
> BTW I think this general class of bugs should be filed as a bug against GCC:
> misaligned packed structure members should have the fact that they're
> misaligned encoded as part of their type, so that applying the address-of
> operator to them yields a pointer type that's not compatible with the
> standard pointer type. Then,
> pthread_cond_wait(&packed_struct.misaligned_cond, ...) would yield a
> compile-time error due to incompatible pointer types. Likewise, the
> compile's format string warnings could catch the mismatched pointer type in
> scanf("%d", &packed_struct.foo).

I think this is a good point so I'll try to submit this bug to the GCC guys.

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