[P4-dev] invalid index for indirect counter crashes both CLI and switch
antonin at barefootnetworks.com
Tue Jun 7 12:25:58 EDT 2016
Thanks for reporting this. I will create a Github issue for this and make
sure it is resolved in the near future.
On Mon, Jun 6, 2016 at 10:43 PM, Salvatore Signorello <
salvatore.signorello at uni.lu> wrote:
> Dear all,
> as the subject says, if you define an indirect counter and access it
> through the CLI by specifying an invalid index (CLI's counter_read
> command), both the CLI and the bmv2 will crash (The same does not happen
> with direct counter for which the CLI gives you back an "invalid entry
> handle" error message when you try to access an nonexistent entry).
> You have a trivial code in attach to reproduce the issue. The indirect
> counter in the code is called 'indirect_counter', type the following on the
> CLI to see what happens:
> "counter_read indirect_counter 1"
> It's a minor thing, but I think it's worth reporting it anyway.
> Salvatore Signorello
> PhD student of the SEDAN research group at SnT
> Interdisciplinary Centre for Security, Reliability and Trust
> University of Luxembourg
> P4-dev mailing list
> P4-dev at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev