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 mleroy003
Recipients Charles Machalow, amaury.forgeotdarc, belopolsky, eryksun, meador.inge, mleroy003, ztane
Date 2018-04-01.16:18:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522599494.56.0.467229070634.issue29753@psf.upfronthosting.co.za>
In-reply-to
Content
No solution found to solve this issue ?
The anomaly is not a cross platform inconsistency, it is an inconsistency between the behaviours of GCC and ctypes, both under Linux or Cygwin, when defining packed structures :

[Marc@I7-860 ~/dev/python/ctypes-bitfields-bug] make test
./bitfield_test1
sizeof(BF32) = 12 ; Memory dump of BF32 = 0xffffffffffffffffffffffff
sizeof(BF64) = 12 ; Memory dump of BF64 = 0xffffffffffffffffffffffff
python3 bitfield_test1.py
sizeof(BF32) = 16 ; Memory dump of BF32 = 0xffffff00ffffff00ffffff00ffffff00
sizeof(BF64) = 16 ; Memory dump of BF64 = 0xffffffffffff0000ffffffffffff0000
History
Date User Action Args
2018-04-01 16:18:14mleroy003setrecipients: + mleroy003, amaury.forgeotdarc, belopolsky, meador.inge, eryksun, ztane, Charles Machalow
2018-04-01 16:18:14mleroy003setmessageid: <1522599494.56.0.467229070634.issue29753@psf.upfronthosting.co.za>
2018-04-01 16:18:14mleroy003linkissue29753 messages
2018-04-01 16:18:14mleroy003create