[Python-Dev] deadlock problem

Harri Pasanen harri.pasanen@trema.com
Thu, 31 Jul 2003 15:14:52 +0200


Some precisions to my mail:

On Thursday 31 July 2003 11:53, Harri Pasanen wrote:
> Hi,
>
> I'm having a deadlock on import in my embedded python 2.3rc2, on
> Win2000, built with Visual C++ 7.1.

It is actually Python 2.3b2, Win2000 under vmWare, linux (Mandrake 
9.1 host).   That python passes all tests, except test_httplib 
fails with socket.error: (10060, 'Operation timed out') 

Instrumenting the python code a bit, I noticed that 
import_lock is 0164A280 here and it the deadlocking 01648DA8 is 
something else.

> 1084: PyThread_acquire_lock(0164A280, 0) called
> 1084: PyThread_acquire_lock(0164A280, 0) -> 1
> ECHO
> 1084: PyThread_release_lock(01648DA8) called
> 1084: PyThread_acquire_lock(01648DA8, 1) called

I'll try with Python 2.3 final and try to isolate it further.

Harri