Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2018 12:32:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234352] Dtrace cannot print string argument to system call.
Message-ID:  <bug-234352-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234352

            Bug ID: 234352
           Summary: Dtrace cannot print string argument to system call.
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: shamaz.mazum@gmail.com

I try to execute Dtrace like so (an example from wiki.freebsd.org):

dtrace -n 'syscall::open*:entry { printf("%s %s", execname, copyinstr(arg0)=
);
}'

and get some strange errors:

dtrace: error on enabled probe ID 2 (ID 76423: syscall:freebsd:open:entry):
invalid address (0x8002543a3) in action #2 at DIF offset 12

like when stringof() were used instead of copyinstr().

FreeBSD version 12.0-RELEASE.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234352-227>