Re: [valgrind]: mem leaks

Paul Floyd <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>

> On 25 Jan 2021, at 11:49, Kunal Chauhan <[email protected]> wrote:
> 
> Thanks for clarifications
> ++ if the binary is crashed or may be not crashed when it runs with valgrind, but in both case valgrind is able to give the report. ?


Hi

If your application causes a segmentation fault, the OS will send it a SIGSEGV signal. When it is running inside Valgrind, Valgrind will see whether or not your application has a signal handler. If not it will print a message describing the fault and also instructions as to what you should do in the unlikely event that the cause is a stack overflow in your program’s main thread.

In short, Valgrind will do the same as you application would do running outsizde of Valgrind, just with a lot more messages.

A+
Paul




_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.