const std::string& argument passed to bind was destroyed immediately.
=================================================================
==18001==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffdf1396c70 at pc 0x00000176c9fb bp 0x7ffdf1394ca0 sp 0x7ffdf1394450
READ of size 4 at 0x7ffdf1396c70 thread T0
#0 0x176c9fa in __interceptor_memcmp.part.319 (/home/brano/dss/dss-mainline/build-pc-asan/build/dsstests+0x176c9fa)
#1 0x7f182e31f70c (/lib64/libsqlite3.so.0+0x1870c)
#2 0x7f182e34dadf (/lib64/libsqlite3.so.0+0x46adf)
#3 0x7f182e39ffaa (/lib64/libsqlite3.so.0+0x98faa)
#4 0x7f182e3a41b7 in sqlite3_step (/lib64/libsqlite3.so.0+0x9d1b7)
#5 0x233dd18 in dss::SqlStatement::step() /home/brano/dss/dss-mainline/build-pc-asan/build/../../build/../src/sqlite3_wrapper.cc:113:13
#6 0x1bffc62 in SQL_WRAPPER::testBindArgs::test_method() /home/brano/dss/dss-mainline/build-pc-asan/build/../../build/../tests/sqlite3_wrapper.cpp:125:5
#7 0x1bfc6f1 in SQL_WRAPPER::testBindArgs_invoker() /home/brano/dss/dss-mainline/build-pc-asan/build/../../build/../tests/sqlite3_wrapper.cpp:58:1
#8 0x17e2d4f in boost::detail::function::void_function_invoker0<void (*)(), void>::invoke(boost::detail::function::function_buffer&) /usr/include/boost/function/function_template.hpp:118:11
#9 0x7f182dda7ba1 in boost::detail::function::function_obj_invoker0<boost::detail::forward, int>::invoke(boost::detail::function::function_buffer&) (/lib64/libboost_unit_test_framework.so.1.66.0+0x54ba1)
#10 0x7f182dda778c in boost::execution_monitor::catch_signals(boost::function<int ()> const&) (/lib64/libboost_unit_test_framework.so.1.66.0+0x5478c)
#11 0x7f182dda7864 in boost::execution_monitor::execute(boost::function<int ()> const&) (/lib64/libboost_unit_test_framework.so.1.66.0+0x54864)
#12 0x7f182dda7940 in boost::execution_monitor::vexecute(boost::function<void ()> const&) (/lib64/libboost_unit_test_framework.so.1.66.0+0x54940)
#13 0x7f182ddcdc88 in boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::function<void ()> const&, unsigned int) (/lib64/libboost_unit_test_framework.so.1.66.0+0x7ac88)
#14 0x7f182ddb3a96 in boost::unit_test::framework::state::execute_test_tree(unsigned long, unsigned int, boost::unit_test::framework::state::random_generator_helper const*) (/lib64/libboost_unit_test_framework.so.1.66.0+0x60a96)
#15 0x7f182ddb3cbf in boost::unit_test::framework::state::execute_test_tree(unsigned long, unsigned int, boost::unit_test::framework::state::random_generator_helper const*) (/lib64/libboost_unit_test_framework.so.1.66.0+0x60cbf)
#16 0x7f182ddb3cbf in boost::unit_test::framework::state::execute_test_tree(unsigned long, unsigned int, boost::unit_test::framework::state::random_generator_helper const*) (/lib64/libboost_unit_test_framework.so.1.66.0+0x60cbf)
#17 0x7f182ddac3b8 in boost::unit_test::framework::run(unsigned long, bool) (/lib64/libboost_unit_test_framework.so.1.66.0+0x593b8)
#18 0x7f182ddcb647 in boost::unit_test::unit_test_main(bool (*)(), int, char**) (/lib64/libboost_unit_test_framework.so.1.66.0+0x78647)
#19 0x1c3f7e8 in main /usr/include/boost/test/unit_test.hpp:63:12
#20 0x7f182d872412 in __libc_start_main (/lib64/libc.so.6+0x24412)
#21 0x16c502d in _start (/home/brano/dss/dss-mainline/build-pc-asan/build/dsstests+0x16c502d)