From owner-freebsd-arm@freebsd.org Sun Jun 28 19:50:47 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E16313539CE for ; Sun, 28 Jun 2020 19:50:47 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49w1Sk4x32z3WNv for ; Sun, 28 Jun 2020 19:50:46 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id 05SJohRZ011420 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 28 Jun 2020 12:50:44 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 05SJohV9011419; Sun, 28 Jun 2020 12:50:43 -0700 (PDT) (envelope-from fbsd) Date: Sun, 28 Jun 2020 12:50:43 -0700 From: bob prohaska To: Konstantin Belousov Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: panic: non-current pmap on RPI3 on CURRENT (GENERIC) #4 r356366 Message-ID: <20200628195043.GA10909@www.zefox.net> References: <20200108235630.GA17485@www.zefox.net> <20200109115123.GZ23031@kib.kiev.ua> <20200109172314.GA20008@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109172314.GA20008@www.zefox.net> X-Rspamd-Queue-Id: 49w1Sk4x32z3WNv X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [2.17 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.09)[-0.093]; NEURAL_SPAM_LONG(0.55)[0.546]; NEURAL_HAM_MEDIUM(-0.19)[-0.187]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2020 19:50:48 -0000 On Thu, Jan 09, 2020 at 09:23:14AM -0800, bob prohaska wrote: > On Thu, Jan 09, 2020 at 01:51:23PM +0200, Konstantin Belousov wrote: > > > > It would be useful to see both the curcpu pc_curpmap content, > > and dump both *(struct pmap *)0xfffffd000385f5a0 and *pc_curpmap > > from the vmcore. The Pi3 is now up to r362283 and just reported: panic: non-current pmap 0xfffffd000142d440 cpuid = 0 time = 1593368952 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc = 0xffff00000075e24c lr = 0xffff00000010a468 sp = 0xffff00005a86d2e0 fp = 0xffff00005a86d4e0 db_trace_self_wrapper() at vpanic+0x194 pc = 0xffff00000010a468 lr = 0xffff000000419dcc sp = 0xffff00005a86d4f0 fp = 0xffff00005a86d540 vpanic() at panic+0x44 pc = 0xffff000000419dcc lr = 0xffff000000419b74 sp = 0xffff00005a86d550 fp = 0xffff00005a86d600 panic() at pmap_remove_pages+0x908 pc = 0xffff000000419b74 lr = 0xffff000000776e00 sp = 0xffff00005a86d610 fp = 0xffff00005a86d680 pmap_remove_pages() at vmspace_exit+0x104 pc = 0xffff000000776e00 lr = 0xffff0000006f7024 sp = 0xffff00005a86d690 fp = 0xffff00005a86d6e0 vmspace_exit() at exit1+0x48c pc = 0xffff0000006f7024 lr = 0xffff0000003d13fc sp = 0xffff00005a86d6f0 fp = 0xffff00005a86d750 exit1() at sys_sys_exit+0x10 pc = 0xffff0000003d13fc lr = 0xffff0000003d0f6c sp = 0xffff00005a86d760 fp = 0xffff00005a86d7b0 sys_sys_exit() at do_el0_sync+0x3f8 pc = 0xffff0000003d0f6c lr = 0xffff00000077dac8 sp = 0xffff00005a86d7c0 fp = 0xffff00005a86d830 do_el0_sync() at handle_el0_sync+0x90 pc = 0xffff00000077dac8 lr = 0xffff000000760a24 sp = 0xffff00005a86d840 fp = 0xffff00005a86d980 handle_el0_sync() at 0x404bd678 pc = 0xffff000000760a24 lr = 0x00000000404bd678 sp = 0xffff00005a86d990 fp = 0x0000ffffffffe960 KDB: enter: panic [ thread pid 42572 tid 100137 ] Stopped at 0x4053fcfc db> This time it was in the early stages of compiling www/chromium. Boot and root are from a mechanical hard disk, the dying top page was: last pid: 42562; load averages: 1.40, 1.37, 1.38 up 8+22:05:11 11:29:10 47 processes: 3 running, 44 sleeping CPU: 27.1% user, 0.0% nice, 11.4% system, 0.4% interrupt, 61.0% idle Mem: 92M Active, 237M Inact, 1468K Laundry, 158M Wired, 77M Buf, 415M Free Swap: 6042M Total, 194M Used, 5849M Free, 3% Inuse packet_write_wait: Connection to 50.1.20.28 port 22: Broken pipe bob@raspberrypi:~ $ R PRI NICE SIZE RES STATE C TIME WCPU COMMAND 42514 root 1 88 0 111M 63M CPU2 2 0:08 100.21% c++ 81775 bob 1 52 0 13M 352K wait 0 9:50 0.35% sh 29366 bob 1 20 0 14M 1340K CPU0 0 3:00 0.22% top 29351 bob 1 20 0 20M 936K select 2 0:15 0.03% sshd 639 root 1 20 0 13M 972K select 3 0:28 0.01% syslogd 30908 root 1 52 0 194M 40M select 1 1:52 0.00% ninja 46086 bob 1 20 0 20M 312K select 0 1:48 0.00% sshd ...... I'll update OS sources and try again, if somebody can tell me how to capture more useful information I'll try that. Thanks for reading, bob prohaska