From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] kvm: user: Call pthread_join only to created threads. Date: Sun, 05 Oct 2008 12:00:02 +0200 Message-ID: <48E89022.1070203@redhat.com> References: <5e93dcec0810040020l18d97706m16d4b0669c5dffe4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Ryota OZAKI Return-path: Received: from mx2.redhat.com ([66.187.237.31]:32883 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669AbYJEKAK (ORCPT ); Sun, 5 Oct 2008 06:00:10 -0400 In-Reply-To: <5e93dcec0810040020l18d97706m16d4b0669c5dffe4@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Ryota OZAKI wrote: > Hi, > > This patch fixes a bug in kvmtrace. > > Thanks, > ozaki-r > > From 4ccee3a01c2e8c377dc6a760b5d7802e58afda72 Mon Sep 17 00:00:00 2001 > From: Ryota Ozaki > Date: Sat, 4 Oct 2008 15:30:48 +0900 > Subject: [PATCH] kvm: user: Call pthread_join only to created threads. > > If thread_main fails with a somewhat reason (e.g. open fails) > before all threads are created, pthread_join is called to a > uncreated thread and a segmentation fault occurs. > > This patch checks whether a thread is created before calling > pthread_join to the thread. > > Applied, thanks. -- error compiling committee.c: too many arguments to function