Code Monkey home page Code Monkey logo

Comments (2)

ralight avatar ralight commented on June 13, 2024

No, I don't but you might get better results with my valgrind fork which does the same thing, but better and with more control.

https://github.com/ralight/valgrind , fg-final branch. It's been a while since I looked at it so ping me if it doesn't work. I've just pushed what I think is the most recent version, but haven't checked it. Something that you might find useful is the ability to toggle on/off the malloc failures, either explicitly in code using the macros in the failgrind.h header, or by defining functions that will toggle the failures on/off when they enter/leave. It means you could do things like this, for example.

int main()
{
    setup_test_suite();
    run_test_suite();
}

Then:
valgrind --tool=exp-failgrind --alloc-toggle=run_test_suite --alloc-fail-atstart=no ./test

This gives setup_test_suite() a chance to run without any failures.

from mallocfail.

rockdaboot avatar rockdaboot commented on June 13, 2024

Thanks for your answer :-)

I'll give it a try after FOSDEM.

from mallocfail.

Related Issues (2)

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.