Jan Safranek added the comment:

I can reproduce the crash in very unusual setup:
1. OpenPegasus (http://www.openpegasus.org/), for this bug we may consider it 
just a network daemon, listening on TCP port. When a request comes, it is 
eventually processed by a provider (= something like plugin).
2. cmpi-bindings ([1], [2]), which allows to write these plugins in Python
+ some other python modules, but IMHO not relevant (e.g. pywbem [3])

1: https://github.com/kkaempf/cmpi-bindings
2: http://sourceforge.net/apps/mediawiki/pywbem/index.php?title=Provider_Home
3: http://sourceforge.net/apps/mediawiki/pywbem/index.php?title=Main_Page

Now, if the Pegasus daemon gets a request, it calls cmpi-bindings, which 
creates embedded Python [4], loads the python "plugin", and processes the 
request. If the "plugin" is idle for 15 minutes, it is unloaded by Pegasus (= 
the embedded Python is destroyed). So far everything works like charm. But, 
when new request arrives *after* the unload, Pegaasus calls cmpi-bindings 
again, which tries to create the embedded Python for second time and here I get 
the crash.

[4]: python initialization/shutdown: 
https://github.com/kkaempf/cmpi-bindings/blob/master/src/target_python.c, 
TargetInitialize() and TargetCleanup(), some marcos are generated by swig from 
https://github.com/kkaempf/cmpi-bindings/blob/master/swig/cmpi.i

I haven't been able to reproduce the crash with simpler setup (and I have 
tried, believe me). It is also possible that the Python initialization/shutdown 
in cmpi-bindings is wrong, but I am not able to find any bug here.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17922>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to