Debug SMBD memory leak/usage
Timur I. Bakeyev
timur at freebsd.org
Tue Mar 6 15:26:32 UTC 2018
On 6 March 2018 at 07:30, Ralph Böhme <slow at samba.org> wrote:
> On Tue, Mar 06, 2018 at 04:29:41AM +0100, Timur I. Bakeyev via
> samba-technical wrote:
> > I guess I haven't done that for quite a while, as '--enable-dmalloc'
> > from Samba 3.x has disappeared in Samba .4.x and supplying
> > to CFLAGS doesn't add -ldmalloc to the list of libs to link with and
> > Samba build fails.
> never used dmalloc and completely untested, but what about:
> ADDITIONAL_CFLAGS="-DENABLE_DMALLOC" \
> ADDITIONAL_LDFLAGS="-ldmalloc" \
> ./configure ...
> The ADDITIONAL_* environment variables can be used to pass flags that are
> during compilation, but not for configure checks.
Thanks, Ralph! That actually did the trick and I got the the binaries
linked with dmalloc.
More information about the samba-technical