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 vstinner
Recipients dwight.guth, vstinner
Date 2016-09-19.08:40:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474274415.58.0.305281401782.issue23503@psf.upfronthosting.co.za>
In-reply-to
Content
> As a result, this initializer causes this file to be undefined.

Hum, in practice I'm not aware of any crash on any platform. Python is tested on various compilers (GCC, Clang, ICC, Microsoft Visual Studio, etc.), various operating systems (Mac OS X, Linux, Windows, FreeBSD, OpenBSD, Solaris, etc.), various architectures (x86, x86-64, PPC, etc.).

The memory allocator is probably the first instruction when starting Python.

Anyway, do you see a way to avoid the undefined behaviour?

Python has a _PyMem_SetupAllocators() function called very early in main() (before the first Python memory allocation), but calling this function is optional. So we have to prepare everything during the compilation.
History
Date User Action Args
2016-09-19 08:40:15vstinnersetrecipients: + vstinner, dwight.guth
2016-09-19 08:40:15vstinnersetmessageid: <1474274415.58.0.305281401782.issue23503@psf.upfronthosting.co.za>
2016-09-19 08:40:15vstinnerlinkissue23503 messages
2016-09-19 08:40:14vstinnercreate