[C++-sig] Boost.Python Quickstart test failure/segfault on Boost 1.35.0 Python 2.5 on 64-bit Linux (RedHat)

Eric Newhuis enewhuis at gmail.com
Wed May 21 20:03:04 CEST 2008


This appears to be a result of using Python 2.55  built from pkgsrc.  I 
don't have this problem when I  download and build Python "by hand".

I'll take this up with the pkgsrc maintainers.

> On my platform: Linux 2.6.9-67.0.1.ELsmp #1 SMP Fri Nov 30 11:57:43 EST 
> 2007 x86_64 GNU/Linux
> 
> I verified that the boost python tests fail only when I provide a 
> user-config.jam file that points to a 64-bit Python 2.5. If I don’t
 > provide such a file then the default choices made by BJAM
> result in a passing test.
> 
> The failing line in question appears to be decrementing a reference count.
> 
> #0 0x0000000000000000 in ?? ()
> #1 0x0000002a998830fc in ~object_base (this=0x7fbfffb0f0) at 
> ../../../../boost/python/object_core.hpp:436
> #2 0x0000002a998830c5 in ~object (this=0x7fbfffb0f0) at 
> ../../../../boost/python/slice_nil.hpp:16
> #3 0x0000002a99a254d1 in ~dict_base (this=0x7fbfffb0f0) at 
> ../../../../boost/python/dict.hpp:89
> #4 0x0000002a99a254b9 in ~dict (this=0x7fbfffb0f0) at 
> ../../../../libs/python/src/object/enum.cpp:139
> #5 0x0000002a99a28a6b in boost::python::objects::(anonymous 
> namespace)::new_class (name=0x2a9988812a "hello", num_types=1, 
> types=0x7fbfffb1e8, doc=0x0)




More information about the Cplusplus-sig mailing list