id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 12010,Exception thrown when using syslog_backend and a separate asio_server with a udp socket,Philip Joseph ,Andrey Semashev,"When I try to setup a syslog_backend in a code base that already has an asio_server that opens UDP sockets, an exception gets thrown. I am building with gcc 4.8 on ubuntu 14.04. I compile my program as such: {{{ /usr/bin/c++ -Wall -Werror -std=c++11 -g -I/home/Phil/work/3p/posix-x86_64/boost@1.60.0/include -MMD -MT boostTestProject/CMakeFiles/BoostExe.dir/main.cpp.o -MF ""boostTestProject/CMakeFiles/BoostExe.dir/main.cpp.o.d"" -o boostTestProject/CMakeFiles/BoostExe.dir/main.cpp.o -c /home/Phil/work/Testing/boostTestProject/main.cpp usr/bin/c++ -Wall -Werror -std=c++11 -g boostTestProject/CMakeFiles/BoostExe.dir/main.cpp.o -o boostTestProject/BoostExe -rdynamic /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_log.a /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_log_setup.a /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_system.a /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_filesystem.a /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_date_time.a /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_program_options.a /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_thread.a /home/Phil/work/3p/posix-x86_64/boost@1.60.0/lib/static/debug/libboost_chrono.a -lpthread -lrt }}} Below is a capture of the stack trace and error I get: {{{ Traceback (most recent call last): File ""/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py"", line 63, in from libstdcxx.v6.printers import register_libstdcxx_printers ImportError: No module named 'libstdcxx' terminate called after throwing an instance of 'boost::exception_detail::clone_impl >' what(): open: Already open Program received signal SIGABRT, Aborted. 0x00007ffff710bcc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007ffff710bcc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007ffff710f0d8 in __GI_abort () at abort.c:89 #2 0x00007ffff7710535 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007ffff770e6d6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007ffff770e703 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff770e976 in __cxa_rethrow () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00000000004c1d08 in boost::log::v2s_mt_posix::core::push_record_move (this=0x74c930, rec=...) at libs/log/src/core.cpp:734 #7 0x00000000004a29b1 in push_record ( rec=, this=0x74c930) at /home/pjosep/work/boost_1_60_0_built/posix-x86_64/boost@1.56.0/include/boost/log/core/core.hpp:308 #8 boost::log::v2s_mt_posix::sources::basic_logger, boost::log::v2s_mt_posix::sources::multi_thread_model >::push_record_unlocked(boost::log::v2s_mt_posix::record&&) ( this=0x7fffffffe070, rec=) at /home/pjosep/work/boost_1_60_0_built/posix-x86_64/boost@1.56.0/include/boost/log/sources/basic_logger.hpp:267 #9 0x00000000004a198a in boost::log::v2s_mt_posix::sources::basic_composite_logger, boost::log::v2s_mt_posix::sources::multi_thread_model, boost::log::v2s_mt_posix::sources::features > >::push_record(boost::log::v2s_mt_posix::record&&) (this=0x7fffffffe070, rec=) at /home/pjosep/work/boost_1_60_0_built/posix-x86_64/boost@1.56.0/include/boost/log/sources/basic_logger.hpp:472 #10 0x00000000004a0792 in boost::log::v2s_mt_posix::aux::record_pump >::~record_pump ( this=0x7fffffffdff0, __in_chrg=) at /home/pjosep/work/boost_1_60_0_built/posix-x86_64/boost@1.56.0/include/boost/log/sources/record_ostream.hpp:340 #11 0x000000000049c341 in main (argc=1, argv=0x7fffffffe1e8) at /home/Phil/work/Testing/boostTestProject/main.cpp:43 }}}",Bugs,closed,To Be Determined,log,Boost 1.60.0,Showstopper,invalid,"log, syslog, asio, udp",