Re: [Valgrind-users] valgind with LD_PRELOAD

2018-03-07 Thread Tom Hughes
esday, March 7, 2018 9:55 AM *Subject:* Re: [Valgrind-users] valgind with LD_PRELOAD To further investigate, some more info might be useful, and some actions below might help. General info: Which version of valgrind are you using ? On which platform ? The function setup_client_env in initimg-linu

Re: [Valgrind-users] valgind with LD_PRELOAD

2018-03-07 Thread Hari via Valgrind-users
.be> To: Hari <hari_10...@yahoo.com>; valgrind-users@lists.sourceforge.net; John Reiser <jrei...@bitwagon.com> Sent: Wednesday, March 7, 2018 9:55 AM Subject: Re: [Valgrind-users] valgind with LD_PRELOAD To further investigate, some more info might be useful, and some actions below mi

Re: [Valgrind-users] valgind with LD_PRELOAD

2018-03-06 Thread Philippe Waroquiers
To further investigate, some more info might be useful, and some actions below might help. General info: Which version of valgrind are you using ? On which platform ? The function setup_client_env in initimg-linux.c is responsible to modify LD_PRELOAD (as valgrind needs to add some values

Re: [Valgrind-users] valgind with LD_PRELOAD

2018-03-05 Thread Hari via Valgrind-users
Hi John, Thanks for your inputs. I tried both --trace-signals=yes and strace options indicated but i could not see any traces of signal sent reaching my_process.  I suspect if LD_PRELOAD itself did not happen with the following command to my_process LD_PRELOAD=./libfake.so valgrind ./my_process

Re: [Valgrind-users] valgind with LD_PRELOAD

2018-02-27 Thread John Reiser
LD_PRELOAD=./libfake.so ./my_process --> runs fine and prints memory stats But, LD_PRELOAD=./libfake.so valgrind ./my_process --> doesnt print the memory stats From few online blogs, i understand that valgrind does forward any signals to the child process that it is running on but it doesnt

[Valgrind-users] valgind with LD_PRELOAD

2018-02-27 Thread Hari via Valgrind-users
Hi, I have a query on using LD_PRELOAD with valgrind. I have a process which is LD_PRELOADED with a libraray libfake.so (name changed) which registers a signal handler and when the signal to the process is received, prints the memory statistics of this process into the log file. The same is