assertion error

B

benevilent

Hey,

I'm getting an assertion error as a result of embedding python.

"Modules/gcmodule.c:231: visit_decref: Assertion `gc->gc.gc_refs != 0'
failed."

I only get this assertion error with Python compiled with debugging
flags, rathen than the standard library which comes with Debian.

Using gdb I know on what type the object is, which is involved in the
assertion. It is a subclass of a built-in type which I have defined.
This subclass has variables which can cause instances of the subclass to
participate in circular references (the built-in type I have defined
itself has no member variables). Removing the circular references seems
to avoid the error.

I was under the impression that python can detect circular references,
and that this should not be a problem.

Any suggestions as to what else the problem might be?

Thanks,
Laurie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top