Issue 1488906: endless loop in PyCFunction_Fini() (original) (raw)

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:17 admin set github: 43360
2009-03-30 01:51:27 ajaksu2 set status: pending -> closedresolution: out of datemessages: +
2009-03-21 02:45:27 ajaksu2 set status: open -> pendingpriority: normal -> lowtype: behaviorversions: + Python 2.6, - Python 2.4nosy: + ajaksu2messages: +
2006-05-15 15:05:44 spektrum create