From owner-freebsd-arm@FreeBSD.ORG Wed Sep 18 12:53:47 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7174EE6D for ; Wed, 18 Sep 2013 12:53:47 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by mx1.freebsd.org (Postfix) with ESMTP id D68C227BF for ; Wed, 18 Sep 2013 12:53:46 +0000 (UTC) Received: from cpsps-ews11.kpnxchange.com ([10.94.84.178]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 18 Sep 2013 14:52:35 +0200 Received: from CPSMTPM-TLF101.kpnxchange.com ([195.121.3.4]) by cpsps-ews11.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 18 Sep 2013 14:52:35 +0200 Received: from sjakie.klop.ws ([212.182.167.131]) by CPSMTPM-TLF101.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 18 Sep 2013 14:52:35 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 22D0576E2 for ; Wed, 18 Sep 2013 14:52:31 +0200 (CEST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Subject: Re: Panic while building perl on sheevaplug/armv5 freebsd 10. References: <1379080987.1111.637.camel@revolution.hippie.lan> Date: Wed, 18 Sep 2013 14:52:22 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-OriginalArrivalTime: 18 Sep 2013 12:52:35.0671 (UTC) FILETIME=[F2B50E70:01CEB46D] X-RcptDomain: freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 12:53:47 -0000 On Sun, 15 Sep 2013 15:31:50 +0200, Ronald Klop wrote: > On Fri, 13 Sep 2013 16:03:07 +0200, Ian Lepore wrote: > >> On Fri, 2013-09-13 at 15:11 +0200, Ronald Klop wrote: >>> Hello, >>> >>> I have a repeatable panic while building perl on my Sheevaplug ARMv5 >>> running FreeBSD 10-CURRENT. >>> Kernel is loaded from NAND. >>> / is mounted from USB /dev/da0s2 (UFS2) >>> /usr/ports is mounted over NFS from a 9-STABLE/amd64 box. >>> Swap from 512MB file in /data/swap. >>> >>> ---- console output >>> login: panic: vm_fault: fault on nofault entry, addr: ddf9d000 >>> KDB: enter: panic >>> [ thread pid 659 tid 100057 ] >>> Stopped at kdb_enter+0x4c: ldrb r15, [r15, r15, ror r15]! >>> db> bt >>> Tracing pid 659 tid 100057 td 0xc3f86000 >> [...] >>> exception_exit() at exception_exit >>> pc = 0xc0bba3fc lr = 0xc0a60c88 (tc_setclock+0x458) >>> sp = 0xddf9d008 fp = 0xddf9e038 >>> r0 = 0xc0bba324 r1 = 0xc0d00000 >>> r2 = 0xddf9d00c r3 = 0x20000093 >>> r4 = 0x00000000 r5 = 0xc0ccd630 >>> r6 = 0x00000000 r7 = 0x00000000 >>> r8 = 0xc0caece0 r9 = 0x00000001 >>> r10 = 0xc0caec88 r12 = 0x00000000 >>> data_abort_entry() at data_abort_entry+0x30 >>> pc = 0xc0bba324 lr = 0xc0a60c88 (tc_setclock+0x458) >>> sp = 0xddf9d008 fp = 0xddf9e038 >>> Unwind failure (no registers changed) >> >> That's the second time in the past few months I've seen a backtrace that >> makes it look like we ran out of kernel stack, but the default is 8k >> which should be plenty. Still, try adding "option KSTACK_PAGES=3" to >> your kernel config and see if the problem goes away. If it does, we may >> need to figure out why we're using so much stack. If it doesn't, we've >> probably got a bad recursion loop happening somewhere. >> >> -- Ian >> > > I had to bump KSTACK_PAGES up to 4, but now it is going on with building > ports. > I still have similar faults (but less of them) with 4. panic: vm_fault: fault on nofault entry, addr: de038000 KDB: enter: panic [ thread pid 2834 tid 100066 ] Stopped at kdb_enter+0x4c: ldrb r15, [r15, r15, ror r15]! db> reboot Running with KSTACK_PAGES=5 now. Ronald.