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 vstinner
Date 2017-11-23.09:24:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511429049.98.0.213398074469.issue32119@psf.upfronthosting.co.za>
In-reply-to
Content
Interesting info about NaN on Intel x86:

https://stackoverflow.com/questions/14021763/c-multiplication-or-addition-floats-results-nan

"The multiplication is being performed in the x87 registers, and a floating-point stack overflow has occurred due to (possibly unrelated) earlier operations in your program's execution. When the processor is in this failure state, all computations performed on the x87 registers produce NaN results."

--

For FreeBSD, Python main() starts with:

	/* 754 requires that FP exceptions run in "no stop" mode by default,
	 * and until C vendors implement C99's ways to control FP exceptions,
	 * Python requires non-stop mode.  Alas, some platforms enable FP
	 * exceptions by default.  Here we disable them.
	 */
#ifdef __FreeBSD__
	fedisableexcept(FE_OVERFLOW);
#endif
History
Date User Action Args
2017-11-23 09:24:10vstinnersetrecipients: + vstinner
2017-11-23 09:24:09vstinnersetmessageid: <1511429049.98.0.213398074469.issue32119@psf.upfronthosting.co.za>
2017-11-23 09:24:09vstinnerlinkissue32119 messages
2017-11-23 09:24:09vstinnercreate