This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: endless loop in PyCFunction_Fini()
Type: behavior Stage:
Components: Interpreter Core Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: ajaksu2, collinwinter, spektrum
Priority: low Keywords:

Created on 2006-05-15 15:05 by spektrum, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg60910 - (view) Author: Matejcik (spektrum) Date: 2006-05-15 15:05
see https://bugzilla.novell.com/show_bug.cgi?id=171066

Basically, under some circumstances not yet determined,
PyCFunction_Fini() goes into an endless loop over a
cyclic linked list.

void
PyCFunction_Fini(void)
{
    while (free_list) {
        PyCFunctionObject *v = free_list;
        free_list = (PyCFunctionObject *)(v->m_self);
        PyObject_GC_Del(v);
    }
}

it looks like it's sufficient to do
v->m_self = NULL;
or something.
However, for one, i'm not sure if this wouldn't break
something, and for two, free_list should never be
cyclic, right?
msg60911 - (view) Author: Collin Winter (collinwinter) * (Python committer) Date: 2006-06-28 12:11
Logged In: YES 
user_id=1344176

I've been unable to reproduce this with any combination of
the following: libxml2 (v2.6.23, v2.6.26), Python (v2.4.1,
v2.4.2, v2.4.3, SVN r47141). Testing was done on Linux
2.6.13 x86 with gcc 3.3.6.
msg83913 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-03-21 02:45
Linked bug is closed as 'fixed by update': they were not able to
reproduce this on 2.5. I'll close this unless someone opposes.
msg84453 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-03-30 01:51
Marked as fixed downstream, so closing.
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43360
2009-03-30 01:51:27ajaksu2setstatus: pending -> closed
resolution: out of date
messages: + msg84453
2009-03-21 02:45:27ajaksu2setstatus: open -> pending
priority: normal -> low
type: behavior

versions: + Python 2.6, - Python 2.4
nosy: + ajaksu2

messages: + msg83913
2006-05-15 15:05:44spektrumcreate