From owner-freebsd-dtrace@freebsd.org Mon May 9 16:05:57 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D50F6B33100 for ; Mon, 9 May 2016 16:05:57 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B09519E0 for ; Mon, 9 May 2016 16:05:56 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 42FC425D386D for ; Mon, 9 May 2016 16:05:48 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 78E0AD1F80E for ; Mon, 9 May 2016 16:05:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id Y85SEPQq-pF7 for ; Mon, 9 May 2016 16:05:45 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A975CD1F7FB for ; Mon, 9 May 2016 16:05:45 +0000 (UTC) Date: Mon, 9 May 2016 16:05:44 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-dtrace@freebsd.org Subject: DTrace panic Message-ID: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 09 May 2016 16:05:57 -0000 Hi, I am seeing this panic when trying to use DTrace on r299073. I cannot rule out that it's my (experimental) environment; just wanted to check if it might have been a known breakage before digging into it. # dtrace -n 'dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }' dtrace -n 'dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }' dtrace: description 'dtrace:::BEGIN ' matched 1 probe kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0xae fault code = supervisor read data, page not present instruction pointer = 0x20:0xfffff800012ebc03 stack pointer = 0x28:0xfffffe0000226740 frame pointer = 0x28:0xfffffe0000226780 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = IOPL = 0 current process = 576 (dtrace) [ thread pid 576 tid 100048 ] Stopped at 0xfffff800012ebc03: addl %eax,(%rax) db> where where Tracing pid 576 tid 100048 td 0xfffff80001f0f000 dmapbase() at 0xfffff800012ebc03/frame 0xfffffe0000226780 dtrace_xcall() at dtrace_xcall+0xb2/frame 0xfffffe00002267d0 dtrace_fuword32() at dtrace_fuword32+0xfd66/frame 0xfffffe0000226830 dtrace_fuword32() at dtrace_fuword32+0xa6ec/frame 0xfffffe0000226930 dev2udev() at dev2udev+0x37ef/frame 0xfffffe0000226990 kern_ioctl() at kern_ioctl+0x1a7/frame 0xfffffe0000226a00 sys_ioctl() at sys_ioctl+0x171/frame 0xfffffe0000226ad0 amd64_syscall() at amd64_syscall+0x4c6/frame 0xfffffe0000226bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0000226bf0 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80125267a, rsp = 0x7fffffffe9c8, rbp = 0x7fffffffea10 --- db> show reg show reg cs 0x20 ds 0x3b es 0x3b fs 0x13 gs 0x1b ss 0x28 rax 0xae rcx 0 rdx 0xfffffe0000817000 rbx 0xffffffff802b43f0 rsp 0xfffffe0000226758 rbp 0xfffffe0000226780 rsi 0xffffffff802b43f0 rdi 0xfffff800012ebc00 r8 0xfffff800012ebc00 r9 0xfffff800012ebc00 r10 0xfffff800012ebc00 r11 0xfffffe00002266f8 r12 0xffffffff80429f30 smp_no_rendevous_barrier r13 0xfffffe0001127000 r14 0xfffff800012ebc00 -More-- r15 0xfffff800012ebc00 rip 0xfffff800012ebc03 rflags 0xae 0xfffff800012ebc03: addl %eax,(%rax) From owner-freebsd-dtrace@freebsd.org Mon May 9 17:14:25 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6CC8DB346E9 for ; Mon, 9 May 2016 17:14:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5D21F1F3C for ; Mon, 9 May 2016 17:14:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u49HEPVd078649 for ; Mon, 9 May 2016 17:14:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-dtrace@FreeBSD.org Subject: [Bug 207735] www/firefox: DTRACE no longer works since 41.0 Date: Mon, 09 May 2016 17:14:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 09 May 2016 17:14:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207735 --- Comment #8 from commit-hook@freebsd.org --- A commit references this bug: Author: markj Date: Mon May 9 17:13:40 UTC 2016 New revision: 299277 URL: https://svnweb.freebsd.org/changeset/base/299277 Log: MFC r298589: Allow DOF sections with excessively long probe function components. PR: 207735 Changes: _U stable/10/ stable/10/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-dtrace@freebsd.org Mon May 9 17:15:13 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C2D4B347D4 for ; Mon, 9 May 2016 17:15:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C87F1155 for ; Mon, 9 May 2016 17:15:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u49HFDFA079896 for ; Mon, 9 May 2016 17:15:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-dtrace@FreeBSD.org Subject: [Bug 207735] www/firefox: DTRACE no longer works since 41.0 Date: Mon, 09 May 2016 17:15:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 09 May 2016 17:15:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207735 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|In Progress |Closed --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-dtrace@freebsd.org Tue May 10 17:16:30 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0F20B3579C for ; Tue, 10 May 2016 17:16:30 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com [IPv6:2607:f8b0:400e:c00::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92BCF17C0 for ; Tue, 10 May 2016 17:16:30 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x229.google.com with SMTP id c189so8263965pfb.3 for ; Tue, 10 May 2016 10:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=u8l4KYfqj1b2NPYscLP3ABkBd/y0GQJbbSIRyDTnZfU=; b=KUmfyY8MYak1bT/G38mO2DBt1oiX4rZtqa24d1mDXC9p/dd63tES0HEckVj7HF6Rmh DVDvZd7qBmz88erapSOjhLZXhIVkzFToob3Mc3S/AZhMrBnN8WEGvZrqBA9pXPkKDrlD 0OPo+PM/0XlazG7w4xH4jH6q7jFkldNzBvJ63YCfZ76OTVF6kmLkTk49Ujg5cu0WBfsl XiJinHb4vPF4BhcVD4FrhGUDck5+KkZebP3j94Zu5oJXoqjzs7xhJD9TYipRotHyvL+V RB1xrg+tOX9+jy+6X1FUx9Tl1xWy13MyvsPYKwQMjpOEks8uUfmd/Fng2H79fMtjTJEm CQwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=u8l4KYfqj1b2NPYscLP3ABkBd/y0GQJbbSIRyDTnZfU=; b=a0CAkaIO55AJKuU61Yj15FdeRjCGoU4cWsF20AFLsMZ62ID+B7knO+jwb100z3zLGA YWuEExKWy3T/pWXRPVhVuUBW5v3bn2syWYGoiJ7CxTtvQMUDKpLDU8+2viLs4IF8ET5d G9PZSa6eraFZ2uq5QQcJSy7ByanUGP0+RU70E0gsXLnIZBGXbdVulwrJ16jNPg8b1pdc C2GIJ/xxIeokJPhJlDQqhO+HtvP93TIOMGwWs1R8MBbulsl2e2d2I6uxJ3o8VzQ9zA2s ZrcCzl+t4/vZl7wkM7Q1PxZlhTAed3v4zNnxndXF9wvnsPb0wxanVfRIPgNFlhPLTica QyuQ== X-Gm-Message-State: AOPr4FWPpwydlc9E9rE9rMOAVAnekvg8nADE4r118uBwYgvdI7f5cMnDAdR+Muc0tsVMsQ== X-Received: by 10.98.85.194 with SMTP id j185mr59878946pfb.68.1462900590157; Tue, 10 May 2016 10:16:30 -0700 (PDT) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id zn7sm5823084pac.41.2016.05.10.10.16.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 May 2016 10:16:29 -0700 (PDT) Sender: Mark Johnston Date: Tue, 10 May 2016 10:20:15 -0700 From: Mark Johnston To: "Bjoern A. Zeeb" Cc: freebsd-dtrace@freebsd.org Subject: Re: DTrace panic Message-ID: <20160510172015.GA1518@wkstn-mjohnston.west.isilon.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Tue, 10 May 2016 17:16:30 -0000 On Mon, May 09, 2016 at 04:05:44PM +0000, Bjoern A. Zeeb wrote: > Hi, > > I am seeing this panic when trying to use DTrace on r299073. I > cannot rule out that it's my (experimental) environment; just wanted > to check if it might have been a known breakage before digging into it. I've never seen this, FWIW. I'm currently running r299276 with some local changes. > > # dtrace -n 'dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }' > dtrace -n 'dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }' > dtrace: description 'dtrace:::BEGIN ' matched 1 probe > kernel trap 12 with interrupts disabled > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0xae > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xfffff800012ebc03 > stack pointer = 0x28:0xfffffe0000226740 > frame pointer = 0x28:0xfffffe0000226780 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = IOPL = 0 > current process = 576 (dtrace) > [ thread pid 576 tid 100048 ] > Stopped at 0xfffff800012ebc03: addl %eax,(%rax) > db> where > where > Tracing pid 576 tid 100048 td 0xfffff80001f0f000 > dmapbase() at 0xfffff800012ebc03/frame 0xfffffe0000226780 > dtrace_xcall() at dtrace_xcall+0xb2/frame 0xfffffe00002267d0 > dtrace_fuword32() at dtrace_fuword32+0xfd66/frame 0xfffffe0000226830 > dtrace_fuword32() at dtrace_fuword32+0xa6ec/frame 0xfffffe0000226930 > dev2udev() at dev2udev+0x37ef/frame 0xfffffe0000226990 > kern_ioctl() at kern_ioctl+0x1a7/frame 0xfffffe0000226a00 > sys_ioctl() at sys_ioctl+0x171/frame 0xfffffe0000226ad0 > amd64_syscall() at amd64_syscall+0x4c6/frame 0xfffffe0000226bf0 > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0000226bf0 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80125267a, rsp = 0x7fffffffe9c8, rbp = 0x7fffffffea10 --- > > db> show reg > show reg > cs 0x20 > ds 0x3b > es 0x3b > fs 0x13 > gs 0x1b > ss 0x28 > rax 0xae > rcx 0 > rdx 0xfffffe0000817000 > rbx 0xffffffff802b43f0 > rsp 0xfffffe0000226758 > rbp 0xfffffe0000226780 > rsi 0xffffffff802b43f0 > rdi 0xfffff800012ebc00 > r8 0xfffff800012ebc00 > r9 0xfffff800012ebc00 > r10 0xfffff800012ebc00 > r11 0xfffffe00002266f8 > r12 0xffffffff80429f30 smp_no_rendevous_barrier > r13 0xfffffe0001127000 > r14 0xfffff800012ebc00 > -More-- > r15 0xfffff800012ebc00 > rip 0xfffff800012ebc03 > rflags 0xae > 0xfffff800012ebc03: addl %eax,(%rax) > > _______________________________________________ > freebsd-dtrace@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace > To unsubscribe, send any mail to "freebsd-dtrace-unsubscribe@freebsd.org" From owner-freebsd-dtrace@freebsd.org Wed May 11 16:46:00 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3AC2B37E6F for ; Wed, 11 May 2016 16:46:00 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5A191086 for ; Wed, 11 May 2016 16:46:00 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pa0-x22a.google.com with SMTP id r5so20172403pag.1 for ; Wed, 11 May 2016 09:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jFF5THEWIMtCmXWVd/HEcMDwH0IheXWudW3vHBRM7RE=; b=AkEPHR/6hgLuCCp/ZzgelAmfsp+SJY2N58e3KECuB+9YWFGH3ccCY9zDLd+zKqfXrm YTdHGH/lFB5KoLA/8JwVqszdHOr7jVjOEFbfxV+fViVowWdThRfiJtotnOODiKKYUe89 TA2ycAfpQW0OaPZZ/KU28+rnR5X7t9pXpOcyPWLj1EOn99CL6Ujh5uAST3mSRBbliX28 r2Zrk7Ua2KTjtstOnQBm4fryhR8tFjcPpCqd9kYliMYYYK9/oURIgq6dEW/jTVOGZ3dM ockknaLnEtaRfzuOUaeObGvjAcjT1UIGOeCUXDooJdf8ZtABOEvDgMccJ8JihaOluck/ dSTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=jFF5THEWIMtCmXWVd/HEcMDwH0IheXWudW3vHBRM7RE=; b=LK9CCjftR8QdstefUNRoYtFzarq2lE8K6aZWdfm9XFwfGg9FMKl+9xhRkxQn6L0TxA OSCwL2QudlnXu+UC9xFTr8c2SwA5LvZdexTitys4Zh/+R1zS4p0zwzGjpakAK0mwOGKU 2QFVIHO3FWZnm+vNtRevEz3EnJWoNC0f/SkoLNFMCdwIRm/RzmVUQ9TEAhL5HUcqJ5jO TnzzimPtsFqpS+9CKONRBk+jhb0+JX3trN5pPwLFNbvmQujTMsdo+6yjobpWBSXOriMt BPDqGP6e4tWWTFuCVoFAf+iL6LFP8C41rODQC44fBZsWfvl/ozsuJEd98rm3ihIVKQIL yRcw== X-Gm-Message-State: AOPr4FWSMuznsDDtbFUmRM8eqDugXkOm8phO/FsEh90IcNWdI6fvpJ0GPjfVPXjaVxrh0w== X-Received: by 10.66.236.167 with SMTP id uv7mr6469128pac.75.1462985160072; Wed, 11 May 2016 09:46:00 -0700 (PDT) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id qy8sm13452856pac.17.2016.05.11.09.45.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2016 09:45:59 -0700 (PDT) Sender: Mark Johnston Date: Wed, 11 May 2016 09:49:45 -0700 From: Mark Johnston To: Abhishek Kulkarni Cc: "freebsd-dtrace@freebsd.org" Subject: Re: Regarding Dtrace on Arm Message-ID: <20160511164945.GB76917@wkstn-mjohnston.west.isilon.com> References: <85861491-5F47-4448-B933-E1394C578646@juniper.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85861491-5F47-4448-B933-E1394C578646@juniper.net> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 16:46:01 -0000 On Sat, May 07, 2016 at 08:55:56PM +0000, Abhishek Kulkarni wrote: > Hello All, > > I was using Dtrace using the FBT provider on an arm platform with witness enabled. When FBT is used with the kernel module, it generates a kernel panic or the system becomes unresponsive. Is this problem know or seen before. I am copying the kernel backtrace below for reference. The issue seems to be with a blockable sleep lock(kld_sx) acquired which is conflicting with the td->td_critnest positive value. Unfortunately, I think this is expected. The ARM port of DTrace will call into the kernel linker from probe context to perform stack unwinding. This is a bug since the kernel linker cannot be entered in arbitrary contexts - the thread might already hold the linker lock, or might hold a critical section as in your example. This is a known issue, but I'm not sure if anyone is working on fixing it. -Mark From owner-freebsd-dtrace@freebsd.org Wed May 11 16:59:51 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2AF4B37355 for ; Wed, 11 May 2016 16:59:51 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from mail.strugglingcoder.info (strugglingcoder.info [104.236.146.68]) by mx1.freebsd.org (Postfix) with ESMTP id C61451D28 for ; Wed, 11 May 2016 16:59:48 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from localhost (unknown [10.1.1.3]) (Authenticated sender: hiren@strugglingcoder.info) by mail.strugglingcoder.info (Postfix) with ESMTPA id 67954171C5; Wed, 11 May 2016 09:59:47 -0700 (PDT) Date: Wed, 11 May 2016 09:59:47 -0700 From: hiren panchasara To: Doug Rabson Cc: freebsd-dtrace@FreeBSD.org Subject: Re: plockstat Message-ID: <20160511165947.GF51099@strugglingcoder.info> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="L2Brqb15TUChFOBK" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 16:59:51 -0000 --L2Brqb15TUChFOBK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable - current@ + dtrace@ On 05/09/16 at 11:11P, Doug Rabson wrote: > Is plockstat supposed to work on FreeBSD? I'm running FreeBSD-current and > when I try it, I get: >=20 > plockstat: failed to compile program: probe description > plockstat65047:::rw-block does not match any probes >=20 > Any ideas what to try next? > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --L2Brqb15TUChFOBK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJXM2T/XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lTBgIAJqkp0OVYacwjpMapp9oSH3w Qu3PUoniD+HvQ/UTAITCQHjIr6VeESt4/KMf7WaCQqSaJ8oXWGnJiHWNM/tVb6Jr zPjJIWctq48eCMxadokQTnHEw2RPhifuOk7L+vC5+rVeycEPyKCoKYkqqG1BKgxn 0sx4Y7r38csrE4IXDfl7tlUwoilPChWcqFOmHsO8w2HfDH6a0RbB4iE0bib6v/yL uZui1Ns+P8n0+4QF9InenqEdRxXexisAt3zAPmknnaQNPPjtdRs09hHs/w54Y/tX EPxeQzO2h6EWbH25XabvEq7P2IjWRutm8Ibj/ldDU/pavGSKT3dh3OUnrk5Ujb0= =BcBh -----END PGP SIGNATURE----- --L2Brqb15TUChFOBK-- From owner-freebsd-dtrace@freebsd.org Wed May 11 17:27:50 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00AE0B37AD9; Wed, 11 May 2016 17:27:50 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C6FC91142; Wed, 11 May 2016 17:27:49 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x244.google.com with SMTP id g132so4229594pfb.3; Wed, 11 May 2016 10:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=O4NVponpbYrPkyEYTKUNZUnjM78ZicTJFj0UuLyEc78=; b=ZnFsxGBw92tjJVA8XuL57byVjhcJiKaWYn5oxJ3sKFAUsZD33s5K4hUpEGSm/a3on9 kCTS8k240mPmfOIYDgrj4HY1dNGEuBih4M5b8islyRU+bSLDENL92CKxbucJqodv7V8I KSmX30WmQXDePgQ9KP9kc9beKkQ5U+Y9Nhb9WAA2pQf1edMWUIMCp+v3TEJwWOklXnnP DsyN7es5pCDykVzsOZQw5I5eNuSvOOgMKqBX/dJGC/KZQ9iDu0JR1zxU1/kU4e8i+GKi BVAzIxdvgT5y9twTlAbMvVrq+l7ZiWKXi2pRC3I6qrvnTGSou9P2qUk3J3lHIsq/+7TU wD2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=O4NVponpbYrPkyEYTKUNZUnjM78ZicTJFj0UuLyEc78=; b=Z8dACpksHdKtCenh844SjK+BGxA67/kL0DPSMeQZVrV021+G94ajeFlFFh1WOG120E X9198D4KLxfA8heZUfGB+1ZkcflfepoBZspna0Gi0cJeqXpKBn7PuBv/3rMRnI3IdmPx RMy1yDvFcEVd2Sq95slKcny2YwuLYR6QH5VblX4WUoZsyUkFfVm/iHzQsTjQipBOzKBn 6EJCZETprjddvjGEDrGUHlsaWSLDRbcy8rjr2noZ770q5qaaeQynJwiI7kP000u985+Q ztSRc8HMs0mz+BJuuBJtEZ8nop0nooTecgV4CICkHeJgxty44ymPMTlq9z36HNdPJy2j dy9Q== X-Gm-Message-State: AOPr4FUNAatQ9fYxjOpb2oNNaqqTHrnopR7D2cxEIW7m68u4XsF4EFJ3KVguaaUaSqqMEg== X-Received: by 10.98.53.6 with SMTP id c6mr6767933pfa.89.1462987669502; Wed, 11 May 2016 10:27:49 -0700 (PDT) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id s23sm13577881pfj.86.2016.05.11.10.27.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2016 10:27:49 -0700 (PDT) Sender: Mark Johnston Date: Wed, 11 May 2016 10:31:34 -0700 From: Mark Johnston To: Doug Rabson Cc: FreeBSD Current , freebsd-dtrace@freebsd.org Subject: Re: plockstat Message-ID: <20160511173134.GC76917@wkstn-mjohnston.west.isilon.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 17:27:50 -0000 On Mon, May 09, 2016 at 11:11:33AM +0100, Doug Rabson wrote: > Is plockstat supposed to work on FreeBSD? I'm running FreeBSD-current and > when I try it, I get: > > plockstat: failed to compile program: probe description > plockstat65047:::rw-block does not match any probes > > Any ideas what to try next? Unfortunately, the plockstat probes have not been implemented in libthr, so there's nothing for plockstat(1) to use. I think it should probably be disconnected from the build until that's addressed. One of my colleagues at Isilon has done a proof-of-concept implementation of plockstat-like probes. It uses the support in share/mk for adding USDT probes, so the integration is pretty simple: one just adds the .d script containing provider definitions to SRCS. The patch is here: https://people.freebsd.org/~markj/patches/isi_plockstat.diff I just extracted it from an internal repo; some work may be needed for it to apply to head/. There's a bit more work needed to integrate USDT probes into the source tree. dtrace -G has problems with incremental rebuilds that would need to be fixed first. However, it works fine otherwise - the DTrace test suite build creates a number of programs containing USDT probes. -Mark From owner-freebsd-dtrace@freebsd.org Wed May 11 18:33:41 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3AE7B37F32 for ; Wed, 11 May 2016 18:33:41 +0000 (UTC) (envelope-from abkulkarni@juniper.net) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0147.outbound.protection.outlook.com [157.56.110.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8473F1387; Wed, 11 May 2016 18:33:41 +0000 (UTC) (envelope-from abkulkarni@juniper.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=junipernetworks.onmicrosoft.com; s=selector1-juniper-net; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ksewXAfaM6RZnFZqcT0wQOkiUBdZhkevmS+2s431BpQ=; b=DqYk13Yjoz3tV+XG+D152FwTz44a+MkpK62K3EobU//J++YN3D4mGG1PTvqkvsUXVykeAKZ+KqrQbWfHakYQnhYXakWmmB+7k2JajmEB6eqUlMCY5p8LEokhfVpisAqZR0HmtKWoULsnBXEqpEDZ/sqvIhGDhBmrTAiPoJTO8Oo= Received: from CY1PR0501MB1596.namprd05.prod.outlook.com (10.161.162.12) by CY1PR0501MB1594.namprd05.prod.outlook.com (10.161.161.156) with Microsoft SMTP Server (TLS) id 15.1.485.9; Wed, 11 May 2016 18:17:51 +0000 Received: from CY1PR0501MB1596.namprd05.prod.outlook.com ([10.161.162.12]) by CY1PR0501MB1596.namprd05.prod.outlook.com ([10.161.162.12]) with mapi id 15.01.0485.016; Wed, 11 May 2016 18:17:51 +0000 From: Abhishek Kulkarni To: Mark Johnston CC: "freebsd-dtrace@freebsd.org" Subject: Re: Regarding Dtrace on Arm Thread-Topic: Regarding Dtrace on Arm Thread-Index: AQHRqKLZl11LIZRiwEqjDonTz2/ETZ+z+PiA//+jQwA= Date: Wed, 11 May 2016 18:17:51 +0000 Message-ID: <812C8B41-5996-41E3-9340-3EFC0C2AD5F5@juniper.net> References: <85861491-5F47-4448-B933-E1394C578646@juniper.net> <20160511164945.GB76917@wkstn-mjohnston.west.isilon.com> In-Reply-To: <20160511164945.GB76917@wkstn-mjohnston.west.isilon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: FreeBSD.org; dkim=none (message not signed) header.d=none;FreeBSD.org; dmarc=none action=none header.from=juniper.net; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [66.129.239.10] x-ms-office365-filtering-correlation-id: bb003633-d387-4c2e-da25-08d379c8906a x-microsoft-exchange-diagnostics: 1; CY1PR0501MB1594; 5:ADGBWL0AIMnw5jqSgpCdYyfcrGg0jJwsEP7FplTdktb/h98ZSFKnjp6aSN5keF3W1415bcrtAG0SgZIZmlOji00VrWMtJSmsftmw0nHtUFKQR4n0SR6IaogYXSDiX0f8G3uirK/9/9+iqIJdx4NnAw==; 24:IVR0cQrFvErWdCIdGRoW35di/zhmU+AhRJXSaO1YRZTxZ05U94Khq++TEfGdWGpLGIcznC8akMyyCTFHzVOGmgbquc6flIZCSmH2cU+bSEw=; 7:VXzsvcpvkzusBsjEcE7UQVZiJZ/jrhgz/VoRfBXEMbMUgZCbK1eTNIlcBs32I128YZ9in7j73spAp4ClCqjFbGTkXiTTqnPX7/aWfl11EX/I7lcB3U9yTXflcCT9t6v4KdcgNzqOpKjKmp8k0VbqNGXv/c5zyo578Bj1NSAQcsS0YMAVmduXN95ciVnl6V/o x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0501MB1594; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0501MB1594; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0501MB1594; x-forefront-prvs: 0939529DE2 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(24454002)(377454003)(53754006)(54356999)(4326007)(81166006)(76176999)(19580395003)(33656002)(19580405001)(3280700002)(3480700004)(2900100001)(5002640100001)(5008740100001)(82746002)(50986999)(2950100001)(189998001)(110136002)(122556002)(3660700001)(77096005)(66066001)(102836003)(3846002)(6116002)(83716003)(11100500001)(36756003)(586003)(5004730100002)(92566002)(106116001)(2906002)(450100001)(87936001)(86362001)(1220700001)(8936002)(10400500002)(104396002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0501MB1594; H:CY1PR0501MB1596.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <7F4000AF36E075448DF56975DE89CB74@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2016 18:17:51.1151 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0501MB1594 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 18:33:42 -0000 VGhhbmtzIHZlcnkgbXVjaCBNYXJrLiBTaG91bGQgSSByYWlzZSBhIGJ1ZyBhYm91dCB0aGlzIG9u IGZyZWVic2Qub3JnPw0KDQpSZWdhcmRzDQpBYmhpc2hlayBLdWxrYXJuaQ0KDQoNCg0KDQpPbiA1 LzExLzE2LCA5OjQ5IEFNLCAiTWFyayBKb2huc3RvbiIgPG1hcmtqZGJAZ21haWwuY29tIG9uIGJl aGFsZiBvZiBtYXJrakBGcmVlQlNELm9yZz4gd3JvdGU6DQoNCj5PbiBTYXQsIE1heSAwNywgMjAx NiBhdCAwODo1NTo1NlBNICswMDAwLCBBYmhpc2hlayBLdWxrYXJuaSB3cm90ZToNCj4+IEhlbGxv IEFsbCwNCj4+IA0KPj4gSSB3YXMgdXNpbmcgRHRyYWNlICB1c2luZyB0aGUgRkJUIHByb3ZpZGVy IG9uIGFuIGFybSBwbGF0Zm9ybSB3aXRoIHdpdG5lc3MgZW5hYmxlZC4gV2hlbiBGQlQgaXMgdXNl ZCB3aXRoIHRoZSBrZXJuZWwgbW9kdWxlLCBpdCBnZW5lcmF0ZXMgYSBrZXJuZWwgcGFuaWMgb3Ig dGhlIHN5c3RlbSBiZWNvbWVzIHVucmVzcG9uc2l2ZS4gSXMgdGhpcyBwcm9ibGVtIGtub3cgb3Ig c2VlbiBiZWZvcmUuIEkgYW0gY29weWluZyB0aGUga2VybmVsIGJhY2t0cmFjZSBiZWxvdyBmb3Ig cmVmZXJlbmNlLiBUaGUgaXNzdWUgc2VlbXMgdG8gYmUgd2l0aCBhIGJsb2NrYWJsZSBzbGVlcCBs b2NrKGtsZF9zeCkgYWNxdWlyZWQgd2hpY2ggaXMgY29uZmxpY3Rpbmcgd2l0aCB0aGUgdGQtPnRk X2NyaXRuZXN0IHBvc2l0aXZlIHZhbHVlLg0KPg0KPlVuZm9ydHVuYXRlbHksIEkgdGhpbmsgdGhp cyBpcyBleHBlY3RlZC4gVGhlIEFSTSBwb3J0IG9mIERUcmFjZSB3aWxsDQo+Y2FsbCBpbnRvIHRo ZSBrZXJuZWwgbGlua2VyIGZyb20gcHJvYmUgY29udGV4dCB0byBwZXJmb3JtIHN0YWNrDQo+dW53 aW5kaW5nLiBUaGlzIGlzIGEgYnVnIHNpbmNlIHRoZSBrZXJuZWwgbGlua2VyIGNhbm5vdCBiZSBl bnRlcmVkIGluDQo+YXJiaXRyYXJ5IGNvbnRleHRzIC0gdGhlIHRocmVhZCBtaWdodCBhbHJlYWR5 IGhvbGQgdGhlIGxpbmtlciBsb2NrLCBvcg0KPm1pZ2h0IGhvbGQgYSBjcml0aWNhbCBzZWN0aW9u IGFzIGluIHlvdXIgZXhhbXBsZS4NCj4NCj5UaGlzIGlzIGEga25vd24gaXNzdWUsIGJ1dCBJJ20g bm90IHN1cmUgaWYgYW55b25lIGlzIHdvcmtpbmcgb24gZml4aW5nDQo+aXQuDQo+DQo+LU1hcmsN Cg== From owner-freebsd-dtrace@freebsd.org Wed May 11 18:51:02 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F4A3B37483 for ; Wed, 11 May 2016 18:51:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5FB271EB7 for ; Wed, 11 May 2016 18:51:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pa0-x234.google.com with SMTP id r5so21187561pag.1 for ; Wed, 11 May 2016 11:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0NJJwXqS6qpcjL+uyA7ue86d1nj/oe2EUJBdvrn0468=; b=oASkSn2W4oyPRokUa4E+q62EaAP1AIlCxyloQTTMFPya2REG+Bk1QAslgGnkBtv0pB ZzDEff+Xq5O9yQT0j7df92dy6IIb31yTCRFEfcsqon3kJTyJGQhSiuGx/WtX0bkOQgfH F3v5Ly//nd7oGbPsfp4xAWsR1FoKYczpS0OY5K5+W85+7W3exo4IsN8uBrEfaZFN3a9K bypatfI7ywrpd6X14Twvd+dQ5SwkzeuEOrMSl2B7X4cIzV7eTInk94S7snSpnSdogJoE XAJnoj+U2mlbaqsLmqMtGVOFGYbFxj9W1IqSLxYei5H/pw7JAIPRWd4pa9s0+cNnlWVQ BvvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=0NJJwXqS6qpcjL+uyA7ue86d1nj/oe2EUJBdvrn0468=; b=KmpFrnLojxHl2LmGcTwJM732b0GcjcSIcIgpY3kUa2Cw8WUD28rJu9l0lSzTmw+Azn tDHNkQjS0ViOb8Lyu9SD+o/XCs4pp9GryQwi8kFhEwz/QW/jEywou+Obz2OP9fphMbsB Gf5XiipOx5DuYEph8yN1PpfxaWvRlLnKRmWi/mDjWqshYL/75Gi8tj9AzEfQH2mdhF2j S+L4VNh0M92wKV//GpuryOqCfE5pNrRYyCt9ukTClPM1jIheKC+J+VozaRrQ9ppl+nB6 +c/6ZjQNUCs0xe+UaKOO76xDvMD4ISIv1N+HPW9mPGPR0s2Hwgm7F48wRAg0OqIGutg3 nl7A== X-Gm-Message-State: AOPr4FWfUm7CGe8qOUCzKw5Xv6Mj0tG0eL07VP17KKDG3yXqN8tL5FSh7wlXjAv3hKfwgg== X-Received: by 10.67.1.233 with SMTP id bj9mr7314023pad.46.1462992661997; Wed, 11 May 2016 11:51:01 -0700 (PDT) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id bf4sm13997988pac.4.2016.05.11.11.50.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2016 11:51:01 -0700 (PDT) Sender: Mark Johnston Date: Wed, 11 May 2016 11:54:46 -0700 From: Mark Johnston To: Abhishek Kulkarni Cc: "freebsd-dtrace@freebsd.org" Subject: Re: Regarding Dtrace on Arm Message-ID: <20160511185446.GF76917@wkstn-mjohnston.west.isilon.com> References: <85861491-5F47-4448-B933-E1394C578646@juniper.net> <20160511164945.GB76917@wkstn-mjohnston.west.isilon.com> <812C8B41-5996-41E3-9340-3EFC0C2AD5F5@juniper.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <812C8B41-5996-41E3-9340-3EFC0C2AD5F5@juniper.net> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 18:51:02 -0000 On Wed, May 11, 2016 at 06:17:51PM +0000, Abhishek Kulkarni wrote: > Thanks very much Mark. Should I raise a bug about this on freebsd.org? That would be helpful, thanks. > > Regards > Abhishek Kulkarni > > > > > On 5/11/16, 9:49 AM, "Mark Johnston" wrote: > > >On Sat, May 07, 2016 at 08:55:56PM +0000, Abhishek Kulkarni wrote: > >> Hello All, > >> > >> I was using Dtrace using the FBT provider on an arm platform with witness enabled. When FBT is used with the kernel module, it generates a kernel panic or the system becomes unresponsive. Is this problem know or seen before. I am copying the kernel backtrace below for reference. The issue seems to be with a blockable sleep lock(kld_sx) acquired which is conflicting with the td->td_critnest positive value. > > > >Unfortunately, I think this is expected. The ARM port of DTrace will > >call into the kernel linker from probe context to perform stack > >unwinding. This is a bug since the kernel linker cannot be entered in > >arbitrary contexts - the thread might already hold the linker lock, or > >might hold a critical section as in your example. > > > >This is a known issue, but I'm not sure if anyone is working on fixing > >it. > > > >-Mark From owner-freebsd-dtrace@freebsd.org Thu May 12 07:59:26 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ABCAEB38107 for ; Thu, 12 May 2016 07:59:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [198.74.231.69]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF3B1F8C; Thu, 12 May 2016 07:59:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id ADDBF46C0A; Thu, 12 May 2016 03:59:25 -0400 (EDT) Date: Thu, 12 May 2016 08:59:25 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Mark Johnston cc: Abhishek Kulkarni , "freebsd-dtrace@freebsd.org" Subject: Re: Regarding Dtrace on Arm In-Reply-To: <20160511164945.GB76917@wkstn-mjohnston.west.isilon.com> Message-ID: References: <85861491-5F47-4448-B933-E1394C578646@juniper.net> <20160511164945.GB76917@wkstn-mjohnston.west.isilon.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Thu, 12 May 2016 07:59:26 -0000 On Wed, 11 May 2016, Mark Johnston wrote: >> Hello All, >> >> I was using Dtrace using the FBT provider on an arm platform with witness >> enabled. When FBT is used with the kernel module, it generates a kernel >> panic or the system becomes unresponsive. Is this problem know or seen >> before. I am copying the kernel backtrace below for reference. The issue >> seems to be with a blockable sleep lock(kld_sx) acquired which is >> conflicting with the td->td_critnest positive value. > > Unfortunately, I think this is expected. The ARM port of DTrace will call > into the kernel linker from probe context to perform stack unwinding. This > is a bug since the kernel linker cannot be entered in arbitrary contexts - > the thread might already hold the linker lock, or might hold a critical > section as in your example. > > This is a known issue, but I'm not sure if anyone is working on fixing it. Andrew Turner and I have discussed this on multiple occasions -- the issue is that to unwind stacks on ARMv7/ARMv8, you need access to unwind tables that are accessed via the linker. In our Cambridge L41 course, our workaround was to compile everything into the kernel rather than use modules -- and, unfortunately, we've not had a chance to get back to sorting this out. The solution is not that difficult, it just requires a bit of work: we need a reference-count/lockless synchronisation model that allows safe lookup of unwind state from preemptive contexts (not just DTrace, but also HWPMC), to ensure that unwind tables are kept stable while they could be in use from those contexts. Robert From owner-freebsd-dtrace@freebsd.org Sat May 14 21:32:32 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB5F7B39F06 for ; Sat, 14 May 2016 21:32:32 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from smtp.hungerhost.com (smtp.hungerhost.com [216.38.51.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A40BA111B for ; Sat, 14 May 2016 21:32:32 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from cpe-24-193-98-158.nyc.res.rr.com ([24.193.98.158]:49495 helo=[192.168.0.127]) by vps.hungerhost.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1b1hAj-0004tX-Mw; Sat, 14 May 2016 17:32:29 -0400 From: "George Neville-Neil" To: "hiren panchasara" Cc: "Doug Rabson" , freebsd-dtrace@FreeBSD.org Subject: Re: plockstat Date: Sat, 14 May 2016 17:32:28 -0400 Message-ID: In-Reply-To: <20160511165947.GF51099@strugglingcoder.info> References: <20160511165947.GF51099@strugglingcoder.info> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_MailMate_378E92BA-ED62-420D-B6A7-3400F07FC3A8_="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Mailer: MailMate (1.9.4r5234) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com X-Authenticated-Sender: vps.hungerhost.com: gnn@neville-neil.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Sat, 14 May 2016 21:32:32 -0000 This is an OpenPGP/MIME signed message (RFC 3156 and 4880). --=_MailMate_378E92BA-ED62-420D-B6A7-3400F07FC3A8_= Content-Type: text/plain Honestly I have not tested it. I'll take a look. Best, George On 11 May 2016, at 12:59, hiren panchasara wrote: > - current@ > + dtrace@ > > On 05/09/16 at 11:11P, Doug Rabson wrote: >> Is plockstat supposed to work on FreeBSD? I'm running FreeBSD-current and >> when I try it, I get: >> >> plockstat: failed to compile program: probe description >> plockstat65047:::rw-block does not match any probes >> >> Any ideas what to try next? >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --=_MailMate_378E92BA-ED62-420D-B6A7-3400F07FC3A8_= Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlc3mW0ACgkQYdh2wUQKM9Iu4QCgujTGwmnMRcr4Jj0LpGkbAUk1 mBUAoIicKiY0XQaMBxTR9co85mcabgy6 =jML2 -----END PGP SIGNATURE----- --=_MailMate_378E92BA-ED62-420D-B6A7-3400F07FC3A8_=--