Dear Lev, It seems a fix for this bug was merged into the upstream stable repository some time ago: https://github.com/SWI-Prolog/swipl/commit/3923765d56e5
I have an unstable i386 VM where I could reproduce these memory errors and adding this to the patches resolves it. Since there is still no new upstream release and to avoid the autoremoval of this (+ a few downstream packages [1]), could you try to create a new debian release for 7.6.4 with this patch and the one for #893421. With these two patches the package was successfully built with java 9 on the VM where I previously had these memory errors. Best, Benjamin [1] I'm a developer for polymake which would also be affected by the removal since it depends on ppl which in depends on swipl.