[Python-bugs-list] [ python-Bugs-668433 ] Abort with "negative ref count"

SourceForge.net noreply@sourceforge.net
Wed, 15 Jan 2003 13:37:03 -0800


Bugs item #668433, was opened at 2003-01-15 07:23
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=668433&group_id=5470

>Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
>Assigned to: Guido van Rossum (gvanrossum)
>Summary: Abort with "negative ref count"

Initial Comment:
Python 2.3a1 and the current CVS version abort with the
following error message when executing the attached
test script:
Fatal Python error:
D:\Python-current\dist\src\Objects\descrobject.c:10
object at 007C3208 has negative ref count -1

This happens only in the debug build, both on Linux
(with configure --enable-unicode=ucs4 --with-pydebug
and 2.3a1) and on Windows (with the debug build and
current CVS).

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-15 16:37

Message:
Logged In: YES 
user_id=33168

8/6/2002 works without complaints, 8/8/2002 breaks, 8/7/2002
breaks with a different error message: 
Objects/typeobject.c:466: subtype_dealloc: Assertion
`g->gc.gc_refs != (-2)' failed.

All dates are American, ie, August, 6-8.  The change
corresponds to Object/typeobject.c:

8/6 - 2.165 works
8/7 - 2.166 assertion listed above
8/8 - 2.167 assertion in bug report (current)

Guido made all the changes, assigning to him. :-)

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-15 15:37

Message:
Logged In: YES 
user_id=33168

I'm not running w/--enable-unicode=ucs4, but I still get the
problem.  I've simplified the test, but only a little so far. 
The problem did not affect 2.2.2, only 2.3.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-15 10:04

Message:
Logged In: YES 
user_id=33168

Walter, there's no file attached.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=668433&group_id=5470