[Boost-bugs] [Boost C++ Libraries] #4739: A thread safe bug about epoll_reactor

Subject: [Boost-bugs] [Boost C++ Libraries] #4739: A thread safe bug about epoll_reactor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-15 02:18:16


#4739: A thread safe bug about epoll_reactor
--------------------------------+-------------------------------------------
 Reporter: anonymous | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: asio epoll_reactor |
--------------------------------+-------------------------------------------
 There is a bug epoll_reacor the version Release 1.45.0
 In the file epoll_reactor.hpp, function epoll_reacor::run, line 369.
      void* ptr = events[i].data.ptr;
      ...
      descriptor_state* descriptor_data =
 static_cast<descriptor_state*>(ptr);
      mutex::scoped_lock descriptor_lock(descriptor_data->mutex_);

 And the file epoll_reactor.hpp, function epoll_reacor::close_descriptor,
 line 256.
      registered_descriptors_.erase(descriptor);

      The ptr ( void* ptr = events[i].data.ptr) may been free in the
 epoll_reacor::close_descriptor.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4739>
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:04 UTC