Code Monkey home page Code Monkey logo

equihash's Issues

Example command in README.md doesn't work

The README states

For example, to compute Equihash using N=120 and k=5 using this projects Makefile as seed, consuming at least 32 MB of RAM

$ ./equihash -n 120 -k 5 -s Makefile

However, actually running this on the current master results in the error message below on Linux.

$ ./equihash -n 120 -k 5 -s Makefile                                                                                                                                                                         git:master
Error: must provide input file for non-benchmarking modes

Null pointer dereference in CLI solve mode

Since line 211 of main.c sets status to NULL, line 219 and then passes status as the first parameter of fprintf, if the conditional block between this block is not executed, fprintf tries to dereference it, which leads to segmentation fault on Linux. See GDB/GEF screenshot below. The command I run was ./equihash solve -v -n 40 -k 4 -f Makefile -s /tmp/s which I took directly from README.md. To produce the screenshot below, I only removed -O3 from the Makefile but the crash happens regardless whether optimization is enabled or not โ€“ it just produces more readable backtraces.

Screenshot 2023-08-17 at 16 16 48

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.