[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/53907: Default (commented-out) stacksize-cur in /etc/login.conf is too low
>Synopsis: Default (commented-out) stacksize-cur in /etc/login.conf is too low
>Arrival-Date: Fri Jan 25 08:40:00 +0000 2019
>Originator: Dustin Marquess
NetBSD pine64 8.99.31 NetBSD 8.99.31 (GENERIC64) #0: Thu Jan 24 13:05:59 UTC 2019 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
If somebody edits the default installed /etc/login.conf to uncomment all of the values and then runs cap_mkdb on it, the following output will be seen on the console:
Jan 25 08:25:43 pine64 su: default: setting resource limit stacksize: Invalid argument
Jan 25 08:30:00 pine64 cron: default: setting resource limit stacksize: Invalid argument
This seems to be because the default has ":stacksize-cur=4M:" for the default class and the default stack size that a user gets when they login appears to be 8MB. Since the limit in login.conf is smaller, the above error gets generated.
I know the values are commented out by default and not used, but I'm a believer that the values in there should be considered examples and should work (and preferably match close to stock).
Uncomment the values in /etc/login.conf
Changing the default (commented-out) value to 8M seems to resolve the issue.
Main Index |
Thread Index |