Giter Site home page Giter Site logo

Comments (8)

pmendes avatar pmendes commented on August 16, 2024 1

tail is a good idea, I'll use that for now. BTW, operon is doing better than other options (ellyn with FE_AFP or turingbot) for my problem.

from operon.

foolnotion avatar foolnotion commented on August 16, 2024

Hi, we've noticed this happening with certain combinations of CPUs and compilation flags. Could you share more details about the CPU architecture? It might help to specify flags explicitly during the build generation phase, for example:

cmake -S . -B build -DCMAKE_CXX_FLAGS="-march=x86-64 -mavx2 -mfma" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON

Could you possibly make a debug build and attach the gdb backtrace? That would be helpful in figuring out this issue. Thanks!

from operon.

pmendes avatar pmendes commented on August 16, 2024

I built it like this:

cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=/usr/local/src/vcpkg-2022.06.16.1/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release  -DBUILD_PYBIND=OFF -DUSE_OPENLIBM=ON -DUSE_SINGLE_PRECISION=ON -DUSE_CERES_NNLS=ON -DCMAKE_INSTALL_PREFIX=/usr -DVCPKG_OVERLAY_PORTS=./ports -DMETIS_INCLUDE_DIR=/usr/include/metis

I did not specify explicitly which malloc version, so it is using whichever is the default.
I was built and run on a Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz .

I will see if I can do a debug build to provide you with the stack trace.

thanks

from operon.

pmendes avatar pmendes commented on August 16, 2024

When I run the same binary on a Intel(R) Xeon(R) W-1270 CPU @ 3.40GHz it behaves in the same way (it still produces the double free or corruption error)

from operon.

foolnotion avatar foolnotion commented on August 16, 2024

The -DUSE_JEMALLOC part is not relevant, it just happened to be what I use on my system. But the explicit flags -DCMAKE_CXX_FLAGS="-march=x86-64 -mavx2 -mfma"might actually make the error go away (alternatively -march=skylake should also work for those processors). In any case I will investigate.

from operon.

pmendes avatar pmendes commented on August 16, 2024

The Debug build does not abort... and there is no trace to supply. So I will build with your suggested options now.

from operon.

pmendes avatar pmendes commented on August 16, 2024

compiling with -DCMAKE_CXX_FLAGS="-march=x86-64 -mavx2 -mfma" resolved the problem, no more double free error. Thanks for the help!

BTW, is there any way to silence the output but still get the best function at the end? I know I can redirect stdout and/or stderr but I was wondering if there is some option that can do the same?

from operon.

foolnotion avatar foolnotion commented on August 16, 2024

currently, there is no way to do that without touching the source code, but you could use tail to get just the last line of output. it might be a good idea to add a command-line switch for that.

from operon.

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.