[issue39001] possible problem with 64-bit mingw DECREF

2019-12-11 Thread Dave Lawrence
Dave Lawrence added the comment: traced to be a duplicate of https://bugs.python.org/issue28267 -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue39001] possible problem with 64-bit mingw DECREF

2019-12-11 Thread Dave Lawrence
Dave Lawrence added the comment: by redefinining the Py_DECREF macro in my application: #define Py_DECREF(op) do { if (--op->ob_refcnt == 0) fprintf(stderr, "DECREF %s %d %p %d %s %p\n", __FILE__, __LINE__, op, Py_SIZE(op), Py_TYPE(op)->tp_name,Py_TYPE(op)->tp_dealloc ); fflush(stderr); }

[issue39001] possible problem with 64-bit mingw DECREF

2019-12-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue39001] possible problem with 64-bit mingw DECREF

2019-12-10 Thread Dave Lawrence
Dave Lawrence added the comment: further investigation seems to point to this being something to do with mingw and the dll. I have tried compiling the same test example on 64-bit linux and in the Ubuntu WSL on windows and it works. Tests also show that the refcount of '1' is correct and not

[issue39001] possible problem with 64-bit mingw DECREF

2019-12-08 Thread Dave Lawrence
New submission from Dave Lawrence : I am calling a python method from C using the attached code. The Site.py file is: import os def find_site(): path = os.path.abspath(".") return path Cross compiled to Windows from Linux using mxe.cc and python 2.7.17 On 32-bit this runs as expected