Re: memcheck is getting SIGKILLed before leak report is output

Tom Hughes via Valgrind-users <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
On 01/09/2022 01:03, Bresalier, Rob (Nokia - US/Murray Hill) wrote:

> Don't understand why strace log has exit(0) without the underscore, I know for a fact that it was with the underscore.

Because exit() and _exit() are C library functions but both call
the SYS_exit system call and that is what strace shows.

The difference is that _exit doesn't run atexit() handlers or do
any other cleanup before calling SYS_exit.

Tom

-- 
Tom Hughes ([email protected])
http://compton.nu/
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.