#12 Segfault on issubclass

closed-fixed
nobody
None
5
2005-08-29
2005-05-27
John Hunter
No

matplotlib uses pycxx extensively for extension code,
and several users have been trying to write pickle
support for it and have encountered segfaults when
trying to use python's object introspection on cxx objects.

It appears that the range object in your Demo subdir
has the same segfault behavior. Below is the sequence
of commands I use to build the example and attached is
testexample.py file which illustrates the segfault with
the example range class

tar xvfz pycxx_5_3_2.tar.gz
cd pycxx_5_3_2/Demo/
python setup.py build
setenv PYTHONPATH
/var/tmp/pycxx_5_3_2/Demo/build/lib.linux-i686-2.4/CXX
python testexample.py

Let me know if you have any ideas! Thank, and thanks
for pycxx

Version info
peds-pc311:~> uname -a
Linux peds-pc311 2.6.10-5-386 #1 Tue Apr 5 12:12:40 UTC
2005 i686 GNU/Linux
peds-pc311:~> gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2)

peds-pc311:~> python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2

Discussion

  • John Hunter
    John Hunter
    2005-07-28

    Logged In: YES
    user_id=395152

    Arrg, I'm a moron! I forgot to attach testexample.py.

    Trying again

    JDH

     
  • John Hunter
    John Hunter
    2005-07-28

     
    Attachments
  • Logged In: YES
    user_id=28665

    I appear to have fixed this in V5.3.4 as a side effect of
    some other edit.

     
    • status: open --> closed-fixed