Boost logo

Boost :

From: JH (jupiter.hce_at_[hidden])
Date: 2020-02-29 11:24:54


I built boost::log in my application library, it created
and close it by calling the
boost::log::core::get()->remove_all_sinks() in destructor of the Log
library, then one of my application link to my log library got
Segmentation fault when it exited:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5fdd961 in boost::log::v2_mt_posix::core::remove_all_sinks() ()
   from /usr/lib/x86_64-linux-gnu/

If I add boost::log::core::get()->remove_all_sinks() in my application
main before it return 0, the segmentation was gong, but it stuck.

What is the proper right way to close and clean the boost::log? There
is a blog suggested to run boost::log::core::get()->remove_all_sinks()
when the main end, but that does not seem work.

Thank you.

Kind regards,

- jupiter

Boost list run by bdawes at, gregod at, cpdaniel at, john at