Code Monkey home page Code Monkey logo

Comments (5)

ondrej-fabry avatar ondrej-fabry commented on July 20, 2024

Hello, thanks for the report. Please include information about the VPP version. Also, if possible perhaps including dump using vpp_get_stats for the retrieved data.

from govpp.

ondrej-fabry avatar ondrej-fabry commented on July 20, 2024

I have not done any code investigation, but from quick glance, my assumption of what is happening here is that some interface got deleted during the update of stats entry data.

This commit is possibly related to this: FDio/vpp@ff27c9f

I see two solutions to be explored:

  1. Catch the panic at the updateStats in the core package and re-allocate the memory with interface stats data. This should avoid any future panics when access invalid data from stats segment.
  2. Check the length of data on each read out of stats data, but this might affect performance when retrieving a large amount of stats data.

from govpp.

glazychev-art avatar glazychev-art commented on July 20, 2024

Thanks!
We use this VPP version - https://github.com/FDio/vpp/tree/1765f014bc7fcc3b924019ec96350eb50bef629f

I'm not sure, but I think that the creation of the interface occurred at the time the statistics were received. It seems we didn't remove the interfaces at that point

from govpp.

glazychev-art avatar glazychev-art commented on July 20, 2024

Hello @ondrej-fabry,

Can't we just use
vecLen = uint32(len(data))
instead of
vecLen := *(*uint32)(vectorLen(dirVector)) ?

https://github.com/FDio/govpp/blob/v0.8.0/adapter/statsclient/statseg_v2.go#L340-L341

from govpp.

edwarnicke avatar edwarnicke commented on July 20, 2024

@ondrej-fabry Any insight here?

from govpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.