Execution of "prlimit --nproc=1 bash" yields segmentation fault

2016-03-02 Thread Florian Mayer

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


Re: Execution of "prlimit --nproc=1 bash" yields segmentation fault

2016-03-02 Thread Chet Ramey
On 3/2/16 1:48 PM, Florian Mayer 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)/

chet(1)$ ./bash
chet(2)$ ulimit -u 1
chet(2)$ 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
chet(2)$ echo $BASH_VERSION
4.4.0(13)-rc1

I'm calling it fixed.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Re: Execution of "prlimit --nproc=1 bash" yields segmentation fault

2016-03-02 Thread Morten Delenk
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  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