From: Paul F. <pj...@wa...> - 2021-01-27 11:12:38
|
> On 25 Jan 2021, at 11:49, Kunal Chauhan <atk...@gm...> 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 |