If you can compile your extension with gcc (e.g. using Cygwin ), you can use gdb and pystack gdb macro to get Python stacks in this situation. I don't know if it is possible to do something equivalent to pystack in Visual C ++ Express, but you can get some ideas from the implementation of the pystack macro.
Since you mention that you only see asm / binary in the VC ++ debugger, you need to make sure that you compile Python with debugging symbols. If VC ++ is still showing asm, perhaps you need to tell VC ++ where the source files are (sorry, they have not used VC ++ in years, so I canβt say what you might need if that is the case).
You can also get important information by adding a lot of logging codes to your code, both on the Python side and on your C ++ extension.
In any case, I'm pretty sure that the deadlocks are not associated with the queue, but with your own code.
source share