govpp icon indicating copy to clipboard operation
govpp copied to clipboard

Using Log2RingSize custom set to more than 10 causes crash in packet writer for gomemif

Open NAYANSEN90 opened this issue 2 years ago • 1 comments

When we are using custom memory config in gomemif, with Log2RingSize set to more than 10, the packet writer after writing some packets panics with index out of range error:

panic: runtime error: index out of range [770] with length 1

The packet buffersize doesn't matter. I have tried 2048 to 9128. It doesn't affect the outcome, only the Log2RingSize. I have set it to 11, 12 it panics.

I see that the default Log2RingSize is set to 10.

NAYANSEN90 avatar Dec 27 '23 13:12 NAYANSEN90

Can you please provide specific references to the code that has been modified and also provide a recipe to reproduce the issue?

dwallacelf avatar Jan 25 '24 15:01 dwallacelf