Re: [Boost-bugs] [Boost C++ Libraries] #9122: Reading and writing from/to the windows::stream_handle will cause blind stack writes

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9122: Reading and writing from/to the windows::stream_handle will cause blind stack writes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-23 18:58:32


#9122: Reading and writing from/to the windows::stream_handle will cause blind
stack writes
----------------------------+----------------------------------------------
  Reporter: smueller@… | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be | Component: asio
  Determined | Severity: Showstopper
   Version: Boost 1.53.0 | Keywords: asio crash stream_handle windows
Resolution: |
----------------------------+----------------------------------------------

Comment (by smueller@…):

 Note that the first attachment, win_iocp_handle_service.ipp.patch, had the
 arguments reversed for diff. It's a rookie mistake, and for that I
 apologize. Please disregard that patch. The other two are good, though.


 This is an important fix, as the cross-thread stack write is a notoriously
 evil bug to track down. I had this same bug in server code I am currently
 maintaining, and I managed by some massive luck to track it down. It can
 cause all manner of craziness that you'd never expect. In the best case,
 stack data after (before) the current frame on the thread is written. In
 the best fault case, you get a crash. In the worst case, you get
 completely unexpected program flow.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9122#comment:2>
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:14 UTC