Open Prikalel opened 3 years ago
Sorry for the extreme delay, but github never mailed me a notification and I just missed this issue until now.
This is currently not possible. If you need to do I/O using stdcout/stdin while doing leak detection then your best option is to add a command to libmemleak and memleak_control to suppress the output (but still do recording). The comment that using 'stats 0' would turn it off is just wrong :/.
Sorry for my bad English, but I have a couple of questions: 1) When building with binutils 2.34:
I had warnings in this lines:
By serfing a net for some time I managed to get around by replacing some code in
addr2line.c
:After that it has built with no warnings.
My "advice" for the project' manager: In other projects they add a macro check in configure.ac file and create a #define macro in config.h in case the new biutils API is installed on the user's machine. After it just add next lines to your code:
and use my_bfd_section_vma in your code :)
2) When you compile the program without
-pthread
option, you'll probably get this message:My way to compile
my_prog
was:After building with pthread error gone and I managed to start it with LD_PRELOAD:
3) Cool, but I have a REPL-apploication which I want to pass through the libmemleak to check it for leaks of memory. So after start recording in other terminal:
Libmemleak just started printing info every second and I wasn't able to print any command to my_prog. In help message there is a string:
I tryed
stats 0
but get next message:So how can I start recording but do not print any stats automatically?