Description:
Server built with
-DCMAKE_BUILD_TYPE=Debug -DWITH_DEBUG=ON -DMYSQL_MAINTAINER_MODE=ON -DWITH_SYSTEM_LIBS=ON -DWITH_NDBCLUSTER_STORAGE_ENGINE=OFF -DDOWNLOAD_BOOST=ON -DWITH_BOOST=path -DCMAKE_CXX_FLAGS=-g -DCMAKE_CXX_FLAGS_DEBUG=-g -DCMAKE_CXX_FLAGS_RELEASE=-g -O2 -DNDEBUG -DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm@14/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm@14/bin/clang++ -DCMAKE_AR=/opt/homebrew/opt/llvm@14/bin/llvm-ar
ASan ODR violation detection disabled or bug 116372 will hit instead:
$ ASAN_OPTIONS="detect_odr_violation=0" runtime_output_directory/routertest_mysqlrouter_plugin_info_plugin_info_app
...
[ RUN ] PluginInfoAppTest.NoParametersPassed
/opt/homebrew/opt/llvm@14/bin/../include/c++/v1/__functional/function.h:439:23: runtime error: member call on address 0x00016dba9880 which does not point to an object of type 'std::__function::__base<void (const std::string &)>'
0x00016dba9880: note: object is of type 'std::__1::__function::__func<PluginInfoFrontend::prepare_command_options()::$_0, std::__1::allocator<PluginInfoFrontend::prepare_command_options()::$_0>, void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)>'
01 00 00 00 b0 c8 5b 02 01 00 00 00 e0 9c ba 6d 01 00 00 00 f0 9d ba 6d 01 00 00 00 80 98 ba 6d
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'std::__1::__function::__func<PluginInfoFrontend::prepare_command_options()::$_0, std::__1::allocator<PluginInfoFrontend::prepare_command_options()::$_0>, void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)>'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/homebrew/opt/llvm@14/bin/../include/c++/v1/__functional/function.h:439:23 in
/opt/homebrew/opt/llvm@14/bin/../include/c++/v1/__functional/function.h:466:19: runtime error: member call on address 0x00016dba93c0 which does not point to an object of type 'std::__function::__base<void (const std::string &)>'
AddressSanitizer: nested bug in the same thread, aborting.
Other tests with same diagnostics:
routertest_harness_arg_handler
routertest_http_passwd
routertest_router_keyring_frontend
Different errors than bug 113190
How to repeat:
See above