From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 04:16:02 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7290ECE3; Mon, 11 Nov 2013 04:16:02 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from mail-qa0-x22c.google.com (mail-qa0-x22c.google.com [IPv6:2607:f8b0:400d:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2386E26A9; Mon, 11 Nov 2013 04:16:02 +0000 (UTC) Received: by mail-qa0-f44.google.com with SMTP id f11so1468335qae.3 for ; Sun, 10 Nov 2013 20:16:01 -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=Kw0hSlHIniF/abcCamK6WWCF1OS+0Sa1m9UpbwgUejc=; b=ld4h4ETv8mKAYWkGYXjWLTo2TJa4N5sZZhJ/PPG+8E/moP4sv54NTL8o97w93x/ycQ 8wuhBKmvyAXLtwpSnJuVwdCOPEKxodCmxOTUjbYw4G6zPgdBonqjmgicOvq60ouiQV15 ogXl0zRTNE+0KjfFcLT0Zx71Xr2gD1XG1UeZuZocJuI12PRtCwiUUnDtFDedn9K8G6hz NVnC1gJRxb0QFg6b4+eAwblm6ekGMKuy0Z1TE0hfSYoVlDzX2/rLu6z1BexHeN1CqOmp gP4ltmuZJ/B6gUQdZxSlpiu5mYsTf9YQ1Dztg9D5XMnZLS+U75LYJf6/yR47djhKeiY2 76wQ== MIME-Version: 1.0 X-Received: by 10.224.167.83 with SMTP id p19mr16517577qay.28.1384143361302; Sun, 10 Nov 2013 20:16:01 -0800 (PST) Received: by 10.224.160.77 with HTTP; Sun, 10 Nov 2013 20:16:01 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 12:16:01 +0800 Message-ID: Subject: Re: crash in pthread umtx_op From: Howard Su To: Adrian Chadd , freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 11 Nov 2013 04:16:02 -0000 On Mon, Nov 11, 2013 at 11:20 AM, Adrian Chadd wrote: > attachments are stripped; please include it inline or provide a url. > > http://hastebin.com/kudowerave.avrasm > > -a > > On 10 November 2013 07:12, Howard Su wrote: > > 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 > > > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > -- -Howard