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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 02 21:30:00 +0000 2018
>Closed-Date:    Tue Jul 27 11:02:17 +0000 2021
>Last-Modified:  Tue Jul 27 11:10:01 +0000 2021
>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.

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53417 CVS commit: src/tests/usr.sbin/execsnoop
Date: Sun, 18 Jul 2021 06:24:58 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Sun Jul 18 06:24:58 UTC 2021

 Modified Files:
 	src/tests/usr.sbin/execsnoop: t_execsnoop.sh

 Log Message:
 Mark t_execsnoop xfail (PR 53417)


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/tests/usr.sbin/execsnoop/t_execsnoop.sh

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

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-evbarm/53417: DTrace broken due to no struct kauth_cred
 definition
Date: Sun, 18 Jul 2021 06:27:25 +0000

 On Mon, Jul 02, 2018 at 09:30:00PM +0000, venture37@geeklan.co.uk wrote:
  > 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

 This is likely a symptom of PR 46767.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Christos Zoulas <christos@zoulas.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org,
 venture37@geeklan.co.uk
Subject: Re: port-evbarm/53417: DTrace broken due to no struct kauth_cred
 definition
Date: Mon, 19 Jul 2021 13:06:34 +0300

 --Apple-Mail=_69A72106-63A4-47DF-84B4-7332473BD09E
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii

 The definition should be present in the debugsyms.c file...

 christos


 --Apple-Mail=_69A72106-63A4-47DF-84B4-7332473BD09E
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP

 -----BEGIN PGP SIGNATURE-----
 Comment: GPGTools - http://gpgtools.org

 iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCYPVOqgAKCRBxESqxbLM7
 Ou5NAKDK6oaiIUV/UtKWTHCHBz4ppyS27wCfaOV1rapaomxNwoVGJEuV6ZRMZGI=
 =g7+F
 -----END PGP SIGNATURE-----

 --Apple-Mail=_69A72106-63A4-47DF-84B4-7332473BD09E--

State-Changed-From-To: open->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Tue, 27 Jul 2021 11:02:17 +0000
State-Changed-Why:
works for me.


From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53417 CVS commit: src/tests/usr.sbin/execsnoop
Date: Tue, 27 Jul 2021 11:05:39 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Tue Jul 27 11:05:39 UTC 2021

 Modified Files:
 	src/tests/usr.sbin/execsnoop: t_execsnoop.sh

 Log Message:
 PR/53417 appears fixed now so remove atf_expect_fail (for Arm).


 To generate a diff of this commit:
 cvs rdiff -u -r1.8 -r1.9 src/tests/usr.sbin/execsnoop/t_execsnoop.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.