NetBSD Problem Report #53417

From www@NetBSD.org  Mon Jul  2 21:26:28 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AD0237A170
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  2 Jul 2018 21:26:28 +0000 (UTC)
Message-Id: <20180702212627.B99BD7A1E9@mollari.NetBSD.org>
Date: Mon,  2 Jul 2018 21:26:27 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: DTrace broken due to no struct kauth_cred definition
X-Send-Pr-Version: www-1.0

>Number:         53417
>Category:       kern
>Synopsis:       DTrace broken due to no struct kauth_cred definition
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 02 21:30:00 +0000 2018
>Last-Modified:  Tue Jun 30 14:35:00 +0000 2020
>Originator:     Sevan Janiyan
>Release:        HEAD
>Organization:
>Environment:
NetBSD 8.99.21 evbarm earmv6hf
>Description:
While the dtrace related modules load ok and dtrace -l lists probes, running scripts such as execsnoop or listing based on a specific provider fails with: 
dtrace: invalid probe specifier sdt: "/usr/lib/dtrace/psinfo.d", line 56: operator -> cannot be applied to a forward declaration: no struct kauth_cred definition is available

Confirmed on earmv6hf (pi) & earmv7hf (bbb)
>How-To-Repeat:
Add the following lines to /etc/modules.conf and reboot
solaris
dtrace
dtrace_sdt
dtrace_fbt
dtrace_lockstat
dtrace_profile
dtrace_syscall

run dtrace -lP syscall or run execsnoop
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-evbarm-maintainer->kern-bug-people
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Mon, 09 Jul 2018 15:13:31 +0000
Responsible-Changed-Why:
Issue is not exclusive to NetBSD/evbarm & is present on i386


From: Sevan Janiyan <sevan@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/53417 (DTrace broken due to no struct kauth_cred definition)
Date: Sun, 26 Aug 2018 18:42:48 +0100

 On 09/07/2018 16:13, sevan@NetBSD.org wrote:
 > Issue is not exclusive to NetBSD/evbarm & is present on i386

 Testing with builds from 201808242350Z, It's no longer an issue on i386.
 Still the case on evbarm though.



 Sevan

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/53417 (DTrace broken due to no struct kauth_cred definition)
Date: Tue, 25 Dec 2018 23:58:04 +0000

 It's possible to work around the issue with basic scripts and one liners
 using -x nolibs

 dtrace -x nolibs -lP syscall # now works

From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53417 CVS commit: src
Date: Tue, 30 Jun 2020 14:30:50 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Tue Jun 30 14:30:50 UTC 2020

 Modified Files:
 	src/distrib/sets/lists/tests: mi
 	src/etc/mtree: NetBSD.dist.tests
 	src/tests/usr.sbin: Makefile
 Added Files:
 	src/tests/usr.sbin/execsnoop: Makefile t_execsnoop.sh
 	src/tests/usr.sbin/opensnoop: Makefile t_opensnoop.sh

 Log Message:
 Check that DTrace's execsnoop and opensnoop work (cf. PR kern/53417).


 To generate a diff of this commit:
 cvs rdiff -u -r1.864 -r1.865 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.169 -r1.170 src/etc/mtree/NetBSD.dist.tests
 cvs rdiff -u -r1.5 -r1.6 src/tests/usr.sbin/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/usr.sbin/execsnoop/Makefile \
     src/tests/usr.sbin/execsnoop/t_execsnoop.sh
 cvs rdiff -u -r0 -r1.1 src/tests/usr.sbin/opensnoop/Makefile \
     src/tests/usr.sbin/opensnoop/t_opensnoop.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.