From owner-freebsd-dtrace@FreeBSD.ORG Fri Oct 25 15:00:05 2013 Return-Path: Delivered-To: dtrace@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 373CDEF4 for ; Fri, 25 Oct 2013 15:00:05 +0000 (UTC) (envelope-from symbolics@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C139C2BF3 for ; Fri, 25 Oct 2013 15:00:04 +0000 (UTC) Received: from lemon ([80.7.17.14]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MILxX-1VYLgY1y0d-004AMF for ; Fri, 25 Oct 2013 16:59:57 +0200 Received: by lemon (Postfix, from userid 1001) id C3781EB3A6; Fri, 25 Oct 2013 15:59:56 +0100 (BST) Date: Fri, 25 Oct 2013 15:59:56 +0100 From: symbolics@gmx.com To: dtrace@freebsd.org Subject: Re: Firefox crash during dtrace attach under -CURRENT Message-ID: <20131025145956.GA26814@lemon> References: <20131023203009.GA92945@lemon> <20131024025902.GA2286@charmander> <20131025104706.GB1705@lemon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131025104706.GB1705@lemon> X-Provags-ID: V03:K0:Gjk53Sz7YZ7wY6+GDeK06kqyYBQQ/PmkAx8c03oh1Trm/6FIB5S LOFpA7bF1Gi8g3sgwAzrbyZpqEunRwAlfeJfQpfTe4wHaLaWlMVa1qhRfYFAAgxa64fY0jH r7qegfS1XzZbJkbxVofPFR796Zy4255bX8sYBPlFK8Ww9WSbEixSGjaXre1iTTheLlrtrXE Dt3qgWbSr4UbqlG+Y9Ylg== X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 15:00:05 -0000 On Fri, Oct 25, 2013 at 11:47:06AM +0100, symbolics@gmx.com wrote: > On Wed, Oct 23, 2013 at 10:59:02PM -0400, Mark Johnston wrote: > > On Wed, Oct 23, 2013 at 09:30:09PM +0100, symbolics@gmx.com wrote: > > > Hi, > > > > > > http://dtrace.org/blogs/brendan/2011/02/11/dtrace-pid-provider-arguments/ > > > > > > I tried to follow some of the examples but I crash the Firefox process > > > each time. Sometimes DTrace manages to collect a little data before the > > > death. > > > > > > [...] > > > > > > Is this a known problem or should I send a PR? > > > > Thanks for reporting this: I was able to reproduce the crash and managed > > to find a nasty pair of bugs. Could you test the patch below and let me > > know if it fixes the problem for you as well? If you see more crashes, > > please include the backtrace and signo from gdb again; it would likely > > be a different problem that needs to be debugged and fixed separately. > > Hi Mark, > > This helps but there still may be some issues. First time I used this > I found that when I killed the DTrace process Firefox went down too > with a SIGTRAP. I have a possibly unhelpful core from this: > Another data point. I attached to mutt and reviewed some of the calls it was making. Subsequently I killed DTrace, went to to look at other things and a while later when back to check my mail. On attempting to change into a different mail folder mutt died with a SIGTRAP. It seems like DTrace isn't tidying up after itself? (gdb) bt #0 0x0000000800722541 in r_debug_state (rd=0x802425480, m=0x7fffffff6c28) at /usr/home/dm/git/freebsd/libexec/rtld-elf/rtld.c:3491 #1 0x0000000000000000 in ?? () --sym