Date: Sun, 31 May 2015 16:40:44 +0200 From: Svatopluk Kraus <onwahe@gmail.com> To: Pratik Singhal <ps06756@gmail.com> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: Panic while running ~HEAD on Cubieboard Message-ID: <CAFHCsPWnpYAE87OWhdCfUhDBnpw0GKe0QUQnSKHg0j7KWq=dhA@mail.gmail.com> In-Reply-To: <CAGf2gkMuvc7_qBZgxXpn%2BK6W2kQqEXWmEUb_R3gG%2BPwY4FoZow@mail.gmail.com> References: <CAGf2gkMuvc7_qBZgxXpn%2BK6W2kQqEXWmEUb_R3gG%2BPwY4FoZow@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 31, 2015 at 3:15 AM, Pratik Singhal <ps06756@gmail.com> 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 <Dummy> > random: SOFT: yarrow init() > random: selecting highest priority adaptor <Yarrow> > ofwbus0: <Open Firmware Device Tree> > simplebus0: <Flattened device tree simple bus> on ofwbus0 > aintc0: <A10 AINTC Interrupt Controller> mem 0x1c20400-0x1c207ff on > simplebus0 > a10_sramc0: <Allwinner sramc module> mem 0x1c00000-0x1c00fff on simplebus0 > a10_ccm0: <Allwinner Clock Control Module> mem 0x1c20000-0x1c203ff on > simplebus0 > a10_timer0: <Allwinner A10/A20 timer> 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: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c97 on simplebus0 > gpio0: <Allwinner GPIO controller> mem 0x1c20800-0x1c20bff irq 28 on > simplebus0 > gpiobus0: <GPIO bus> on gpio0 > gpioc0: <GPIO controller> on gpio0 > ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c14fff > irq 39 on simplebus0 > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1cfff > irq 40 on simplebus0 > usbus1: EHCI version 1.0 > usbus1 on ehci1 > a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff > irq 32 on simplebus0 > mmc0: <MMC/SD bus> on a10_mmc0 > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 1 on simplebus0 > uart0: console (115200,n,8,1) > emac0: <A10/A20 EMAC ethernet controller> mem 0x1c0b000-0x1c0bfff irq 55 on > simplebus0 > miibus0: <MII bus> on emac0 > rlphy0: <RTL8201L 10/100 media interface> 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: <Allwinner> at usbus0 > uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 > ugen1.1: <Allwinner> at usbus1 > uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> 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 <SDHC SU04G 8.0 SN 09093DFD MFG 01/2013 by 3 SD> 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: <Generic> at usbus1 > umass0: <Generic Mass Storage, class 0/0, rev 2.00/1.0b, addr 2> 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: <Generic Flash Disk 8.07> 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<NO_6_BYTE> > 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<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 > options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > groups: lo > nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> > emac0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 > options=80008<VLAN_MTU,LINKSTeATE> > ether 62:m73:64:dc:8f:cc > ac0: link state changed to UP > media: Ethernet autoselect (none) > status: active > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > 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 > According to your dmesg, there are more wrong things: a10_mmc0: error rint: 0x00000100 a10_mmc0: error rint: 0x00000100 a10_mmc0: error rint: 0x00000104 a10_mmc0: error rint: 0x00000100 pid 243 (sh), uid 0: exited on signal 11 (core dumped) pid 244 (sh), uid 0: exited on signal 6 (core dumped) So, it's possible that the panic just stops the misery. Svata > > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFHCsPWnpYAE87OWhdCfUhDBnpw0GKe0QUQnSKHg0j7KWq=dhA>