New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/34030#issuecomment-1005080267 Comment: > * for i686: 2 or 3 doctests failed in `src/sage/interfaces/maxima.py`, I have to investigate since I had not seen this before. > > > ... the last one is happening almost always (IIRC only since the switch to system site-packages, may be some package version incompatibility --- perhaps `ptyprocess` which I patched it to use the void package at version 0.7.0 but stock sage accepts only 0.5.1). I stand corrected: this issue was present since we switched to system maxima, but it only manifest itself when running long tests (which only recently I started running). In fact, the failing tests are not long tests, but before them there's a long test which allocates 256M to test the heap. It succeeds but the next time maxima tries to allocate it crashes. This is looking like a bug in our own maxima (ecl version). More precisely, on i686 this fails: ``` $ maxima -l ecl ;;; Loading #P"/usr/lib32/ecl-21.2.1/sb-bsd-sockets.fas" ;;; Loading #P"/usr/lib32/ecl-21.2.1/sockets.fas" Maxima 5.45.1 https://maxima.sourceforge.io using Lisp ECL 21.2.1 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) :lisp (ext:set-limit 'ext:heap-size 0) 0 (%i1) a : 10^(10^5) $ (%i2) b : a^600 $ (%i3) c : a^600 $ Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS Aborted ``` The same using maxima as compiled by sage works: ``` $ /usr/lib/sage-9.5.beta9/local/bin/maxima ;;; Loading #P"/usr/lib32/ecl-21.2.1/sb-bsd-sockets.fas" ;;; Loading #P"/usr/lib32/ecl-21.2.1/sockets.fas" Maxima 5.45.0 https://maxima.sourceforge.io using Lisp ECL 21.2.1 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) :lisp (ext:set-limit 'ext:heap-size 0) 0 (%i1) a : 10^(10^5) $ (%i2) b : a^600 $ (%i3) c : a^600 $ (%i4) d : a^600 $ (%i5) e : a^600 $ (%i6) ``` Note: this maxima is compiled by sage using the same system `ecl` and `gc` as the system `maxima-ecl`. The source tarball is identical, using slightly different patches and compile options.