469,929 Members | 1,440 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

assertion error

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
Jul 18 '05 #1
0 1468

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Todd Miller | last post: by
4 posts views Thread by Morgan Leppink | last post: by
2 posts views Thread by Arti Potnis | last post: by
1 post views Thread by Timur Safin | last post: by
5 posts views Thread by Ron Louzon | last post: by
2 posts views Thread by Penny Balkwill via .NET 247 | last post: by
7 posts views Thread by inkexit | last post: by
4 posts views Thread by Mullai | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.