From owner-freebsd-arm@FreeBSD.ORG Mon Jun 1 13:33:19 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFEA6DE5 for ; Mon, 1 Jun 2015 13:33:19 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A9C01832 for ; Mon, 1 Jun 2015 13:33:19 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: by igbyr2 with SMTP id yr2so61425377igb.0 for ; Mon, 01 Jun 2015 06:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=z0WW1KKN87Z/unOWueN1da8fTNMFqUxW6tQhJn2Sr78=; b=h5pqE69bnRQu2rZfsaycz7t3GRL2yO0Yw1AR7jknaX1tN7XFfb/HgzX50BPjyrkGri GaLOwHhw60ILiSkzUt5Q24H702wffo+8LTuAmVhrxHpvBLDzn/2GHV2Qs82//20Jw6kZ vWRfyRUtzs6R+6NJ1DHyAIaTrp9kl2c4jAN/2+fMvZJ0vL4fm2HPAhX0OLRRsWj3Lbf7 sdjdVCt2OAqEz1eRFd0PNwxZjv0bbCzqCRzkMmEElpgwfDxfjCmpbfZUxOVmA1k16ExC 5z3woNa5QVAQSsk5Xk/uS0PLiWulUrYQ0bYB7FMARJ9atYpAufBh9pasK778CXG+fhVJ F2Kg== MIME-Version: 1.0 X-Received: by 10.42.93.17 with SMTP id v17mr5370491icm.42.1433165598823; Mon, 01 Jun 2015 06:33:18 -0700 (PDT) Received: by 10.64.228.199 with HTTP; Mon, 1 Jun 2015 06:33:18 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Jun 2015 15:33:18 +0200 Message-ID: Subject: Re: Panic while running ~HEAD on Cubieboard From: Svatopluk Kraus To: Pratik Singhal Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 13:33:19 -0000 Well, I have not Cubieboard in my hands. So, standard questions are the following: 1. Is it reproducible? (In other words - is it debug-able?) 2. How often does it happen? (In other words - is it debug-able in practice?) In your case I already know something, thus, can you try the following things until some from them helps: 3. clean instalation on another media, 4. most recent revision of kernel, 4. another older kernel. There is no same reports on other armv6 platforms, so it's probably related to either Cubieboard or your hardware configuration (corrupted boot media for example). On the other hand, it could be a real bug - in pmap or anywhere else. It's hard to decide without more information. Svata On Sun, May 31, 2015 at 3:15 AM, Pratik Singhal wrote: > Hello, I am getting a panic while running ~HEAD on my Cubieboard 1. I am > using the default configuration file. > > I am pasting the boot log and the stack trace for it :- > > Stack trace : - > > pmap_remove_pages: pmap 0xc3c84974 va 0x20279000 pte1 0 > panic: bad pte1 > KDB: enter: panic > [ thread pid 332 tid 100044 ] > Stopped at kdb_enter+0x58: ldrb r15, [r15, r15, ror r15]! > db> bt > Tracing pid 332 tid 100044 td 0xc3f31660 > db_trace_self() at db_trace_self > pc = 0xc05c3c40 lr = 0xc0232ad4 (db_hex2dec+0x4e0) > sp = 0xd84c6978 fp = 0xd84c6990 > r10 = 0xc0777e94 > db_hex2dec() at db_hex2dec+0x4e0 > pc = 0xc0232ad4 lr = 0xc0232520 (db_command_loop+0x40c) > sp = 0xd84c6998 fp = 0xd84c6a38 > r4 = 0x00000000 r5 = 0x00000000 > r6 = 0x00000000 r10 = 0xc0777e94 > db_command_loop() at db_command_loop+0x40c > pc = 0xc0232520 lr = 0xc0232188 (db_command_loop+0x74) > sp = 0xd84c6a40 fp = 0xd84c6a50 > r4 = 0xc0602b13 r5 = 0xc061e792 > r6 = 0xc0777e80 r7 = 0xc06c4be4 > r8 = 0xc0716090 r9 = 0xc0716094 > r10 = 0xd84c6c18 > db_command_loop() at db_command_loop+0x74 > pc = 0xc0232188 lr = 0xc0234c90 (db_fetch_ksymtab+0x2d0) > sp = 0xd84c6a58 fp = 0xd84c6b70 > r4 = 0x00000000 r5 = 0xc0777e8c > r6 = 0xc07160b8 r10 = 0xd84c6c18 > db_fetch_ksymtab() at db_fetch_ksymtab+0x2d0 > pc = 0xc0234c90 lr = 0xc03a2070 (kdb_trap+0xd4) > sp = 0xd84c6b78 fp = 0xd84c6b98 > r4 = 0x00000000 r5 = 0x00000001 > r6 = 0xc07160b8 r7 = 0xc06c4be4 > kdb_trap() at kdb_trap+0xd4 > pc = 0xc03a2070 lr = 0xc05dab2c (undefinedinstruction+0x338) > sp = 0xd84c6ba0 fp = 0xd84c6c10 > r4 = 0x00000000 r5 = 0x00000000 > r6 = 0xc05da744 r7 = 0xe7ffffff > r8 = 0xc3f31660 r9 = 0xc03a193c > r10 = 0xd84c6c18 > undefinedinstruction() at undefinedinstruction+0x338 > pc = 0xc05dab2c lr = 0xc05c52c8 (exception_exit) > sp = 0xd84c6c18 fp = 0xd84c6cb0 > r4 = 0xc061e7e7 r5 = 0xd84c6cf4 > r6 = 0xc064d29c r7 = 0xc07085f8 > r8 = 0xc3f31660 r9 = 0xc0779580 > r10 = 0xc0708460 > exception_exit() at exception_exit > pc = 0xc05c52c8 lr = 0xc03a192c (kdb_enter+0x48) > sp = 0xd84c6ca8 fp = 0xd84c6cb0 > r0 = 0xc07160a4 r1 = 0x00000000 > r2 = 0xc06223e5 r3 = 0xc0622054 > r4 = 0xc061e7e7 r5 = 0xd84c6cf4 > r6 = 0xc064d29c r7 = 0xc07085f8 > r8 = 0xc3f31660 r9 = 0xc0779580 > r10 = 0xc0708460 r12 = 0x00000000 > kdb_enter() at kdb_enter+0x5c > pc = 0xc03a1940 lr = 0xc0367db0 (vpanic+0xd0) > sp = 0xd84c6cb8 fp = 0xd84c6cd8 > r4 = 0x00000100 r10 = 0xc0708460 > vpanic() at vpanic+0xd0 > pc = 0xc0367db0 lr = 0xc0367e04 (kproc_shutdown) > sp = 0xd84c6ce0 fp = 0xd84c6ce8 > r4 = 0x20408000 r5 = 0x00000000 > r6 = 0x00008000 r7 = 0x00000001 > r8 = 0xc3c84974 r9 = 0xc1f0e868 > r10 = 0xc1f0e828 > kproc_shutdown() at kproc_shutdown > pc = 0xc0367e04 lr = 0xc05d0a5c (pmap_remove_pages+0x840) > sp = 0xd84c6cf0 fp = 0xd84c6d60 > r4 = 0xc1963690 r5 = 0xd84c6cf4 > pmap_remove_pages() at pmap_remove_pages+0x840 > pc = 0xc05d0a5c lr = 0xc059b714 (vmspace_exit+0xdc) > sp = 0xd84c6d68 fp = 0xd84c6d90 > r4 = 0xc3c84970 r5 = 0x00000001 > r6 = 0xc0779170 r7 = 0xc3f28000 > r8 = 0xc3c84974 r9 = 0xc3c848b8 > r10 = 0xc3f31660 > vmspace_exit() at vmspace_exit+0xdc > pc = 0xc059b714 lr = 0xc0331724 (exit1+0x56c) > sp = 0xd84c6d98 fp = 0xd84c6de0 > r4 = 0xc3f28000 r5 = 0xc0617ff5 > r6 = 0xc3f31660 r7 = 0x00000000 > r8 = 0xc3d36e40 r9 = 0xc3f280ac > r10 = 0xbfbffe30 > exit1() at exit1+0x56c > pc = 0xc0331724 lr = 0xc03311b8 (exit1) > sp = 0xd84c6de8 fp = 0xd84c6de8 > r4 = 0xc3f31660 r5 = 0xc3f28000 > r6 = 0x60000013 r7 = 0x00000000 > r8 = 0xd84c6e00 r9 = 0x00000000 > r10 = 0xbfbffe30 > exit1() at exit1 > pc = 0xc03311b8 lr = 0xc05d97a8 (swi_handler+0x29c) > sp = 0xd84c6df0 fp = 0xd84c6e50 > r4 = 0x60000013 r5 = 0x00000000 > r6 = 0xd84c6e00 r7 = 0x00000000 > r8 = 0xbfbffe30 r9 = 0xd84c6de8 > r10 = 0xc03311b8 > swi_handler() at swi_handler+0x29c > pc = 0xc05d97a8 lr = 0xc05c5258 (swi_exit) > sp = 0xd84c6e58 fp = 0xbfbffdb0 > r4 = 0x00000000 r5 = 0x2026a1a0 > r6 = 0xbfbfff46 r7 = 0x00000001 > r8 = 0x000129b8 r9 = 0x0000a40b > r10 = 0xbfbffe30 > swi_exit() at swi_exit > pc = 0xc05c5258 lr = 0xc05c5258 (swi_exit) > sp = 0xd84c6e58 fp = 0xbfbffdb0 > > Boot log :- > > sun4i#fatload mmc 0 0x40200000 kernel ; go 0x40200100 > reading kernel > > 5976158 bytes read > ## Starting application at 0x40200100 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2015 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-CURRENT #11 r283795M: Sun May 31 06:18:48 IST 2015 > root@pratik:/usr/obj/arm.armv6/root/src/sys/CUBIEBOARD arm > FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Cortex A8-r3 rev 2 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB disabled EABT branch prediction enabled > LoUU:2 LoC:3 LoUIS:1 > Cache level 1: > 32KB/64B 4-way data cache WT WB Read-Alloc > 32KB/64B 4-way instruction cache Read-Alloc > Cache level 2: > 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc > real memory = 1073741824 (1024 MB) > avail memory = 1039183872 (991 MB) > random: entropy device infrastructure driver > random: selecting highest priority adaptor > random: SOFT: yarrow init() > random: selecting highest priority adaptor > ofwbus0: > simplebus0: on ofwbus0 > aintc0: mem 0x1c20400-0x1c207ff on > simplebus0 > a10_sramc0: mem 0x1c00000-0x1c00fff on simplebus0 > a10_ccm0: mem 0x1c20000-0x1c203ff on > simplebus0 > a10_timer0: mem 0x1c20c00-0x1c20c8f irq 22 on > simplebus0 > Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000 > Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000 > a10wd0: mem 0x1c20c90-0x1c20c97 on simplebus0 > gpio0: mem 0x1c20800-0x1c20bff irq 28 on > simplebus0 > gpiobus0: on gpio0 > gpioc0: on gpio0 > ehci0: mem 0x1c14000-0x1c14fff > irq 39 on simplebus0 > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ehci1: mem 0x1c1c000-0x1c1cfff > irq 40 on simplebus0 > usbus1: EHCI version 1.0 > usbus1 on ehci1 > a10_mmc0: mem 0x1c0f000-0x1c0ffff > irq 32 on simplebus0 > mmc0: on a10_mmc0 > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 1 on simplebus0 > uart0: console (115200,n,8,1) > emac0: mem 0x1c0b000-0x1c0bfff irq 55 on > simplebus0 > miibus0: on emac0 > rlphy0: PHY 1 on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > emac0: Ethernet address: 62:73:64:dc:8f:cc > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > a10_mmc0: error rint: 0x00000100 > a10_mmc0: error rint: 0x00000100 > a10_mmc0: error rint: 0x00000104 > a10_mmc0: error rint: 0x00000100 > mmc0: CMD7 failed, RESULT: 1 > mmcsd0: 4GB at mmc0 > 50.0MHz/4bit/65535-block > random: unblocking device. > WARNING: WITNESS option enabled, expect reduced performance. > Root mount waiting for: usbus1 usbus0 > uhub0: 1 port with 1 removable, self powered > uhub1: 1 port with 1 removable, self powered > ugen1.2: at usbus1 > umass0: on usbus1 > umass0: SCSI over Bulk-Only; quirks = 0x4101 > umass0:0:0: Attached to scbus0 > Trying to mount root from ufs:/dev/da0 []... > mountroot: waiting for device /dev/da0 ... > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: Removable Direct Access SPC-2 SCSI device > da0: Serial Number C720B9E5 > da0: 40.000MB/s transfers > da0: 7600MB (15564800 512 byte sectors: 255H 63S/T 968C) > da0: quirks=0x2 > WARNING: / was not properly dismounted > warning: no time-of-day clock registered, system time will not be set > accurately > Setting hostuuid: c9e1d491-ff6e-11e4-af3a-1b89f998a972. > Setting hostid: 0x87cd063d. > No suitable dump device was found. > Starting file system checks: > /dev/da0: INCORRECT BLOCK COUNT I=3934 (17408 should be 17344) (CORRECTED) > /dev/da0: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED) > /dev/da0: SUMMARY INFORMATION BAD (SALVAGED) > /dev/da0: BLK(S) MISSING IN BIT MAPS (SALVAGED) > /dev/da0: 16097 files, 88147 used, 165684 free (20 frags, 20708 blocks, > 0.0% fragmentation) > Mounting local file systems:. > /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). > Feeding entropy:. > Starting Network: lo0 emac0. > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > groups: lo > nd6 options=21 > emac0: flags=8802 metric 0 mtu 1500 > options=80008 > ether 62:m73:64:dc:8f:cc > ac0: link state changed to UP > media: Ethernet autoselect (none) > status: active > nd6 options=29 > ELF ldconfig path: /lib /usr/lib /usr/lib/compat > Starting devd. > pid 243 (sh), uid 0: exited on signal 11 (core dumped) > ld-elf.so.1: assert failed: > /root/pratiksinghal/cubie-head/libexec/rtld-elf/rtld.c:384 > pid 244 (sh), uid 0: exited on signal 6 (core dumped) > add net fe80::: gateway ::1 > add net ff02::: gateway ::1 > add net ::ffff:0.0.0.0: gateway ::1 > add net ::0.0.0.0: gateway ::1 > Creating and/or trimming log files. > Starting syslogd. > pmap_remove_pages: pmap 0xc3c84974 va 0x20279000 pte1 0 > > > Regards, > Pratik Singhal > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"