Collin Funk <[email protected]> writes: > $ timeout 10 sh -c \ > "(ulimit -v $s && uutils base64 < /dev/zero >out 2>err)" > $ cat err && wc -c out > base64: out of memory > 0 out
In case anyone is looking for work to do, there are some programs in GNU Coreutils who have this issue. For example, 'basenc --base58' requires that the file fits into memory. It would be nice to fix those where possible. The 'basenc --base58' case, if I remember correctly, is because of the gmp functions we use. If we could fix it without sacrificing the speedups from gmp, that would be great. It also would be a good idea to add bounded-memory.sh tests to other programs. Collin
