[P4-dev] invalid index for indirect counter crashes both CLI and switch

Antonin Bas antonin at barefootnetworks.com
Tue Jun 7 12:25:58 EDT 2016

Hi Salvatore,

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.
> Best,
> Salvatore
> --
> Salvatore Signorello
> PhD student of the SEDAN research group at SnT
> Interdisciplinary Centre for Security, Reliability and Trust
> University of Luxembourg
> http://wwwen.uni.lu/snt/people/salvatore_signorello
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20160607/48b8ea19/attachment-0002.html>

More information about the P4-dev mailing list