Subject: Re: [BTBugs] [bittorrent 4.20.0] unhandled
exception
Date: vendredi 23 juin 2006 12:18
From: "Greg Hazel" <>
To: <me>
Seems like a psyco bug, yeah.
-Greg
On 6/23/06, solsTiCe d'Hiver <me> wrote:
> hi.
> when i close bittorrent 4.20.0 on linux (one
torrent, stopped), i got that
> error:
> Unhandled exception in thread started by <function
psyco_thread_stub at
> 0xb7b06a04>
> Traceback (most recent call last):
>
File "/usr/lib/python2.4/site-packages/psyco/profiler.py",
line 367, in
> psyco_thread_stub
> _psyco.statcollect()
> AttributeError: 'NoneType' object has no
attribute 'statcollect'
>
> either with psyco 1.5 or 1.5.1 and python 2.4.3
>
> a psyco bug ?
-------------------------------------------------------
Logged In: YES
user_id=4771
That's a known Python problem: at shut-down, it stores
None everywhere into modules in an effort to try and
break reference cycles (for historical reasons, given that
Python's gc can now detect cycles anyway). There are
situations, like __del__ methods running at shut-down or
still-running threads, where this bite. In this case, the
name _psyco in the module psyco.profiler was patched to be
None, causing the crash.
I'll see if I can fix psyco.profiler so that its background
thread is safe from this issue.
Sourceforge.. Dandy :)
Sourceforge.. Awesome :)
Sourceforge.. Very nice :)