NetBSD Problem Report #59866

From www@netbsd.org  Sat Dec 27 00:58:48 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D8CFA1A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 27 Dec 2025 00:58:47 +0000 (UTC)
Message-Id: <20251227005846.9CA241A923D@mollari.NetBSD.org>
Date: Sat, 27 Dec 2025 00:58:46 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: login(1) blows the text size budget on sun2
X-Send-Pr-Version: www-1.0

>Number:         59866
>Category:       bin
>Synopsis:       login(1) blows the text size budget on sun2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thorpej
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 27 01:00:00 +0000 2025
>Closed-Date:    
>Last-Modified:  Sun Dec 28 11:30:01 +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.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->thorpej
Responsible-Changed-By: thorpej@NetBSD.org
Responsible-Changed-When: Sat, 27 Dec 2025 04:25:15 +0000
Responsible-Changed-Why:
I'll fix this one.


State-Changed-From-To: open->needs-pullups
State-Changed-By: thorpej@NetBSD.org
State-Changed-When: Sat, 27 Dec 2025 04:25:15 +0000
State-Changed-Why:
Fixed in trunk, netbsd-11 needs it.


From: "Jason R Thorpe" <thorpej@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59866 CVS commit: src/share
Date: Sat, 27 Dec 2025 04:24:03 +0000

 Module Name:	src
 Committed By:	thorpej
 Date:		Sat Dec 27 04:24:03 UTC 2025

 Modified Files:
 	src/share/man/man5: mk.conf.5
 	src/share/mk: bsd.own.mk

 Log Message:
 Set MKPAM=no on m68000.  Otherwise, progams like login(1) and cron(8)
 blow the max text size budget for lack of dynamic linking.

 PR bin/59866


 To generate a diff of this commit:
 cvs rdiff -u -r1.117 -r1.118 src/share/man/man5/mk.conf.5
 cvs rdiff -u -r1.1456 -r1.1457 src/share/mk/bsd.own.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59866 CVS commit: [netbsd-11] src/share
Date: Sun, 28 Dec 2025 11:27:07 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Dec 28 11:27:07 UTC 2025

 Modified Files:
 	src/share/man/man5 [netbsd-11]: mk.conf.5
 	src/share/mk [netbsd-11]: bsd.own.mk

 Log Message:
 Pull up following revision(s) (requested by thorpej in ticket #136):

 	share/mk/bsd.own.mk: revision 1.1457 (patch)
 	share/man/man5/mk.conf.5: revision 1.118

 Set MKPAM=no on m68000.  Otherwise, progams like login(1) and cron(8)
 blow the max text size budget for lack of dynamic linking.

 While there also switch to BSDTAR.

 PR bin/59866


 To generate a diff of this commit:
 cvs rdiff -u -r1.114 -r1.114.2.1 src/share/man/man5/mk.conf.5
 cvs rdiff -u -r1.1428 -r1.1428.2.1 src/share/mk/bsd.own.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.