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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to