<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I have this error with ASAN+UBSAN on an application involving shared libraries. The asan runtime is statically linked to the binary. Everything is built with clang 7.0 (linked with lld) and -fsanitize=address,undefined</div><div><br></div><div><div>/usr/bin/llvm-symbolizer: symbol lookup error: .../lib/libfoo.so: undefined symbol: __asan_option_detect_stack_use_after_return</div><div>==153==WARNING: Can't read from symbolizer at fd 128</div><div>/usr/bin/llvm-symbolizer: symbol lookup error: .../lib/libfoo.so: undefined symbol: __asan_option_detect_stack_use_after_return</div><div>==153==WARNING: Can't read from symbolizer at fd 128</div><div>/usr/bin/llvm-symbolizer: symbol lookup error: .../lib/libfoo.so: undefined symbol: __asan_option_detect_stack_use_after_return</div><div>==153==WARNING: Can't read from symbolizer at fd 128</div><div>/usr/bin/llvm-symbolizer: symbol lookup error: .../lib/libfoo.so: undefined symbol: __asan_option_detect_stack_use_after_return</div><div>==153==WARNING: Can't read from symbolizer at fd 128</div><div>==153==WARNING: Failed to use and restart external symbolizer!</div><div>    #0 0x96396d  (path/to/my_binary+0x96396d)</div><div>    #1 0x937fd7  (path/to/my_binary+0x937fd7)</div><div>    #2 0x8a8971  (path/to/my_binary+0x8a8971)</div><div>    #3 0x88ef99  (path/to/my_binary+0x88ef99)</div><div>    #4 0xcaa95b  (path/to/my_binary+0xcaa95b)</div><div>    #5 0xcb6fa5  (path/to/my_binary+0xcb6fa5)</div><div>    #6 0xcad584  (path/to/my_binary+0xcad584)</div><div>    #7 0xcadc5a  (path/to/my_binary+0xcadc5a)</div><div>    #8 0xcad812  (path/to/my_binary+0xcad812)</div><div>    #9 0x8b7f1c  (path/to/my_binary+0x8b7f1c)</div><div>    #10 0x7fa95711b82f  (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)</div><div>    #11 0x7b3028  (path/to/my_binary+0x7b3028)</div><div><div>SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior some_file.cpp:131:9 in </div><div>som_file.cpp:153:9: runtime error: load of value 190, which is not a valid value for type 'bool'</div></div></div><div><br></div><div>This does not happen all the time, I also have ASAN traces that are well symbolized. It is possible that is happens only with UBSAN traces, but not totally sure.</div><div>Any pointer on how to debug this?</div><div><br></div><div>Thanks,</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>