[Boost-bugs] [Boost C++ Libraries] #11629: Appears clash when the boost::log and boost::asio::io_service are running in the same time.

Subject: [Boost-bugs] [Boost C++ Libraries] #11629: Appears clash when the boost::log and boost::asio::io_service are running in the same time.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-09 03:12:44


#11629: Appears clash when the boost::log and boost::asio::io_service are running
in the same time.
-------------------------------------------------+-------------------------
 Reporter: liangzhonghong <1054116023@…> | Owner:
     Type: Bugs | chris_kohlhoff
Milestone: To Be Determined | Status: new
  Version: Boost 1.58.0 | Component: asio
 Keywords: boost::log boost::asio::io_service | Severity: Problem
-------------------------------------------------+-------------------------
 I meet the problem that the boost::log can't output any of log to target
 file when executes boost::asio::io_service.run() for socket.
 The socket uses the functions as followed:
         1) async_connect
         2) async_read_until. It receives data from server.
         3) async_write. It sends heartbeat data interval 60 seconds.

 But if I mask the _ioService.run(),The boost::log work normally. what
 reason is that?
 what is I remind when use the boost::log and boost::asio::server?

 BOOST library version is boost_1_58.
 My OS information as followed:
         [liangzh_at_localhost agent]$ uname -a
                 Linux localhost 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22
 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
         [liangzh_at_localhost lebe_log]$ uname -m
                 x86_64
         [liangzh_at_localhost lebe_log]$ uname -r
                 2.6.32-358.el6.x86_64
         [liangzh_at_localhost agent]$ gcc --version
                 gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
                 Copyright (C) 2010 Free Software Foundation, Inc.
                 This is free software; see the source for copying
 conditions. There is NO
                 warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11629>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC