Bug 234352

Summary: Dtrace cannot print string argument to system call.
Product: Base System Reporter: shamaz.mazum
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: markj
Priority: ---    
Version: 12.0-RELEASE   
Hardware: Any   
OS: Any   

Description shamaz.mazum 2018-12-24 12:32:32 UTC
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.
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2018-12-24 16:19:43 UTC

*** This bug has been marked as a duplicate of bug 234350 ***