NetBSD Problem Report #56107

From www@netbsd.org  Wed Apr 14 05:02:50 2021
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 988661A9217
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Apr 2021 05:02:50 +0000 (UTC)
Message-Id: <20210414050248.ECA2F1A9242@mollari.NetBSD.org>
Date: Wed, 14 Apr 2021 05:02:48 +0000 (UTC)
From: rokuyama.rk@gmail.com
Reply-To: rokuyama.rk@gmail.com
To: gnats-bugs@NetBSD.org
Subject: All tests in t_make fail with "Cannot map anonymous memory" on booke
X-Send-Pr-Version: www-1.0

>Number:         56107
>Category:       port-powerpc
>Synopsis:       All tests in t_make fail with "Cannot map anonymous memory" on booke
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-powerpc-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 14 05:05:00 +0000 2021
>Closed-Date:    Sat Apr 17 13:31:30 +0000 2021
>Last-Modified:  Sat Apr 17 13:31:30 +0000 2021
>Originator:     Rin Okuyama
>Release:        9.99.81
>Organization:
Department of Physics, Meiji University
>Environment:
NetBSD rb800 9.99.81 NetBSD 9.99.81 (RB800-$Revision: 1.38 $) #130: Wed Apr 14 09:49:39 JST 2021  rin@latipes:/sys/arch/evbppc/compile/RB800 evbppc
>Description:
All tests in /usr/tests/usr.bin/make/t_make fail on powerpc/booke,
although they pass successfully for other powerpc sub-archs, i.e., oea and
ibm4xx. Log from atf-run(1) is like:

| tc-start: 1618319044.259295, archive
| tc-so:Executing command [ make -f /usr/tests/usr.bin/make/unit-tests/Makefile archive.out ]
| tc-so:Executing command [ cat archive.out ]
| tc-se:Fail: stdout does not match golden output
| tc-se:--- /usr/tests/usr.bin/make/unit-tests/archive.exp        2021-04-13 10:03:48.000000000 +0000
| tc-se:+++ /tmp/check.grUp6u/stdout      2021-04-13 13:04:04.881254960 +0000
| tc-se:@@ -1,28 +1,2 @@
| tc-se:-Making remove-archive
| tc-se:-rm -f libprog.a
| ...(snip)...
| tc-se:-exit status 0
| tc-se:+Cannot map anonymous memoryCannot allocate memory: Cannot allocate memory
| tc-se:+exit status 1

The first error message seems to come from ld.elf_so:

| % find /usr/src -type f -printx | xargs grep "Cannot map anonymous memory"
| /usr/src/libexec/ld.elf_so/xmalloc.c:           xprintf("Cannot map anonymous memory");
| %

The failure occurs both for kernel and userland built with GCC 9 and 10.

make(1) itself works fine as far as I can see. At least, kernel can be
self-built on booke.

Note that these tests pass on mips64-eb, which shares uvm/pmap with booke.
>How-To-Repeat:
"cd /usr/tests/usr.bin/make && atf-run t_make" on powerpc/booke.
>Fix:
N/A

>Release-Note:

>Audit-Trail:
From: "Rin Okuyama" <rin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56107 CVS commit: src/sys/arch/powerpc/include/booke
Date: Sat, 17 Apr 2021 13:23:24 +0000

 Module Name:	src
 Committed By:	rin
 Date:		Sat Apr 17 13:23:24 UTC 2021

 Modified Files:
 	src/sys/arch/powerpc/include/booke: vmparam.h

 Log Message:
 PR port-powerpc/56107

 Decrease MAXSSIZ from ~256MB to 32MB (same as oea).

 This fixes tests in /usr/tests/usr.bin/make, that run with "ulimit -v 200000",
 fail with "Cannot map anonymous memory".

 Although I'm not fully convinced whether this limit is reasonable or not,
 old MAXSSIZ of ~256MB is too much anyway.


 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 src/sys/arch/powerpc/include/booke/vmparam.h

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

State-Changed-From-To: open->closed
State-Changed-By: rin@NetBSD.org
State-Changed-When: Sat, 17 Apr 2021 13:31:30 +0000
State-Changed-Why:
Fixed. No plan to pull up to release branches at the moment.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.