[Bug 234350] [dtrace] Dtrace cannot print string arguments to system calls.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 24 12:30:42 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234350

            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 at FreeBSD.org
          Reporter: shamaz.mazum at 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.

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


More information about the freebsd-bugs mailing list