how to run smbd under valgrind?

Jeremy Allison jra at
Fri Jul 20 18:00:39 UTC 2018

On Fri, Jul 20, 2018 at 09:22:18PM +0800, ssdl.566 via samba-technical wrote:
> Hi  all:
>           does anybody know how to run smbd under valgrind to detect mem leaks?
>           in my test lab,  i try to run smbd under valgrind as follows:
>           valgrind --leak-check=full   --log-file=/tmp/valgrind-smbd.log /usr/sbin/smbd -D
>           and then , i copy files from windows machine  to samba share
>          the VSS and RES of smbd keep growing.
>           however, in log file,  i cannot find any usefull infomation about mem leaks,

You need --trace-children=yes as
smbd forks immediately.

More information about the samba-technical mailing list