#62 psyco makes python crash with "GC object already tracked"


I am using pyfits library
and I would greatly need psyco for my real application.
Unfortunately, on the little test script that I attach
here, I get with python 2.4.2 the following error:
bash-2.05b$ python test_fits2.py
test First Part
Overwrite existing file 'file1.fits'.
Fatal Python error: GC object already tracked

If I comment the 2 psyco lines, I get
bash-2.05b$ python test_fits2.py
test First Part
Overwrite existing file 'file1.fits'.

and all is fine.

I have:
>>> psyco.__version__

I checked that psyco is working on another script which
does not make use of the pyfits library, and is
actually giving great speedup!

So I hope you can help me find what in pyfits is
incompatible with psyco (as I guess the crash comes
from this reason).

Note : it might be a bug in pyfits, but I start here
because I feel it is the place to track the bug
down.... I will post a bug report in pyfits as well.


  • Johann

    Johann - 2005-11-08
  • Nobody/Anonymous

    Logged In: NO

    Speaking as the maintainer for pyfits, it certainly is possible that it is a
    problem there. Since we have no experience with psyco though, I'm not
    sure what we can do by ourselves to track this down. If a pscyo developer
    can give some help in what to look for, that would be great.

    Perry Greenfield (perry at stsci.edu)

  • Armin Rigo

    Armin Rigo - 2005-11-10

    Logged In: YES

    In this example program there is memory corruption affecting the internal data structure of Psyco... I don't know yet what is going on. While I think that this is an unknown bug of Psyco, it is still possible that it stumbles over one of the known bugs: pyfits.py is quite long, so I can't tell, but you might be able to see if pyfits depends on one of the features listed here:


    I will continue to investigate this problem too.

  • Armin Rigo

    Armin Rigo - 2005-11-12

    Logged In: YES

    Fixed (I think).

    Subversion repository: committed revision 19800

  • Armin Rigo

    Armin Rigo - 2005-11-12
    • status: open --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks