Giter Club home page Giter Club logo

Comments (2)

stefan-walluhn avatar stefan-walluhn commented on September 18, 2024

Since the underlying project is archived, I don't expect to see any fix for this issue. So this is for anyone stumbling across this: The bug resides within these lines of code: https://github.com/grafana/metrictank/blob/6d15fe1d382fa6a48a3d3f006a4b25dccb5d1952/util/flag_parsers.go#L28-L34

The value for orgID is parsed into a signed integer by Atoi. While integers on 64bit platforms are large enough to hold uint32, this is not the case on 32bit platforms. The maximum value of uint32 fits into a signed int64, but not into a signed int32.

The fix would be to replace line 28 in flag_parsers.go linked above:

orgID, err := strconv.ParseUint(parts[0], 10, 32)

Patching the file locally may be a workaround to build this project on 32bit RaspberryPi. I was able to compile after patching.

from carbon-relay-ng.

stefan-walluhn avatar stefan-walluhn commented on September 18, 2024

...just to see it crashing right after launch. There are tons of atomic 64bit operations within this source code, so I don't think this will ever run on 32bit platforms: https://github.com/search?q=repo%3Agrafana%2Fcarbon-relay-ng%20atomic&type=code

from carbon-relay-ng.

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.