[issue34602] python3 resource.setrlimit strange behaviour under macOS

2018-09-08 Thread marche147
marche147 added the comment: Thanks for the repro! It did help for pinpointing the issue. So I took a little spare time and dived into xnu kernel code, here is my assumption based on what I found (N.B. : My assumption comes from a simple experiment and a brief skim of the source code within

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2018-09-07 Thread marche147
New submission from marche147 : Consider the following code: ``` import resource s, h = resource.getrlimit(resource.RLIMIT_STACK) resource.setrlimit(resource.RLIMIT_STACK, (h, h)) ``` Running this under macOS with python 3.6.5 gives the following exception: ``` bash-3.2$ uname -a Darwin arch