From owner-freebsd-arm@FreeBSD.ORG Fri Sep 20 22:45:51 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 76D20E7B for ; Fri, 20 Sep 2013 22:45:51 +0000 (UTC) (envelope-from david.cheney@canonical.com) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DEDDA2707 for ; Fri, 20 Sep 2013 22:45:50 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id er20so841346lab.35 for ; Fri, 20 Sep 2013 15:45:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=l/QltLiI6peQvMtbBiXGrMG1teJwpGY1qgD+NDNItkg=; b=jto3EW5LILp4o4guMRFEgVKpfSJpj/GD4r4ppXk9dyZnIPwSFT+HZPL3hEm3vghQmR 57vgzdtl5iKS07fJm824T37Mrg0OPPoq1iUeMLeKYJTdrdi0t8BXsZblRDPvJFMxahs7 9gYwcgjhp9CoAjgZqoCYJNlrEEKe7XplzvcyC5BANh0QuEAU3ZOFI+y3w1w4+mgqUsyJ H9DfuB2PAn+e4BL7ZOEcNLeTuvBxn6zZOwduJRdHG3YFiVlllJFbzkAqifmpbD0CoZ2y nz437daqwInkHGq1vd0iIPas0A0fjaRTOy0TIfIaEPaGx9LPaIySeVapJzZthY3yAv9k Hu6Q== X-Gm-Message-State: ALoCoQnbZ+ou7/77o9Vs8tBhbYxtcgMocSJQpNH+r5WBMDs2iifIwwz8YCD3Dx3BPsX+UJjqS+yG MIME-Version: 1.0 X-Received: by 10.112.198.39 with SMTP id iz7mr8110065lbc.24.1379717148579; Fri, 20 Sep 2013 15:45:48 -0700 (PDT) Received: by 10.114.183.47 with HTTP; Fri, 20 Sep 2013 15:45:48 -0700 (PDT) Date: Sat, 21 Sep 2013 08:45:48 +1000 Message-ID: Subject: freebsd on beaglebone black, lock reversal panic shortly after first boot From: David Cheney To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 20 Sep 2013 22:45:51 -0000 Hello, I've been trying to replace my old RPi freebsd system, which I haven't been able to get a working build for months on, with a Beaglebone Black. This was the message I received after booting the card for the first time and trying to portsnap. Cheers Dave --- FreeBSD/arm (beaglebone) (ttyu0) login: root Sep 20 21:57:34 beaglebone login: ROOT LOGIN (root) ON ttyu0 FreeBSD 10.0-ALPHA2 (BEAGLEBONE) #0 r255662: Fri Sep 20 23:04:55 EST 2013 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc package has been installed (or fetched via pkg install lang-freebsd-doc, where lang is the 2-letter language code, e.g. en), they are also available formatted in /usr/local/share/doc/freebsd. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. Edit /etc/motd to change this login announcement. root@beaglebone:~ # df -h Filesystem Size Used Avail Capacity Mounted on /dev/mmcsd0s2a 3.5G 396M 2.9G 12% / devfs 1.0k 1.0k 0B 100% /dev /dev/mmcsd0s1 2M 693k 1.3M 34% /boot/msdos /dev/md0 28M 24k 26M 0% /tmp /dev/md1 14M 60k 13M 0% /var/log /dev/md2 4.4M 8.0k 4.0M 0% /var/tmp root@beaglebone:~ # portsnap fetch && portsnap extract Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found. Fetching public key from ec2-ap-southeast-2.portsnap.freebsd.org... done. Fetching snapshot tag from ec2-ap-southeast-2.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Fetching snapshot generated at Fri Sep 20 00:08:00 UTC 2013: f88e945869b296b518253a080d33b8c988a382fd82586c100% of 69 MB 1473 kBps 00m48s Extracting snapshot... lock order reversal: 1st 0xcd1299d0 bufwait (bufwait) @ /root/crochet-freebsd/src/sys/kern/vfs_bio.c:3059 2nd 0xc2a8f600 dirhash (dirhash) @ /root/crochet-freebsd/src/sys/ufs/ufs/ufs_dirhash.c:284 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc052ecf4 lr = 0xc022dcd0 (db_trace_self_wrapper+0x30) sp = 0xdd6ff7e0 fp = 0xdd6ff8f8 r10 = 0xcd1299d0 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc022dcd0 lr = 0xc038e9e0 (kdb_backtrace+0x38) sp = 0xdd6ff900 fp = 0xdd6ff908 r4 = 0xc066a484 r5 = 0xc05ae078 r6 = 0xc0592f71 r7 = 0xc0598518 kdb_backtrace() at kdb_backtrace+0x38 pc = 0xc038e9e0 lr = 0xc03a8b5c (witness_checkorder+0xda0) sp = 0xdd6ff910 fp = 0xdd6ff960 r4 = 0xc05ae43b witness_checkorder() at witness_checkorder+0xda0 pc = 0xc03a8b5c lr = 0xc035ff8c (_sx_xlock+0x84) sp = 0xdd6ff968 fp = 0xdd6ff990 r4 = 0x0000011c r5 = 0xc05ae075 r6 = 0xc2a8f610 r7 = 0xc2a8f600 r8 = 0x00000000 r9 = 0xc2c067e0 r10 = 0x000001b4 _sx_xlock() at _sx_xlock+0x84 pc = 0xc035ff8c lr = 0xc04ebfa8 (ufsdirhash_add+0x34) sp = 0xdd6ff998 fp = 0xdd6ff9b0 r4 = 0xc2a8f600 r5 = 0xc2ab1e80 r6 = 0xdd6ffa48 r7 = 0x00000001 r8 = 0x0000084c ufsdirhash_add() at ufsdirhash_add+0x34 pc = 0xc04ebfa8 lr = 0xc04ee88c (ufs_direnter+0x45c) sp = 0xdd6ff9b8 fp = 0xdd6ffa20 r4 = 0xc2ab1e80 r5 = 0xcd3af84c r6 = 0xdd6ffa48 r7 = 0x00000001 r8 = 0x0000004c r9 = 0xc2c067e0 ufs_direnter() at ufs_direnter+0x45c pc = 0xc04ee88c lr = 0xc04f7e04 (ufs_makeinode+0x3f4) sp = 0xdd6ffa28 fp = 0xdd6ffb88 r4 = 0xdd6ffa48 r5 = 0xc2ab1180 r6 = 0xdd6ffd48 r7 = 0x00000000 r8 = 0xc2c067e0 r9 = 0xdd6ffd30 r10 = 0x000081a4 ufs_makeinode() at ufs_makeinode+0x3f4 pc = 0xc04f7e04 lr = 0xc04f4268 (ufs_create+0x24) sp = 0xdd6ffb90 fp = 0xdd6ffb90 r4 = 0xdd6ffc60 r5 = 0xc064eba0 r6 = 0x00000000 r7 = 0x00100a02 r8 = 0x00000000 r9 = 0xdd6ffd30 r10 = 0xdd6ffd50 ufs_create() at ufs_create+0x24 pc = 0xc04f4268 lr = 0xc0552268 (VOP_CREATE_APV+0xd0) sp = 0xdd6ffb98 fp = 0xdd6ffba8 VOP_CREATE_APV() at VOP_CREATE_APV+0xd0 pc = 0xc0552268 lr = 0xc0408540 (vn_open_cred+0x278) sp = 0xdd6ffbb0 fp = 0xdd6ffc90 r4 = 0xdd6ffce0 r5 = 0xdd6ffd30 r6 = 0xc2c067e0 vn_open_cred() at vn_open_cred+0x278 pc = 0xc0408540 lr = 0xc04082c0 (vn_open+0x24) sp = 0xdd6ffc98 fp = 0xdd6ffca0 r4 = 0xc2a2d640 r5 = 0xc2a76000 r6 = 0xdd6ffce0 r7 = 0x00000012 r8 = 0x00000000 r9 = 0x000500cf r10 = 0xdd6ffcd0 vn_open() at vn_open+0x24 pc = 0xc04082c0 lr = 0xc040187c (kern_openat+0x24c) sp = 0xdd6ffca8 fp = 0xdd6ffda8 kern_openat() at kern_openat+0x24c pc = 0xc040187c lr = 0xc04015c4 (sys_open+0x28) sp = 0xdd6ffdb0 fp = 0xdd6ffdb8 r4 = 0xc2a2d640 r5 = 0x00000000 r6 = 0x20cc1198 r7 = 0x00000000 r8 = 0xdd6ffe10 r9 = 0xc29f6c80 r10 = 0x20c24080 sys_open() at sys_open+0x28 pc = 0xc04015c4 lr = 0xc0540764 (swi_handler+0x284) sp = 0xdd6ffdc0 fp = 0xdd6ffe58 swi_handler() at swi_handler+0x284 pc = 0xc0540764 lr = 0xc0530350 (swi_entry+0x2c) sp = 0xdd6ffe60 fp = 0xbfffe960 r4 = 0x20c0a200 r5 = 0x000001a4 r6 = 0x20cc1198 r7 = 0x00000005 r8 = 0x20c0a200 r9 = 0x00000001 swi_entry() at swi_entry+0x2c pc = 0xc0530350 lr = 0xc0530350 (swi_entry+0x2c) sp = 0xdd6ffe60 fp = 0xbfffe960 Unable to unwind further lock order reversal: 1st 0xc2c06814 ufs (ufs) @ /root/crochet-freebsd/src/sys/kern/vfs_subr.c:2099 2nd 0xcd1299d0 bufwait (bufwait) @ /root/crochet-freebsd/src/sys/ufs/ffs/ffs_vnops.c:262 3rd 0xc2cb9154 ufs (ufs) @ /root/crochet-freebsd/src/sys/kern/vfs_subr.c:2099 KDB: stack backtrace: db_trace_self() at db_trace_self pc = 0xc052ecf4 lr = 0xc022dcd0 (db_trace_self_wrapper+0x30) sp = 0xdd6ff578 fp = 0xdd6ff690 r10 = 0xc05adb30 db_trace_self_wrapper() at db_trace_self_wrapper+0x30 pc = 0xc022dcd0 lr = 0xc038e9e0 (kdb_backtrace+0x38) sp = 0xdd6ff698 fp = 0xdd6ff6a0 r4 = 0xc066a484 r5 = 0xc0592f71 r6 = 0xc059b3d0 r7 = 0xc05adb33 kdb_backtrace() at kdb_backtrace+0x38 pc = 0xc038e9e0 lr = 0xc03a8b5c (witness_checkorder+0xda0) sp = 0xdd6ff6a8 fp = 0xdd6ff6f8 r4 = 0xc0581d1c witness_checkorder() at witness_checkorder+0xda0 pc = 0xc03a8b5c lr = 0xc033c5fc (__lockmgr_args+0x698) sp = 0xdd6ff700 fp = 0xdd6ff768 r4 = 0x00080100 r5 = 0x00000833 r6 = 0xc2cb9154 r7 = 0x00080000 r8 = 0x00000100 r9 = 0x00000000 r10 = 0xc059b3cd __lockmgr_args() at __lockmgr_args+0x698 pc = 0xc033c5fc lr = 0xc04e678c (ffs_lock+0x80) sp = 0xdd6ff770 fp = 0xdd6ff798 r4 = 0xdd6ff7b8 r5 = 0x00080100 r6 = 0xc2cb9120 r7 = 0xc2cb9154 r8 = 0xc2cb9174 r9 = 0x00000000 r10 = 0xc059b3cd ffs_lock() at ffs_lock+0x80 pc = 0xc04e678c lr = 0xc0554118 (VOP_LOCK1_APV+0xd8) sp = 0xdd6ff7a0 fp = 0xdd6ff7b0 r4 = 0xdd6ff7b8 r5 = 0xc064e690 r6 = 0x00000000 r7 = 0x00000000 r8 = 0xc2a2d640 r9 = 0x00000833 VOP_LOCK1_APV() at VOP_LOCK1_APV+0xd8 pc = 0xc0554118 lr = 0xc0408cbc (_vn_lock+0x78) sp = 0xdd6ff7b8 fp = 0xdd6ff7e8 r4 = 0xc2cb9120 r5 = 0x00080100 r6 = 0x00080100 _vn_lock() at _vn_lock+0x78 pc = 0xc0408cbc lr = 0xc03f97e8 (vget+0x60) sp = 0xdd6ff7f0 fp = 0xdd6ff810 r4 = 0xc2cb9120 r5 = 0x00000000 r6 = 0x00080100 r7 = 0x00000000 r8 = 0xc2a2d640 r9 = 0xc059a607 r10 = 0x00000000 vget() at vget+0x60 pc = 0xc03f97e8 lr = 0xc03ede5c (vfs_hash_get+0xe4) sp = 0xdd6ff818 fp = 0xdd6ff848 r4 = 0xc2a0b2b0 r5 = 0x00000000 r6 = 0x0002787d r7 = 0x00000000 r8 = 0xc2cb9120 vfs_hash_get() at vfs_hash_get+0xe4 pc = 0xc03ede5c lr = 0xc04e17f4 (ffs_vgetf+0x3c) sp = 0xdd6ff850 fp = 0xdd6ff8a0 r4 = 0x0002787d r5 = 0xc05aa74b r6 = 0xc2bb13c0 r7 = 0xdd6ff908 r8 = 0xc2bb13c0 r9 = 0x00080000 r10 = 0xc2a0b2b0 ffs_vgetf() at ffs_vgetf+0x3c pc = 0xc04e17f4 lr = 0xc04da468 (softdep_sync_buf+0x974) sp = 0xdd6ff8a8 fp = 0xdd6ff928 r4 = 0x0002787d r5 = 0xc05aa74b r6 = 0xc2bb13c0 r7 = 0xc05aa74b r8 = 0xc2bb13c0 r9 = 0x0000088b r10 = 0x0002787d softdep_sync_buf() at softdep_sync_buf+0x974 pc = 0xc04da468 lr = 0xc04e7560 (ffs_syncvnode+0x2bc) sp = 0xdd6ff930 fp = 0xdd6ff980 r4 = 0x00000000 r5 = 0xcd188d48 r6 = 0x00060200 r7 = 0xc2c067e0 r8 = 0xc05adb30 r9 = 0xcd1299d0 r10 = 0xcd129978 ffs_syncvnode() at ffs_syncvnode+0x2bc pc = 0xc04e7560 lr = 0xc04e6650 (ffs_fsync+0x20) sp = 0xdd6ff988 fp = 0xdd6ff998 r4 = 0xdd6ff9f0 r5 = 0xc2c067e0 r6 = 0x00000000 r7 = 0x00000200 r8 = 0xc2a2d640 r9 = 0xc2c067e0 r10 = 0xc33445a0 ffs_fsync() at ffs_fsync+0x20 pc = 0xc04e6650 lr = 0xc05534b8 (VOP_FSYNC_APV+0xd0) sp = 0xdd6ff9a0 fp = 0xdd6ff9b0 r4 = 0xdd6ff9f0 r5 = 0xc064e690 r6 = 0x00000000 r7 = 0x00000200 VOP_FSYNC_APV() at VOP_FSYNC_APV+0xd0 pc = 0xc05534b8 lr = 0xc04eeb54 (ufs_direnter+0x724) sp = 0xdd6ff9b8 fp = 0xdd6ffa20 r4 = 0xc33445a0 r5 = 0x00000000 r6 = 0xcd356e00 ufs_direnter() at ufs_direnter+0x724 pc = 0xc04eeb54 lr = 0xc04f7e04 (ufs_makeinode+0x3f4) sp = 0xdd6ffa28 fp = 0xdd6ffb88 r4 = 0xdd6ffa48 r5 = 0xc332fa00 r6 = 0xdd6ffd48 r7 = 0x00000000 r8 = 0xc2c067e0 r9 = 0xdd6ffd30 r10 = 0x000081a4 ufs_makeinode() at ufs_makeinode+0x3f4 pc = 0xc04f7e04 lr = 0xc04f4268 (ufs_create+0x24) sp = 0xdd6ffb90 fp = 0xdd6ffb90 r4 = 0xdd6ffc60 r5 = 0xc064eba0 r6 = 0x00000000 r7 = 0x00100a02 r8 = 0x00000000 r9 = 0xdd6ffd30 r10 = 0xdd6ffd50 ufs_create() at ufs_create+0x24 pc = 0xc04f4268 lr = 0xc0552268 (VOP_CREATE_APV+0xd0) sp = 0xdd6ffb98 fp = 0xdd6ffba8 VOP_CREATE_APV() at VOP_CREATE_APV+0xd0 pc = 0xc0552268 lr = 0xc0408540 (vn_open_cred+0x278) sp = 0xdd6ffbb0 fp = 0xdd6ffc90 r4 = 0xdd6ffce0 r5 = 0xdd6ffd30 r6 = 0xc2c067e0 vn_open_cred() at vn_open_cred+0x278 pc = 0xc0408540 lr = 0xc04082c0 (vn_open+0x24) sp = 0xdd6ffc98 fp = 0xdd6ffca0 r4 = 0xc2a2d640 r5 = 0xc2a76000 r6 = 0xdd6ffce0 r7 = 0x00000012 r8 = 0x00000000 r9 = 0x000500cf r10 = 0xdd6ffcd0 vn_open() at vn_open+0x24 pc = 0xc04082c0 lr = 0xc040187c (kern_openat+0x24c) sp = 0xdd6ffca8 fp = 0xdd6ffda8 kern_openat() at kern_openat+0x24c pc = 0xc040187c lr = 0xc04015c4 (sys_open+0x28) sp = 0xdd6ffdb0 fp = 0xdd6ffdb8 r4 = 0xc2a2d640 r5 = 0x00000000 r6 = 0x20cc1198 r7 = 0x00000000 r8 = 0xdd6ffe10 r9 = 0xc29f6c80 r10 = 0x20c24080 sys_open() at sys_open+0x28 pc = 0xc04015c4 lr = 0xc0540764 (swi_handler+0x284) sp = 0xdd6ffdc0 fp = 0xdd6ffe58 swi_handler() at swi_handler+0x284 pc = 0xc0540764 lr = 0xc0530350 (swi_entry+0x2c) sp = 0xdd6ffe60 fp = 0xbfffe960 r4 = 0x20c0a200 r5 = 0x000001a4 r6 = 0x20cc1198 r7 = 0x00000