On Mon, Jan 8, 2018 at 8:22 AM, Chet Ramey <chet.ra...@case.edu> wrote: > On 1/6/18 2:40 PM, Eduardo A. Bustamante López wrote: > >> So the allocation fails, even if the system has enough memory to handle it. >> Upon closer inspection: >> >> dualbus@ubuntu:~/src/gnu/bash/lib/malloc$ cat -n malloc.c | sed -n >> '777,781p' >> 777 /* Silently reject too-large requests. */ >> 778 if (nunits >= NBUCKETS) { >> 779 abort(); >> 780 return ((PTR_T) NULL); >> 781 } > > I'm not sure which version of bash you're looking at, since no version with > that check has ever had abort() there.
Derp. I added that abort() for debugging purposes and forgot to remove it. Sorry about that. Thank you for the explanation by the way!