[Python-Dev] mingw32 and gc-header weirdness
Roumen Petrov
bugtrack at roumenpetrov.info
Fri Jul 24 14:16:06 CEST 2009
Christian Tismer wrote:
> Hi all,
>
> I was hacking to get mingw32 builds of psyco to work
> and found a pretty weird thing:
>
> I used mingw32 (stable distro) to build the psyco extension
> on top of standard python2.6, built with Visual Studio,
> and got weird crashes.
>
> The reason is in objimpl.h:
>
> typedef union _gc_head {
> struct {
> union _gc_head *gc_next;
> union _gc_head *gc_prev;
> Py_ssize_t gc_refs;
> } gc;
> long double dummy; /* force worst-case alignment */
> } PyGC_Head;
[SNIP]
Did the crash disappear is you add "__attribute__((aligned(8)))" after
variable dummy ?
Regards,
Roumen
More information about the Python-Dev
mailing list