Bug 13392 - spnupdate fails with asan
Summary: spnupdate fails with asan
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.8.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-18 09:54 UTC by William Brown
Modified: 2018-04-18 10:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Brown 2018-04-18 09:54:17 UTC
/usr/local/samba/sbin/samba_spnupdate: 
==17510==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
../source4/dsdb/dns/dns_update.c:353: Failed SPN update - with error code 1

This may indicate a library ordering error in way during spnupdate's build process.
Comment 1 William Brown 2018-04-18 10:39:39 UTC
This looks like it affects other tools like samba-tool also:

 /usr/local/samba/bin/samba-tool --help
==17518==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
Comment 2 William Brown 2018-04-18 10:49:24 UTC
Of course - these are python, and they load libldb which has asan, but *after* python has already started.

To make this work nicely use:

ASAN_OPTIONS="symbolize=1 detect_leaks=0" LD_PRELOAD=/usr/lib64/libasan.so.4 /usr/local/samba/bin/samba-tool