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 jtaylor
Recipients jtaylor
Date 2017-04-23.22:01:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492984868.37.0.0606415089722.issue30150@psf.upfronthosting.co.za>
In-reply-to
Content
The debug raw allocator do not return the same alignment as malloc. See  _PyMem_DebugRawAlloc:
https://github.com/python/cpython/blob/master/Objects/obmalloc.c#L1873

The line
return p + 2*SST

adds 2 * sizeof(size_t) to the pointer returned by malloc.
On for example x32 malloc returns 16 byte aligned memory but size_t is 4 bytes.
This makes all memory returned by the debug allocators not aligned the what the system assumes on such platforms.
History
Date User Action Args
2017-04-23 22:01:08jtaylorsetrecipients: + jtaylor
2017-04-23 22:01:08jtaylorsetmessageid: <1492984868.37.0.0606415089722.issue30150@psf.upfronthosting.co.za>
2017-04-23 22:01:08jtaylorlinkissue30150 messages
2017-04-23 22:01:08jtaylorcreate