NetBSD Problem Report #56068

From martin@duskware.de  Tue Mar 23 11:51:13 2021
Return-Path: <martin@duskware.de>
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 189DB1A9217
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 23 Mar 2021 11:51:13 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: lib/csu test crashes machine
X-Send-Pr-Version: 3.95

>Number:         56068
>Category:       port-sparc
>Synopsis:       lib/csu test crashes machine
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 23 11:55:00 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.81
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD sunset-glow.duskware.de 9.99.81 NetBSD 9.99.81 (GENERIC.MP) #24: Mon Mar 22 19:38:34 CET 2021 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/sparc/compile/GENERIC.MP sparc
Architecture: sparc
Machine: sparc
>Description:

After seeing lots of failures in ATF test runs of sparc userland on a sparc64
kernel, including jemalloc related core dumps in /bin/sh I decided to try
running the tests natively and see if I can provoke the same failures there.

Unfortunately instead I got a kernel panic:

 # cd /usr/tests/lib/csu && atf-run | atf-report


[ 21575.4036342] trap type 0x7: pc=0xf0032538 npc=0xf003250c psr=0x1e8007c5<S,PS>
[ 21575.4193786] panic: alignment fault
[ 21575.4399563] cpu1: Begin traceback...
[ 21575.4399563] cpu0: bogus interrupt ipl 0x6 pc=0xeded12e0 npc=0xeded12e4 psr=0x1e400084<S>
[ 21575.4399563] 0x0(0xf0485128, 0xfb1cc9f8, 0xf057c400, 0xf057d400, 0x104, 0xf057d318) at ntbsd:panic+0x20
[ 21575.5636174] panic(0xf0485128, 0xf047f510, 0xf0032538, 0xf003250c, 0xfb1cca10, 0xf056f000) at netbsd:trap+0x5a4
[ 21575.6845008] trap(0x1c, 0x1e8007c5, 0xf0032538, 0xfb1ccb28, 0x0, 0x74caf) at netbsd:memfault_sun4m+0x2cc
[ 21575.8036391] memfault_sun4m(0xf05609d8, 0xf0008de0, 0xf423e, 0xf0560938, 0xa0, 0x2) at netbsd:pv_flushcache4m+0x5c
[ 21575.9336526] pv_flushcache4m(0xdeaddead, 0x1, 0xf16a9900, 0xf04c1c00, 0x0, 0xf0002000) at netbsd:pmap_copy_page4m+0x198
[ 21576.0638805] pmap_copy_page4m(0x12ec00, 0x3d71000, 0x0, 0x1, 0xffffffff, 0xf16a9900) at netbsd:uvm_pagecopy+0x34
[ 21576.1936814] uvm_pagecopy(0xf0778200, 0xf084cb90, 0xedc48000, 0xf189eee0, 0x4000000, 0xf084cbc0) at netbsd:uvmfault_promote+0x16c
[ 21576.3336960] uvmfault_promote(0xfb1ccdac, 0x0, 0xf084cb90, 0xfb1ccda8, 0xfb1ccde0, 0xf189eee0) at netbsd:uvm_fault_internal+0x1288
[ 21576.4743020] uvm_fault_internal(0xf047a1e0, 0xf17f1820, 0x1, 0xf17f1820, 0xf0778200, 0xf13f2000) at netbsd:mem_access_fault4m+0x340
[ 21576.6237266] mem_access_fault4m(0x9, 0x38a, 0xedc48ee4, 0xfb1ccfb0, 0x0, 0xf16a9900) at netbsd:memfault_sun4m+0xec
[ 21576.7438899] cpu1: End traceback...
[ 21576.7845158] Frame pointer is at 0xfb1cc7b0
[ 21576.7845158] Call traceback:
[ 21576.7845158]   pc = 0xf002df68  args = (0xf057d4b4, 0xf049fb28, 0xfb1cc8d0, 0xf04c1c00, 0xf0556800, 0xf0002000) fp = 0xfb1cc820
[ 21576.7845158]   pc = 0xf02e548c  args = (0x104, 0x0, 0xf16a9900, 0x0, 0x1e4007e1, 0xf0578400) fp = 0xfb1cc888
[ 21576.7845158]   pc = 0xf0327794  args = (0x104, 0x0, 0xf0485128, 0xfb1cc9f8, 0xf0002000, 0x0) fp = 0xfb1cc8e8
[ 21576.7845158]   pc = 0xf0327840  args = (0xf0485128, 0xfb1cc9f8, 0xf057c400, 0xf057d400, 0x104, 0xf057d318) fp = 0xfb1cc948
[ 21576.7845158]   pc = 0xf003e86c  args = (0xf0485128, 0xf047f510, 0xf0032538, 0xf003250c, 0xfb1cca10, 0xf056f000) fp = 0xfb1cc9b0
[ 21576.7845158]   pc = 0xf0008708  args = (0x1c, 0x1e8007c5, 0xf0032538, 0xfb1ccb28, 0x0, 0x74caf) fp = 0xfb1ccac8
[ 21576.7845158]   pc = 0xf0032524  args = (0xf05609d8, 0xf0008de0, 0xf423e, 0xf0560938, 0xa0, 0x2) fp = 0xfb1ccb78
[ 21576.7845158]   pc = 0xf003c538  args = (0xdeaddead, 0x1, 0xf16a9900, 0xf04c1c00, 0x0, 0xf0002000) fp = 0xfb1ccbd8
[ 21576.7845158]   pc = 0xf029a7b0  args = (0x12ec00, 0x3d71000, 0x0, 0x1, 0xffffffff, 0xf16a9900) fp = 0xfb1ccc38
[ 21576.7845158]   pc = 0xf028713c  args = (0xf0778200, 0xf084cb90, 0xedc48000, 0xf189eee0, 0x4000000, 0xf084cbc0) fp = 0xfb1ccc98
[ 21576.7845158]   pc = 0xf0289224  args = (0xfb1ccdac, 0x0, 0xf084cb90, 0xfb1ccda8, 0xfb1ccde0, 0xf189eee0) fp = 0xfb1ccd00
[ 21576.7845158]   pc = 0xf003fbc0  args = (0xf047a1e0, 0xf17f1820, 0x1, 0xf17f1820, 0xf0778200, 0xf13f2000) fp = 0xfb1cce70
[ 21576.7845158]   pc = 0xf0008528  args = (0x9, 0x38a, 0xedc48ee4, 0xfb1ccfb0, 0x0, 0xf16a9900) fp = 0xfb1ccf50
[ 21576.7845158]   pc = 0x0  args = (0xedc80000, 0x0, 0xeffff674, 0x0, 0xedc9f207, 0xedc4b905) fp = 0xeffff600


Unfortunately no kernel core dump.

>How-To-Repeat:

On this machine:

mainbus0 (root): SUNW,SPARCstation-20: hostid 72705e00
cpu0 at mainbus0: mid 8: Ross,RT626 @ 180 MHz, on-chip FPU
cpu0: 512K byte write-back, 32 bytes/line, sw flush: cache enabled
cpu1 at mainbus0: mid 10: Ross,RT626 @ 180 MHz, on-chip FPU
cpu1: 512K byte write-back, 32 bytes/line, sw flush: cache enabled

with 512 MB of ram:

 # cd /usr/tests/lib/csu && atf-run | atf-report

>Fix:
n/a

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.