From owner-freebsd-arm@FreeBSD.ORG Sun Nov 10 15:12:34 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E0F9AC18 for ; Sun, 10 Nov 2013 15:12:34 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A0BEC2FEA for ; Sun, 10 Nov 2013 15:12:34 +0000 (UTC) Received: by mail-qa0-f52.google.com with SMTP id ii20so1091039qab.4 for ; Sun, 10 Nov 2013 07:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Dn6ZLOZGCc9ujA7i0H8q1gRB1IEGXT1KrMCkH7DGySs=; b=WomgG9WXTJRbVFu8lCwxFqRxs0UOetBS6eurohblpgofP7AGWTWnDoeuotKw6B4u/t xh0lqB0EsZ95R/puPQf6RsJwa4GYLjgyBT/rZYA8SUZsQFb+DfVw0kfb/ywKn/aMTgMe DMgxbqJt0l3jhTUV1Wgow+2cLcyHMxPgeaiXzIlorxvfEv5v0mlJaasrVGSAAuBYfxvA yjmlT9HQGENjTLppUw5wzMSKhwqaUXtiYwim6DRA07jOcWWTrN/rXT9nFnHBh5JOxSuR mlAYQOS+Qs5MsvnU5LhrBPraBy69xuQzU82UwXd8NJxKCKrK9tKbgR71C27B2E7FKmb7 +MAQ== MIME-Version: 1.0 X-Received: by 10.224.98.200 with SMTP id r8mr41671559qan.26.1384096353877; Sun, 10 Nov 2013 07:12:33 -0800 (PST) Received: by 10.224.160.77 with HTTP; Sun, 10 Nov 2013 07:12:33 -0800 (PST) In-Reply-To: References: Date: Sun, 10 Nov 2013 23:12:33 +0800 Message-ID: Subject: Re: crash in pthread umtx_op From: Howard Su To: freebsd-arm@freebsd.org Content-Type: multipart/mixed; boundary=089e01536b7c82129704ead40b83 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 15:12:34 -0000 --089e01536b7c82129704ead40b83 Content-Type: text/plain; charset=ISO-8859-1 click send too quick. The attached is a simple repro code which can consistant repro a crash related signal deliver and mutex/cond operation. repro steps: 1. compile the test.c with the following command: clang -g test.c -lpthread 2. run ./a.out 3. press ctrl-C when "Enter" is displayed. in other words, send SIGINT when thread is in pthread_cond_timedwait. 4. crash Seems this is problem related to pthread or signal deliver, which exceeds my skill to debug. I need help. I notice this when I was play with dtrace arm port from gonozo. the _sleep function is a simpler version of dtrace_sleep in libdtrace. In case you need more details, please refer that file @ cddl/contrib/opensolaris/lib/libdtrace/dt_work.c. On Sun, Nov 10, 2013 at 11:09 PM, Howard Su wrote: > The attached is a simple repro code which can consistant repro a crash > related signal deliver and mutex/cond operation. > > repro steps: > 1. compile the test.c with the following command: > > > I notice this when I was play with dtrace arm port from gonozo. > > -- > -Howard > -- -Howard --089e01536b7c82129704ead40b83--