[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS
Rémi Lapeyre
report at bugs.python.org
Tue Jun 9 12:42:10 EDT 2020
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
Thanks, I found "MallocDebugReport" in `man malloc` (I could have thought to look into there...) that seem to do the trick:
$ MallocDebugReport=none ./python -m test test_decimal -m test_maxcontext_exact_arith
0:00:00 load avg: 1.27 Run tests sequentially
0:00:00 load avg: 1.27 [1/1] test_decimal
== Tests result: SUCCESS ==
1 test OK.
Total duration: 694 ms
Tests result: SUCCESS
There is also MallocDebugReport=crash that will "write messages to standard error only for a condition that is about to cause a crash." and effectively suppress this one.
Setting it in the test with os.putenv() does not seem to work.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40928>
_______________________________________
More information about the Python-bugs-list
mailing list