Project

General

Profile

Bug #3520

dtrace internal error -- token type 316 is not a valid D compilation token

Added by Christopher Siden over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
DTrace
Start date:
2013-02-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

If you pass an aggregation to the trace() or print() actions dtrace fails due to an internal error.

# dtrace -n 'BEGIN{ @ = count(); trace(@); }'
dtrace: invalid probe specifier BEGIN{ @ = count(); trace(@); }: internal error
-- token type 316 is not a valid D compilation token

Same for the print action:

# dtrace -n 'BEGIN{ @ = count(); print(@); }' 
dtrace: invalid probe specifier BEGIN{ @ = count(); print(@); }: internal error
-- token type 316 is not a valid D compilation token

History

#1

Updated by Christopher Siden over 7 years ago

  • Status changed from New to Pending RTI
  • % Done changed from 0 to 100
#2

Updated by Adam Leventhal over 7 years ago

The trace() and print() actions need to explicitly handle the case of having an aggregation for an argument.

#3

Updated by Christopher Siden over 7 years ago

  • Status changed from Pending RTI to Resolved
commit e98f46c (HEAD, illumos/master, illumos-dtrace)
Author: Adam Leventhal <ahl@delphix.com>
Date:   Tue Feb 5 10:10:25 2013

    3519 DTrace fails to resolve const types from fbt
    3520 dtrace internal error -- token type 316 is not a valid D compilation token
    3521 clean up dtrace unit tests
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Eric Schrock <eric.schrock@delphix.com>
    Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
    Reviewed by: Christopher Siden <christopher.siden@delphix.com>
    Reviewed by: Richard Lowe <richlowe@richlowe.net>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF