• Tim Peters's avatar
    SF bug 613233: test_threadedtempfile hangs · d8a9d2a0
    Tim Peters yazdı
    A possibility to deadlock (on the hidden import lock) was created here
    in 2.3, seemingly when tempfile.py started to call functions in
    random.py.  The cure is "the usual":  don't spawn threads as a side
    effect of importing, when the spawned threads themselves do imports
    (directly or indirectly), and the code that spawned the threads is
    waiting for the threads to finish (they can't finish, because they're
    waiting for the import lock the spawner still holds).  Worming around
    this is why the "test_main" mechanism was introduced in regrest, so
    it's a straightforward fix.
    
    NOT a bugfix candidate; the problem was introduced in 2.3.
    d8a9d2a0
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...