[oe-commits] org.oe.dreambox python-2.4.4: write gc fatal error debug info to stderr

tmbinc commit openembedded-commits at lists.openembedded.org
Wed Dec 20 17:10:05 UTC 2006


python-2.4.4: write gc fatal error debug info to stderr

Author: tmbinc at openembedded.org
Branch: org.openembedded.dreambox
Revision: fd188bdf2a8bd01a269c555c442e5e064cf04bfc
ViewMTN: http://monotone.openembedded.org/revision.psp?id=fd188bdf2a8bd01a269c555c442e5e064cf04bfc
Files:
1
packages/python/python-2.4.4/gc_object_already_tracked_debug.patch
Diffs:

#
# mt diff -r0001554e6aeaadb8906b9ad75b4aa21b05e2ad37 -rfd188bdf2a8bd01a269c555c442e5e064cf04bfc
#
# 
# 
# patch "packages/python/python-2.4.4/gc_object_already_tracked_debug.patch"
#  from [3da7578e155b95ff0f4ed5dff0c3c74ce98f6054]
#    to [d808d146fe83579ad444df1997fd891a4ff6627d]
# 
============================================================
--- packages/python/python-2.4.4/gc_object_already_tracked_debug.patch	3da7578e155b95ff0f4ed5dff0c3c74ce98f6054
+++ packages/python/python-2.4.4/gc_object_already_tracked_debug.patch	d808d146fe83579ad444df1997fd891a4ff6627d
@@ -1,7 +1,7 @@ diff -Naur Python-2.4.4/Include/objimpl.
 diff -Naur Python-2.4.4/Include/objimpl.h Python-2.4.4/Include/objimpl.h
 --- Python-2.4.4/Include/objimpl.h	2006-01-26 19:49:57.000000000 +0100
 +++ Python-2.4.4/Include/objimpl.h	2006-12-11 00:41:31.000000000 +0100
-@@ -267,8 +267,13 @@
+@@ -267,8 +267,12 @@
   * collector it must be safe to call the ob_traverse method. */
  #define _PyObject_GC_TRACK(o) do { \
  	PyGC_Head *g = _Py_AS_GC(o); \
@@ -9,10 +9,9 @@ diff -Naur Python-2.4.4/Include/objimpl.
 -		Py_FatalError("GC object already tracked"); \
 +	if (g->gc.gc_refs != _PyGC_REFS_UNTRACKED) { \
 +		PyObject *obj = (PyObject*)o; \
-+		char bla[512]; \
-+		snprintf(bla, 512, "GC object already tracked(gc_cnt %d, ob_refcnt %d, ob_type_ptr %p, ob_type '%s')", \
++		PySys_WriteStderr("GC object already tracked(gc_cnt %d, ob_refcnt %d, ob_type_ptr %p, ob_type '%s')", \
 +			g->gc.gc_refs, obj->ob_refcnt, obj->ob_type, (obj->ob_type && obj->ob_type->tp_name) ? obj->ob_type->tp_name : "typeobject not valid"); \
-+		Py_FatalError(bla); \
++		Py_FatalError(""); \
 +	} \
  	g->gc.gc_refs = _PyGC_REFS_REACHABLE; \
  	g->gc.gc_next = _PyGC_generation0; \






More information about the Openembedded-commits mailing list