From owner-freebsd-bugs@freebsd.org Fri Feb 17 14:14:31 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66E0CCE36E5 for ; Fri, 17 Feb 2017 14:14:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3EBDB167A for ; Fri, 17 Feb 2017 14:14:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v1HEEVWM054444 for ; Fri, 17 Feb 2017 14:14:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217174] dtrace does not cleanup probes Date: Fri, 17 Feb 2017 14:14:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: daniel.genis@gmx.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2017 14:14:31 -0000 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.=