[issue11835] python (x64) ctypes incorrectly pass structures parameter

2015-01-15 Thread mattip
mattip added the comment: This is a duplicate of issue 20160, and has been fixed. Can someone mark it as a duplicate and close it? -- nosy: +mattip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11835

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2015-01-15 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - duplicate stage: - resolved status: open - closed superseder: - broken ctypes calling convention on MSVC / 64-bit Windows (large structs) ___ Python tracker rep...@bugs.python.org

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-08-14 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Attached patch for this issue. This only happens on MSVC x64 (I actually tired to repro on Arch Linux x64 before starting work on it and it didn't repro). What happens is that MSVC on x64 always passes structures larger than 8 bytes by

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-08-14 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +amaury.forgeotdarc, belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11835 ___

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-08-14 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Changing type to behavior as it doesn't crash on 3.3. I believe issue was opened against 2.6 and Santoso changed it to 2.7 and up where there is no crash. Another data point: there is similar fix in current version of libffi here:

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-18 Thread Christoph Gohlke
Changes by Christoph Gohlke cgoh...@uci.edu: -- nosy: +cgohlke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11835 ___ ___ Python-bugs-list

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Abraham Soedjito
New submission from Abraham Soedjito abraham.soedj...@gmail.com: void __cdecl foo(unsigned __int32 a, unsigned __int32 b, unsigned __int32 c, unsigned __int32 d, unsigned __int32 e, unsigned __int32 f,

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11835 ___ ___

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I can reproduce this with 2.7 and 3.2 64-bit builds on Windows: D:\Temp\cdll\x64\ReleaseC:\Python32\python.exe Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win 32 Type help, copyright, credits or license

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: 32-bit (2.6) is fine: D:\Temp\cdll\ReleaseC:\Python26\python.exe Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. from ctypes import *

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Jonathan White
Changes by Jonathan White jonathan.wh...@ni.com: -- nosy: +jwhitecl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11835 ___ ___ Python-bugs-list

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attaching a ctypes unittest (against 2.7 branch) that will expose this bug in regrtest. -- keywords: +patch Added file: http://bugs.python.org/file21633/test_issue11835.patch ___ Python