<div dir="ltr">Hi, <div>   When I compile modemmanger with truck clang with address sanitizer, I got</div><div>the following warnings in the test case. Can any one take a look at it to see whether</div><div>this warning is valid?</div>
<div>   Thanks</div><div><br></div><div>    * ==26533==ERROR: AddressSanitizer: odr-violation (0x7f8d113eb020):</div><div> *   [1] size=4 'mm_plugin_major_version' samsung/mm-plugin-samsung.c:34:5</div><div> *   [2] size=4 'mm_plugin_major_version' iridium/mm-plugin-iridium.c:36:5</div>
<div> * These globals were registered at these points:</div><div> *   [1]:</div><div> *     #0 0x45983b in __asan_register_globals (/build/amd64-generic/tmp/portage/net-misc/modemmanager-next-9999/work/modemmanager-next-9999/src/.libs/lt-ModemManager+0x45983b)</div>
<div> *     #1 0x7f8d0f5e69d6 in asan.module_ctor (/build/amd64-generic/tmp/portage/net-misc/modemmanager-next-9999/work/modemmanager-next-9999/plugins/.libs/libmm-plugin-samsung.so+0xb9d6)</div><div> *     #2 0x7f8d138bbed1 (/lib64/ld-linux-x86-64.so.2+0xeed1)</div>
<div> *     #3 0x7f8d138bbfab (/lib64/ld-linux-x86-64.so.2+0xefab)</div><div> *     #4 0x7f8d138c06fd (/lib64/ld-linux-x86-64.so.2+0x136fd)</div><div> *     #5 0x7f8d138bbd43 (/lib64/ld-linux-x86-64.so.2+0xed43)</div><div>
 *     #6 0x7f8d138bfb95 (/lib64/ld-linux-x86-64.so.2+0x12b95)</div><div> *     #7 0x7f8d12a3903a in dlopen_doit /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.15-r13/work/glibc-2.15/dlfcn/dlopen.c:67</div><div> *     #8 0x7f8d138bbd43 (/lib64/ld-linux-x86-64.so.2+0xed43)</div>
<div> *     #9 0x7f8d12a395ec in _dlerror_run /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.15-r13/work/glibc-2.15/dlfcn/dlerror.c:164</div><div> *     #10 0x7f8d12a390d0 in dlopen /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.15-r13/work/glibc-2.15/dlfcn/dlopen.c:88</div>
<div> *     #11 0x490382 in __interceptor_dlopen (/build/amd64-generic/tmp/portage/net-misc/modemmanager-next-9999/work/modemmanager-next-9999/src/.libs/lt-ModemManager+0x490382)</div><div> *     #12 0x7f8d13aa8961 in _g_module_open /build/amd64-generic/tmp/portage/dev-libs/glib-2.34.3-r2/work/glib-2.34.3/gmodule/gmodule-dl.c:99</div>
<div> *     #13 0x7f8d13aa8961 in g_module_open /build/amd64-generic/tmp/portage/dev-libs/glib-2.34.3-r2/work/glib-2.34.3/gmodule/gmodule.c:584</div><div> * </div><div> *   [2]:</div><div> *     #0 0x45983b in __asan_register_globals (/build/amd64-generic/tmp/portage/net-misc/modemmanager-next-9999/work/modemmanager-next-9999/src/.libs/lt-ModemManager+0x45983b)</div>
<div> *     #1 0x7f8d111e5c96 in asan.module_ctor (/build/amd64-generic/tmp/portage/net-misc/modemmanager-next-9999/work/modemmanager-next-9999/plugins/.libs/libmm-plugin-iridium.so+0x4c96)</div><div> *     #2 0x7f8d138bbed1 (/lib64/ld-linux-x86-64.so.2+0xeed1)</div>
<div> *     #3 0x7f8d138bbfab (/lib64/ld-linux-x86-64.so.2+0xefab)</div><div> *     #4 0x7f8d138c06fd (/lib64/ld-linux-x86-64.so.2+0x136fd)</div><div> *     #5 0x7f8d138bbd43 (/lib64/ld-linux-x86-64.so.2+0xed43)</div><div>
 *     #6 0x7f8d138bfb95 (/lib64/ld-linux-x86-64.so.2+0x12b95)</div><div> *     #7 0x7f8d12a3903a in dlopen_doit /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.15-r13/work/glibc-2.15/dlfcn/dlopen.c:67</div><div> *     #8 0x7f8d138bbd43 (/lib64/ld-linux-x86-64.so.2+0xed43)</div>
<div> *     #9 0x7f8d12a395ec in _dlerror_run /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.15-r13/work/glibc-2.15/dlfcn/dlerror.c:164</div><div> *     #10 0x7f8d12a390d0 in dlopen /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.15-r13/work/glibc-2.15/dlfcn/dlopen.c:88</div>
<div> *     #11 0x490382 in __interceptor_dlopen (/build/amd64-generic/tmp/portage/net-misc/modemmanager-next-9999/work/modemmanager-next-9999/src/.libs/lt-ModemManager+0x490382)</div><div> *     #12 0x7f8d13aa8961 in _g_module_open /build/amd64-generic/tmp/portage/dev-libs/glib-2.34.3-r2/work/glib-2.34.3/gmodule/gmodule-dl.c:99</div>
<div> *     #13 0x7f8d13aa8961 in g_module_open /build/amd64-generic/tmp/portage/dev-libs/glib-2.34.3-r2/work/glib-2.34.3/gmodule/gmodule.c:584</div><div> * </div><div> * ==26533==HINT: if you don't care about these warnings you may set ASAN_OPTIONS=detect_odr_violation=0</div>
<div> * SUMMARY: AddressSanitizer: odr-violation: global 'mm_plugin_major_version' at samsung/mm-plugin-samsung.c:34:5</div><div> * ==26533==ABORTING</div><div><br></div><div><br></div><div><br></div><div>    Thanks</div>
</div>