Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2017 14:14:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217174] dtrace does not cleanup probes
Message-ID:  <bug-217174-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 217174
           Summary: dtrace does not cleanup probes
           Product: Base System
           Version: 10.3-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: daniel.genis@gmx.de

Created attachment 180077
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180077&action=
=3Dedit
DTrace script causing problem

Running and stopping a DTrace script, may leave a "ftcleanup" process behin=
d in
"DL" state, ps afux output:

root     820   0.0  0.0      0    16  -  DL    1:43PM  0:00.01 [ftcleanup]

Perl scripts (for some reason) notice this and show the following warning
afterwards:

WARNING: number of probes fixed does not match the number of defined probes=
 (16
!=3D 18, respectively)
WARNING: some probes might not fire or your program might crash


This is reproducible on 10.3-STABLE and 10.3-RELEASE, and may take two or t=
hree
attempts if it doesn't occur on the first attempt.


How to reproduce:

1. Execute attached dtracte script.
2. Stop executed dtrace script.
3. Check ps afux for kernel ftcleanup process
4. Repeat above until bug is triggered (2-3 times total should be enough)


Any perl script subsequently will print the following warning on stderr, li=
ke
this script for example:

```
#!/usr/local/bin/perl
print "Test";
```

WARNING: number of probes fixed does not match the number of defined probes=
 (16
!=3D 18, respectively)
WARNING: some probes might not fire or your program might crash


I can also reproduce this with other dtrace scripts, like this one:
https://gist.github.com/genisd/72db1d98b64d9d7127570fff7d4b89f6


I don't know how big the implications are. One of our automation scripts di=
es
due to the stderr output (it checks on that).

--=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-217174-8>