NetBSD-Bugs archive

[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



>Number:         53907
>Category:       misc
>Synopsis:       Default (commented-out) stacksize-cur in /etc/login.conf is too low
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 25 08:40:00 +0000 2019
>Originator:     Dustin Marquess
>Release:        8.99.31
>Organization:
>Environment:
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
>Description:
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[784]: 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).
>How-To-Repeat:
Uncomment the values in /etc/login.conf
>Fix:
Changing the default (commented-out) value to 8M seems to resolve the issue.



Home | Main Index | Thread Index | Old Index