Coder Social home page Coder Social logo

segmentation fault about f2k HOT 5 CLOSED

redborder avatar redborder commented on August 20, 2024
segmentation fault

from f2k.

Comments (5)

Bigomby avatar Bigomby commented on August 20, 2024

This issue seems to be an invalid database file. Can you post the content of the config_basic.json file?

from f2k.

naude-r avatar naude-r commented on August 20, 2024

config is:

{
        "sensors_networks": {
                "10.211.28.227":{
                        "observations_id": {
                                "16777224":{
                                        "enrichment":{
                                                "sensor_ip":"10.211.28.227",
                                                "sensor_name":"flow_test",
                                                "observation_id":16777224
                                        }
                                },
                                "16777248":{
                                        "enrichment":{
                                                "sensor_ip":"10.211.28.227",
                                                "sensor_name":"flow_test",
                                                "observation_id":16777248
                                        }
                                },
                                "16777240":{
                                        "enrichment":{
                                                "sensor_ip":"10.211.28.227",
                                                "sensor_name":"flow_test",
                                                "observation_id":16777240
                                        }
                                }
                        }
                }
        }
}

this does not explain why f2k will actually run after trying a few times. makes me think of a race condition....but that is just a guess.

from f2k.

Bigomby avatar Bigomby commented on August 20, 2024

I can't reproduce this issue. I tried your configuration and no segfault is produced. Maybe the problem is due to a different library version. There is an available a docker image which contains all the required dependencies with the correct versions.

You can take a look to the Dockerfile or use the image available on Docker Hub.

Using f2k with Docker:

  • Clone the repo and cd to the project folder
  • The following command will open a shell inside the container:
docker run -it --rm -v $(pwd):/app redborder/dev-containers:f2k
  • Compile with ./cofigure and make
  • Run f2k

from f2k.

naude-r avatar naude-r commented on August 20, 2024

something that might be different is that the netflow packets are send continuously while f2k attempts to startup. not sure if that will have an impact?

will try the docker instance. thank you for the tip.

from f2k.

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.