Re: [Boost-bugs] [Boost C++ Libraries] #1952: The operation static_cast<std::string>(boost::python::extract<std::string>(...)) crashes Python. Seems to create reference counting problem.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1952: The operation static_cast<std::string>(boost::python::extract<std::string>(...)) crashes Python. Seems to create reference counting problem.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-27 19:42:05


#1952: The operation
static_cast<std::string>(boost::python::extract<std::string>(...)) crashes
Python. Seems to create reference counting problem.
---------------------------------------------------------------------+------
  Reporter: Konstantin Aslanidi <konstantin.aslanidi_at_[hidden]> | Owner: dave
      Type: Bugs | Status: assigned
 Milestone: Boost 1.36.0 | Component: Python
   Version: Boost 1.35.0 | Severity: Showstopper
Resolution: | Keywords: python extract
---------------------------------------------------------------------+------
Comment (by Konstantin Aslanidi <konstantin.aslanidi_at_[hidden]>):

 Dave,

 I tried all combinations, I do use extra perens in the submitted code. The
 code compiles, links, runs. It succeds for list,dicts,strings etc. It
 fails for embedded structures such as tuple of tuples.

 For example:
 import vrsw2
 p=vrsw2.VarSwapTest()
 p.set((1,2))
 p.set('d')

 are successful.

 However,
 p.set(((1,2),(3,4)))
 crashes. I did some debugging, it appears that the crash occurs during
 heap deallocation. I was unable to find any version of the submitted code
 that would pass the tuple of tuples.

 K.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1952#comment:3>
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:49:57 UTC