[issue41540] Test test_maxcontext_exact_arith (_decimal) consumes all memory on AIX

Tony Reix report at bugs.python.org
Thu Aug 13 10:57:19 EDT 2020


Tony Reix <tony.reix at atos.net> added the comment:

Is it a 64bit AIX ? Yes, AIX is 64bit by default and only since ages, but it manages 32bit applications as well as 64bit applications.

The experiments were done with 64bit Python executables on both AIX and Linux.

The AIX machine has 16GB Memory and 16GB Paging Space.

The Linux Fdora32/x86_64 machine has 16GB Memory and 8269820 Paging Space (swapon -s).

Yes, I agree that the behavior of AIX malloc() under "ulimit -d unlimited" is... surprising. And the manual of malloc() does not talk about this.

Anyway, does the test:   if (size > (size_t)PY_SSIZE_T_MAX)  was aimed to prevent calling malloc() with such a huge size? If yes, that does not work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41540>
_______________________________________


More information about the Python-bugs-list mailing list