From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUIAS-0005aQ-FF for qemu-devel@nongnu.org; Sat, 07 Mar 2015 12:05:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUIAO-0004ZB-B8 for qemu-devel@nongnu.org; Sat, 07 Mar 2015 12:05:36 -0500 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:44844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUIAO-0004Z2-36 for qemu-devel@nongnu.org; Sat, 07 Mar 2015 12:05:32 -0500 Received: by wghl18 with SMTP id l18so12037369wgh.11 for ; Sat, 07 Mar 2015 09:05:31 -0800 (PST) Sender: Paolo Bonzini Message-ID: <54FB2FD7.3050603@redhat.com> Date: Sat, 07 Mar 2015 18:05:27 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1425633735-26796-1-git-send-email-pbonzini@redhat.com> <1425633735-26796-2-git-send-email-pbonzini@redhat.com> <54F9CDAB.6030602@redhat.com> In-Reply-To: <54F9CDAB.6030602@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] qemu-thread: do not use PTHREAD_MUTEX_ERRORCHECK List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org On 06/03/2015 16:54, Eric Blake wrote: > > The problem is that releasing error-checking locks in the child > > fails under glibc with EPERM, because the mutex stores a different > > owner tid than the duplicated thread in the child process. > > Is that a bug in glibc? Possibly, but I wouldn't be surprised if other libcs had the same bug. And if you ran it through the Austin Group, I wouldn't be surprised if it were declared undefined. Paolo