Re: [Boost-bugs] [Boost C++ Libraries] #8290: Python GIL not acquired before freeing shared_ptr, causes crash

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8290: Python GIL not acquired before freeing shared_ptr, causes crash
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-28 13:30:18


#8290: Python GIL not acquired before freeing shared_ptr, causes crash
-------------------------------+---------------------
  Reporter: team@… | Owner: rwgk
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: Python
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by eu@…):

 I am bumping into this issue, having crash with this traceback

 {{{
   boost::python::converter::shared_ptr_deleter::operator()(void const*) ()
 // CRASH here
   boost::detail::sp_counted_base::release
   ~shared_count
 }}}

 It is a python-instantiated object which is deleted in c++ because its
 refcount drops to zero. I also confirm that locking the GIL solves the
 issue thanks for the tip). Would you mind sharing your workaround?

 Cheers!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8290#comment:1>
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:15 UTC