473,563 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fatal error: GC object already tracked

I'm developing a larger Python program, and one component (a text
parser for a networking protocol) happend to be terribly slow, while
quite a simple piece of code, so I decided to reimplement it in C.

However, my code seems to do something in err, since the program
semi-randomly locks somewhere outside my C-code (after returning to
python), and semi-randomly issues a "Fatal error: GC object already
tracked". As this is my first C-module ever, nearly straight from the
HOWTO, I don't have much clue as to what is really wrong with my
code...

The code is available for inspection at
http://grimoire.takeit.se/files/CReader.c, and the error happens at
line 1111 in that file...

TIA
/Egil
Jul 18 '05 #1
1 10400
On 11 Oct 2004 09:17:07 -0700, re****@takeit.s e (Egil M?ller) wrote:
I'm developing a larger Python program, and one component (a text
parser for a networking protocol) happend to be terribly slow, while
quite a simple piece of code, so I decided to reimplement it in C.

However, my code seems to do something in err, since the program
semi-randomly locks somewhere outside my C-code (after returning to
python), and semi-randomly issues a "Fatal error: GC object already
tracked". As this is my first C-module ever, nearly straight from the
HOWTO, I don't have much clue as to what is really wrong with my
code...

The code is available for inspection at
http://grimoire.takeit.se/files/CReader.c, and the error happens at
line 1111 in that file...


Your CReader_Buffer_ dealloc method should be calling PyObject_GC_UnT rack before
doing anything else, see:

http://docs.python.org/api/supportin...detection.html

I can't say for sure that that will fix your problem, but given the error
message you're getting, it seems like a good place to start.

---
Greg Chapman

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
9985
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function fetchRow() on a non-object." What are the available options here? Am I supposed to check I have a real object whenever I perform
0
2139
by: Vikram | last post by:
hi, i have a program which uses multiple threads and downloads pages using pycurl and processes these pages among other things. the program works fine with python 2.2 and pycurl 7.10.8 ; with python 2.3 i get two kinds of errors maybe related? a) python dumps core and prints out "Fatal Python error: GC object already tracked" b) the...
0
4571
by: SHC | last post by:
Hi all, I have a VC++ .NET 2003 - Windows XP Pro PC. I created a Win32 console application in my VC++ .NET 2003 and copied validateDOM.cpp, books.xml and books.xsd (see the attached files below) from Microfost MSDN Library for my project "validateXML". When I did "Build" on my project, I got the following fatal error C1010: c:\Documents and...
1
5956
by: m.Ward | last post by:
We are running a asp.net site, we are using a tiered architecture with the data class looking like Function MyDataReader(ByVal stylemainid As Int32, ByVal letter As String) As SqlDataReade Dim myConnection As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("connectionString") myConnection.Open( Dim myCommand As SqlCommand...
0
2087
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi guys! My newly built website has just recently went online, but sometimes I face errors (randomly) like these: System.IndexOutOfRangeException: There is no row at position 0. System.InvalidOperationException: There is already an open DataReader
1
2548
by: gp | last post by:
****************************************************************************************************************************** Catchable fatal error: Object of class stdClass could not be converted to string in <filenameon line <line>...
1
4263
by: p.lavarre | last post by:
Is this interesting Python output? $ gc-object-already-tracked.py ********************************************************************** File "/Users/admin/Desktop/lxio/gc-object-already-tracked.py", line 770, in __main__.REDACTED Failed example: nqzhexes(self.send()) Expected:
6
3139
by: Patient Guy | last post by:
I am a newcomer to using PHP but not to programming (C, C++, Javascript). I am playing around with classes and wanted to make a function that has a method simply for producing either plain text or HTML output in a tabular way a listing of the global variables in the = keyValue two-column format. That's what the method listGlobals does. ...
0
1479
by: jadeite100 | last post by:
Hi: In the UT web site it says we're suppose to use Python 2.52: http://www.cdf.utoronto.ca/~csc148h/winter/python.shtml I am currently using Windows XP SP3 in my laptop. When I ran the following code in my home computer I get the following exception after the highlighted line in yellow: >>> import media >>> f =...
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.