[issue28631] [2.7/3.5/3.6 Regression] crash using ctypes

2016-11-14 Thread Matthias Klose
Matthias Klose added the comment: closing -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue28631] [2.7/3.5/3.6 Regression] crash using ctypes

2016-11-14 Thread Stuart Prescott
Stuart Prescott added the comment: Having added the suggested restype (plus a lot of others and also quite a few extra argtypes), we now have code that works across a few different versions of Python once again. Thanks for the hint, eryksun and also thanks to doko for proxying the report and

[issue28631] [2.7/3.5/3.6 Regression] crash using ctypes

2016-11-07 Thread Eryk Sun
Eryk Sun added the comment: po_message_create() returns a po_message_t pointer: /* A po_message_t represents a message in a PO file. */ typedef struct po_message *po_message_t; /* Return a freshly constructed message. To finish initializing the message, you must set the

[issue28631] [2.7/3.5/3.6 Regression] crash using ctypes

2016-11-07 Thread Matthias Klose
New submission from Matthias Klose: the following example started to segfault with the 2.7 branch 20161103, last working one 20160901, on 3.5 branch 20161103, last working one 20160922. from __future__ import print_function import ctypes import ctypes.util lib_location =