[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2022-02-07 Thread Steve Dower
Steve Dower added the comment: Only by following the link I posted and searching for issues that sound like this one. Which I just did for you: https://github.com/libffi/libffi/issues/367 There may be more, though. I just grabbed the first one that looked like a match. --

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2022-02-07 Thread Andreas Skaar
Andreas Skaar added the comment: Steve Dower do you have any links to the issues you mention? Are these now solved? I am not able to see if the fix is straightforward, but from the information from Eryk Sun it sounds like it should be? -- ___

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2021-10-01 Thread Steve Dower
Steve Dower added the comment: Judging from https://github.com/libffi/libffi, they could do with more contributors/support over there. I see a bunch of reports along these lines from a few years back, apparently someone has a test suite that covers it, but hasn't merged it into the libffi

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2021-09-27 Thread Andreas Skaar
Andreas Skaar added the comment: What is the next steps on this bug? Have you created a bug with libffi if this is not working correctly eryksun? Sounds like you understand what the bug report need to contain. On implementing a workaround in ctypes. Is this possible? -- nosy:

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2020-06-23 Thread Eryk Sun
Change by Eryk Sun : -- nosy: +vinay.sajip versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2020-06-19 Thread Eryk Sun
Eryk Sun added the comment: I can reproduce a crash with an x86 build that uses a stdcall callback with a 32-bit argument followed by any ffi_type_sint64 argument (FILETIME, long long, etc). Apparently this is a bug in libffi's ffi_prep_cif. Given the 2nd argument has a size of 8 bytes and

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2020-06-19 Thread Aravindhan
Change by Aravindhan : -- title: ctypes callback with structure crashes in Python 3.8 on Windows -> ctypes callback with structure crashes in Python 3.8 on Windows x86 ___ Python tracker