"David Ledger" <[email protected]> writes:
> On 11 Jul 2017, at 14:18, Volker Blum wrote:
>> When I open a new xterm, and say ulimit -a, I get:
>> stack size              (kbytes, -s) 512

> I’m running a Mac mini at 10.6.8, Darwin Kernel Version 10.8.0, and a 
> MBP at 10.11.6, Darwin Kernel Version 15.6.0. Without me doing anything 
> other than exec’ing a ksh both give me a stack size of 8192K. A 
> ‘Terminal’ window gives the same.

Yes, I get the same results as David; also

$ ulimit -a -H
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) unlimited
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 65532
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1064
virtual memory          (kbytes, -v) unlimited

which shows (and experimentation confirms) that I can set the stack size
limit to anything under 64M.

There's some useful info here

https://developer.apple.com/library/content/qa/qa1419/_index.html

which suggests that a 512K stack is what macOS defaults to for a
pthread.  I doubt your shell per se would have become threaded,
but maybe it was launched from a thread of a multithreaded program.
I wonder if you have anything unusual in your ~/.bashrc, X startup
scripts, etc.

                        regards, tom lane
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to