Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Feb 2015 04:55:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 197260] [dtrace] assertion failure when printing aggregation
Message-ID:  <bug-197260-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 197260
           Summary: [dtrace] assertion failure when printing aggregation
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: markj@FreeBSD.org

While playing around with stddev() I discovered that it's possible to crash
libdtrace by printing a stddev aggregation immediately after clearing it:

$ cat test.d
dtrace:::BEGIN
{
        @a = stddev(0);
        clear(@a);
        printa("%@d", @a);
}
$ sudo dtrace -s test.d
dtrace: script 'test.d' matched 1 probe
CPU     ID                    FUNCTION:NAME
Assertion failed: (divisor != 0), file
/home/mark/src/freebsd/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c,
line 240.
  4      1                           :BEGIN

This doesn't happen with other aggregation functions (avg, max, min).

-- 
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-197260-8>