This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erik.bray
Recipients erik.bray
Date 2017-05-12.16:19:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494605988.92.0.550577143248.issue30353@psf.upfronthosting.co.za>
In-reply-to
Content
The test ctypes.test.test_structures.StructureTestCase.test_pass_by_value fails on 64-bit Cygwin and MinGW using the system libffi with:

======================================================================
FAIL: test_pass_by_value (ctypes.test.test_structures.StructureTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/embray/src/python/cpython/Lib/ctypes/test/test_structures.py", line 416, in test_pass_by_value
    self.assertEqual(s.first, 0xdeadbeef)
AssertionError: 195948557 != 3735928559


It seems that libffi does not handle passing structs by value properly on those platforms as I explained here: https://github.com/libffi/libffi/issues/305

The upstream bug hasn't been confirmed yet by the libffi developers so I could be wrong, but I think this is fairly clearly broken there.

I have a PR forthcoming to work around the issue.
History
Date User Action Args
2017-05-12 16:19:48erik.braysetrecipients: + erik.bray
2017-05-12 16:19:48erik.braysetmessageid: <1494605988.92.0.550577143248.issue30353@psf.upfronthosting.co.za>
2017-05-12 16:19:48erik.braylinkissue30353 messages
2017-05-12 16:19:48erik.braycreate