Message9940

Author jmadden
Recipients jmadden, stefan.richthofer
Date 2015-04-23.22:12:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429827165.12.0.847147999262.issue2337@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a reproducible example:

  >>> import gc
  >>> import weakref
  >>> from Queue import Queue
  >>> class X(object):
  ...    def __init__(self, q):
  ...         self.q = q
  ...
  >>> x = X(Queue())
  >>> gc.monitorObject(x)
  >>> gc.collect()
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)

Here's where the infinite recursion from the earlier stack trace begins:

	at org.python.modules._collections.PyDeque.traverse(PyDeque.java:725)
	at org.python.modules.gc.traverse(gc.java:2795)
	at org.python.modules.gc.removeNonCyclicWeakRefs(gc.java:2531)
	at org.python.modules.gc.syncCollect(gc.java:1889)
	at org.python.modules.gc.collect_intern(gc.java:1794)
	at org.python.modules.gc.collect(gc.java:1722)
History
Date User Action Args
2015-04-23 22:12:45jmaddensetmessageid: <1429827165.12.0.847147999262.issue2337@psf.upfronthosting.co.za>
2015-04-23 22:12:45jmaddensetrecipients: + jmadden, stefan.richthofer
2015-04-23 22:12:45jmaddenlinkissue2337 messages
2015-04-23 22:12:44jmaddencreate