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

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

            Bug ID: 234350
           Summary: [dtrace] Dtrace cannot print string arguments to
                    system calls.
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: shamaz.mazum@gmail.com

I try to execute Dtrace like so:

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-234350-227>