Bug 14200 - ndr_table_secrets defined in two places, causing ODR violation
Summary: ndr_table_secrets defined in two places, causing ODR violation
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.11.2
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-16 14:02 UTC by hansmi
Modified: 2021-05-05 01:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hansmi 2019-11-16 14:02:35 UTC
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