[issue1306] Embedded python reinitialization

Christian Heimes report at bugs.python.org
Wed Nov 21 09:19:55 CET 2007


Christian Heimes added the comment:

I've added some debugging code to _Py_ForgetReference and now I'm
getting this:

$ ./reinit_test
round 1
[23832 refs]
round 2
[24558 refs]
round 3
* ob
object  : <refcnt 0 at 0x821d728>
type    : str
refcount: 0
address : 0x821d728
* op->_ob_prev->_ob_next
object  : <refcnt 0 at 0x821d728>
type    : str
refcount: 0
address : 0x821d728
* op->_ob_next->_ob_prev
object  : buffer(b'')
type    : buffer
refcount: 1
address : 0x826c8c8
* refchain
object  : <refcnt 0 at 0x81a1500>
type    : NULL
refcount: 0
address : 0x81a1500
Fatal Python error: UNREF invalid object
Aborted

Added file: http://bugs.python.org/file8791/py3k_reinit2.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1306>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py3k_reinit2.patch
Type: text/x-diff
Size: 2409 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071121/211b1444/attachment.patch 


More information about the Python-bugs-list mailing list