Debug SMBD memory leak/usage

Ralph Böhme slow at
Tue Mar 6 06:30:27 UTC 2018


On Tue, Mar 06, 2018 at 04:29:41AM +0100, Timur I. Bakeyev via samba-technical wrote:
> I've got numerous reports that SMBD on FreeBSD in some situations eats a
> lot of (all) memory and as a last resort thought about using memory
> allocation debugging to get better picture of where the memory leaks.
> I guess I haven't done that for quite a while, as '--enable-dmalloc' option
> from Samba 3.x has disappeared in Samba .4.x and supplying -DENABLE_DMALLOC
> to CFLAGS doesn't add -ldmalloc to the list of libs to link with and hence
> Samba build fails.

never used dmalloc and completely untested, but what about:

./configure ...

The ADDITIONAL_* environment variables can be used to pass flags that are used
during compilation, but not for configure checks.

Fwiw, removing cc samba users mailing list from cc.


Ralph Boehme, Samba Team
Samba Developer, SerNet GmbH
GPG Key Fingerprint:           FAE2 C608 8A24 2520 51C5
                               59E4 AA1E 9B71 2639 9E46

More information about the samba-technical mailing list