NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/59866: login(1) blows the text size budget on sun2



>Number:         59866
>Category:       bin
>Synopsis:       login(1) blows the text size budget on sun2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 27 01:00:00 +0000 2025
>Originator:     Jason Thorpe
>Release:        NetBSD 11.99.4
>Organization:
68010 Preservation Society
>Environment:
NetBSD  11.99.4 NetBSD 11.99.4 (FOURMEG) #3: Tue Dec 23 09:51:31 PST 2025  thorpej@the-ripe-vessel:/nbsd/objdir/sun2/sys/arch/sun2/compile/FOURMEG sun2

>Description:
login fails to run on sun2:

# uname -a 
NetBSD  11.99.4 NetBSD 11.99.4 (FOURMEG) #3: Tue Dec 23 09:51:31 PST 2025  thorpej@the-ripe-vessel:/nbsd/objdir/sun2/sys/arch/sun2/compile/FOURMEG sun2
# /usr/bin/login
-sh: /usr/bin/login: not enough memory
# 

Size says:

   text	   data	    bss	    dec	    hex	filename
5276319	  33196	 126432	5435947	 52f22b	/nbsd/destdir/sun2/usr/bin/login

vmparam.h says:

#ifndef MAXTSIZ
#define MAXTSIZ         (5*1024*1024)           /* max text size */
#endif

so login(1) blows the budget.  This is likely due to MKPAM=yes and the fact that it's all statically linked in on mc68010.


Cron also fails to run, for almost certainly the same reason:

   text	   data	    bss	    dec	    hex	filename
5305883	  33988	 127008	5466879	 536aff	/nbsd/destdir/sun2/usr/sbin/cron

>How-To-Repeat:
Boot sun2 multi-user, attempt to log in.

>Fix:
Likely solution is to build with MKPAM=no.



Home | Main Index | Thread Index | Old Index