Strange crash while running a script with a embedded python interpreter

Rickard Englund gefle.rickard at gmail.com
Mon Jan 11 02:55:41 EST 2016


On Friday, January 8, 2016 at 11:28:53 PM UTC+1, Michael Torrie wrote:
> On 01/08/2016 09:18 AM, Rickard Englund wrote:
> > First, some system info
> > * Windows 7 (also tested on 8 and 10) 
> > * Python 3.5.1 64bit (previously also tested using several 3.x versions)  (also tested with 32 bit, but with 3.4.2) 
> > * Microsoft Visual Studio 2015 (earlier version of python also tested with Visual Studio 2013)  
> 
> Are you using the same version of Visual Studio that Python itself was
> compiled with?  If not there can be subtle problems with incompatible
> msvcrt dlls.  No idea if this would be contributing to the problem or
> not, though.

I've just downloaded the python source code and build it myself, the compiler settings in our project is the same as in the python projects. 


Though, your comment led me in the correct direction. When using the libs/binary I built my self it let me see the values of the PyObjects around the crash and it seems like it is related to our modules and/or how we expose them to the interpreter. When disabling our own modules everything seems to be working as it should. 

I think I got it wokring now, used some ugly hacks I need to clean up before I certain it works. 

Thanks for the help. 




More information about the Python-list mailing list