When built with ASAN the master branch at commit f1fa0d3b9dfef17a5129b53695fa454f1a8b8b68 (4.11.2 plus some) causes an ODR violation. I wasn't able to backtrack why it's happening. # bin/winbindd ================================================================= ==29975==ERROR: AddressSanitizer: odr-violation (0x7f18bb2e2ae0): [1] size=88 'ndr_table_secrets' source3/librpc/gen_ndr/ndr_secrets.c:992:34 [2] size=88 'ndr_table_secrets' source3/librpc/gen_ndr/ndr_secrets.c:992:34 These globals were registered at these points: [1]: #0 0x55a8a20ecc7e in __asan_register_globals (/src/samba/bin/default/source3/winbindd/winbindd+0x2b0c7e) #1 0x7f18baaa860b in asan.module_ctor (/src/samba/bin/shared/private/libndr-samba4.so+0x9f960b) [2]: #0 0x55a8a20ecc7e in __asan_register_globals (/src/samba/bin/default/source3/winbindd/winbindd+0x2b0c7e) #1 0x7f18b82d00ab in asan.module_ctor (/src/samba/bin/shared/private/libsecrets3-samba4.so+0x2a0ab) ==29975==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0 SUMMARY: AddressSanitizer: odr-violation: global 'ndr_table_secrets' at source3/librpc/gen_ndr/ndr_secrets.c:992:34 ==29975==ABORTING