Giter VIP home page Giter VIP logo

valgrind_suppression_macos's Introduction

Suppression File ... Ignore Mac Internal Library Leaks -- 42 School Mac

What is Supression File :

A suppression file is a file that tells Valgrind to ignore certain errors or leaks that are not caused by your program but by some external library or system call. This can help you focus on the errors that are relevant to your code and avoid false positives.

Why is it required ?

Valgrind reads the leaks from the readline library itself and finding leaks in your project (Ex: So long, Minishell) difficult. See the first picture which creates huge line of leaks due to macos. At times it wastes time to find the actual one. Then after using the suppression with the command above you will see the output with your actual leaks in your function.

image image

Pasted image 20230517114825.png]]

How to Run ?

  • Clone the repo
  • Copy the ignore_readline.supp file to your Project folder
  • run valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --suppressions=ignore_readline.supp -s ./program_name
  • Check the output

Feedbacks

If you face bugs or want to add something to this let us know :)

valgrind_suppression_macos's People

Contributors

mdabir1203 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.