You are not logged in.

#1 2007-03-20 15:59:02

greblus
Member
From: Poland
Registered: 2006-12-24
Posts: 25
Website

Assertion `gc->gc.gc_refs != 0' failed: is python compilation wrong?

Hi.

Is this true?:

http://adesklets.sourceforge.net/doc/en … tions.html:

"If you get errors similar to:

     python: Modules/gcmodule.c:275: visit_decref: Assertion `gc->gc.gc_refs != 0' failed.
     Aborted

It means your installment of Python has a corrupted garbage collector; it is often caused by
incorrect or aggressive optimization during the compilation.
Just recompiling a stock python environment from http://python.org/ usually solves this."

That's what I'm getting after last huge upgrade when i try to run a desklet.

Any ideas?

W.

Offline

#2 2007-03-24 11:08:31

greblus
Member
From: Poland
Registered: 2006-12-24
Posts: 25
Website

Re: Assertion `gc->gc.gc_refs != 0' failed: is python compilation wrong?

The solution is suggested here by Snowman (thanks!):

http://aur.archlinux.org/packages.php?d … =1&ID=8769

Rebuilding python with the OPT="${CFLAGS} removed from the
PKGBUILD solves the problem.

Strange thing is that it's by default defined in
makepkg.conf as: export CFLAGS="-march=i686 -O2 -pipe"

But maybe -O2 is in fact too much optimization for python gc to work
correctly...

Offline

Board footer

Powered by FluxBB