From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31269 invoked by alias); 11 Feb 2014 18:54:26 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 31226 invoked by uid 48); 11 Feb 2014 18:54:22 -0000 From: "vinxxe at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug nptl/16549] pthread_cond_wait and pthread_cond_timedwait do not suspend the calling thread Date: Tue, 11 Feb 2014 18:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.12 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vinxxe at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00391.txt.bz2 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.