Project

General

Profile

Actions

Bug #7298

closed

printa() of multiple aggregations can fail for llquantize()

Added by Robert Mustacchi almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
DTrace
Start date:
2016-08-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

In fixing 7297 and searching for all uses of DTRACEAGG_LQUANTIZE and making sure that there was correct handling for DTRACEAGG_LLQUANTIZE, it was clear that there was another bug; take the following:

BEGIN
{
    @a["i"] = llquantize(10, 10, 0, 6, 20);
    @b["suck"] = count();
    printa(@a, @b);
    exit(0);
}

Running this D script induces death in DTrace:

CPU     ID                    FUNCTION:NAME
  0      1                           :BEGIN 
Arithmetic Exception (core dumped)

Related issues

Related to illumos gate - Bug #7297: clear() on llquantize aggregation causes dtrace to exitClosedBryan Cantrill2016-08-13

Actions
Actions

Also available in: Atom PDF