That's because of bash limiting the number of child processes to 1. ls uses multiple threads, thus the crash.
On Wed, Mar 2, 2016 at 7:48 PM, Florian Mayer <mayerflor...@me.com> wrote: > Hello, > > doing the following yields an segmentation fault. > I am using bash 4.3.42(1) under Archlinux. > > prlimit --nproc=1 bash > [florian@kurerm ~]$ pwd > /home/florian > [florian@kurerm ~]$ ls > bash: fork: retry: No child processes > bash: fork: retry: No child processes > bash: fork: retry: No child processes > bash: fork: retry: No child processes > bash: fork: Resource temporarily unavailable > Segmentation fault (core dumped) > > Best regards > Florian