Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1T1CzQ-0001Un-W8 for ltp-list@lists.sourceforge.net; Tue, 14 Aug 2012 09:00:40 +0000 Received: from mail1.windriver.com ([147.11.146.13]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1T1CzM-0004nT-PF for ltp-list@lists.sourceforge.net; Tue, 14 Aug 2012 09:00:40 +0000 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id q7E90Su5002618 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 14 Aug 2012 02:00:30 -0700 (PDT) From: Kang Kai Date: Tue, 14 Aug 2012 17:00:26 +0800 Message-ID: <1344934826-31007-1-git-send-email-kai.kang@windriver.com> MIME-Version: 1.0 Subject: [LTP] [PATCH] pthread_detach/4-3: workaround for segment fault List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: ltp-list@lists.sourceforge.net Cc: Zhenfeng.Zhao@windriver.com This case fails randomly with "Segmentation fault". Reset VERBOSE to 6 can avoid this problem. Fix typo at same time. Signed-off-by: Kang Kai --- .../conformance/interfaces/pthread_detach/4-3.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c index 5c15e93..23738dc 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c @@ -49,7 +49,7 @@ #include "../testfrmw/testfrmw.c" #ifndef VERBOSE -#define VERBOSE 1 +#define VERBOSE 6 #endif #define WITH_SYNCHRO @@ -281,7 +281,7 @@ int main(int argc, char *argv[]) do { do_it2 = 0; - } while (do_it2 = 0); + } while (do_it2); ret = pthread_join(th_sig1, NULL); if (ret) -- 1.7.5.4 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list