Bug 234352 - Dtrace cannot print string argument to system call.
Summary: Dtrace cannot print string argument to system call.
Status: Closed DUPLICATE of bug 234350
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-24 12:32 UTC by shamaz.mazum
Modified: 2018-12-24 16:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***