Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Searching for the meaning of gcmodule.c assert:`gc->gc. gc_refs ==GC_REACHABLE'

Reply
Thread Tools

Searching for the meaning of gcmodule.c assert:`gc->gc. gc_refs ==GC_REACHABLE'

 
 
David Helgason
Guest
Posts: n/a
 
      11-13-2003
I am embedding python on Mac OSX (jaguar + panther) using
boost:ython. It works like a treat, but when using a python framework
with asserts compiled in, I sometimes get an assert from gcmodule.c,
line 215 when compiling a script.

Modules/gcmodule.c:215: failed asserrtion `gc->gc.gc_refs ==
GC_REACHABLE'

This is maybe the third script I compile, so the python environment
should still be very clean.

I tried reading the code in gcmodule.c but don't understand what the
assert is warning me about or what is wrong here. Since I'm embedding
python I suspect that I'm doing something wrong with reference
counting, but in a ref-counted world that would either lead to leaks or
crashes. Can wrong ref-counting confuse the garbage collector so badly
that it asserts?

Since I don't really need the garbage collector I've tried disabling it
from python, and that fixes the problem. Only I'm worried that I've
just managed to hide a bug, not remove it.

I would be infinitly thankful if anyone could point me in a general
direction as to what the problem might be.


David Helgason
--
Over the Edge Entertainments


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding search queries, semantics, and "Meaning" ...aren't weall looking for meaning? 5lvqbwl02@sneakemail.com Python 4 01-14-2009 02:28 PM
Google search result to be URL-limited when searching site, but notwhen searching Web stumblng.tumblr Javascript 1 02-04-2008 09:01 AM
use work.my_package.all-->what exactly meaning of this Parthav VHDL 4 01-13-2006 07:50 PM
visit_decref: Assertion `gc->gc.gc_refs != 0' failed. alexLIGO Python 2 09-09-2005 03:25 PM
Meaning of output value? Sander Odekerken VHDL 2 05-18-2004 05:41 PM



Advertisments