Kernel crash FreeBSD 10 on BeagleBone Black

Lundberg, Johannes johannes at brilliantservice.co.jp
Tue Dec 24 04:53:39 UTC 2013


Hi

I just got my hands on a BeagleBone Black and tested running FreeBSD 10 on
it.
Creating a bootable image using Crochet worked just fine. I can login with
the root account and everything seems fine. (compared to PandaBoard which
doesn't boot at all with exactly the same Crochet-setup due to USB/MMC
problem I think)

However, when I run "portsnap fetch" I get kernel crash with output that is
attached in this mail. I also pasted a short snippet here below.

Anyone know anything about this behavior?

---
root at beaglebone:~ # portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Tue Dec 24 00:09:55 UTC 2013:
f1d85d9f0929f9917e1c82eff90d8d73efaa1fb6345ec7100% of   69 MB 1805 kBps
00m39s
Extracting snapshot... lock order reversal:
 1st 0xcd179c70 bufwait (bufwait) @
/usr/src-releng10/sys/kern/vfs_bio.c:3050
 2nd 0xc2a9cc00 dirhash (dirhash) @
/usr/src-releng10/sys/ufs/ufs/ufs_dirhash.c:284
KDB: stack backtrace:
db_trace_self() at db_trace_self
         pc = 0xc053cca8  lr = 0xc022ff80 (db_trace_self_wrapper+0x30)
         sp = 0xde8e27e0  fp = 0xde8e28f8
        r10 = 0xcd179c70
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
         pc = 0xc022ff80  lr = 0xc03979f4 (kdb_backtrace+0x3c)
         sp = 0xde8e2900  fp = 0xde8e2908
         r4 = 0xc06791f4  r5 = 0xc05bc16c
         r6 = 0xc05a140e  r7 = 0xc05a68a0
kdb_backtrace() at kdb_backtrace+0x3c
         pc = 0xc03979f4  lr = 0xc03b2240 (witness_checkorder+0xd98)
         sp = 0xde8e2910  fp = 0xde8e2960
         r4 = 0xc05bc527
witness_checkorder() at witness_checkorder+0xd98
         pc = 0xc03b2240  lr = 0xc036848c (_sx_xlock+0x80)
         sp = 0xde8e2968  fp = 0xde8e2988
         r4 = 0x0000011c  r5 = 0xc05bc169
         r6 = 0xc2a9cc00  r7 = 0x00000000
         r8 = 0x0000084c  r9 = 0xde8e2a48
        r10 = 0x0000004c
-------
SNIP
-------
--
Johannes Lundberg

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.
-------------- next part --------------
root at beaglebone:~ # portsnap fetch 
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Tue Dec 24 00:09:55 UTC 2013:
f1d85d9f0929f9917e1c82eff90d8d73efaa1fb6345ec7100% of   69 MB 1805 kBps 00m39s
Extracting snapshot... lock order reversal:
 1st 0xcd179c70 bufwait (bufwait) @ /usr/src-releng10/sys/kern/vfs_bio.c:3050
 2nd 0xc2a9cc00 dirhash (dirhash) @ /usr/src-releng10/sys/ufs/ufs/ufs_dirhash.c:284
KDB: stack backtrace:
db_trace_self() at db_trace_self
         pc = 0xc053cca8  lr = 0xc022ff80 (db_trace_self_wrapper+0x30)
         sp = 0xde8e27e0  fp = 0xde8e28f8
        r10 = 0xcd179c70
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
         pc = 0xc022ff80  lr = 0xc03979f4 (kdb_backtrace+0x3c)
         sp = 0xde8e2900  fp = 0xde8e2908
         r4 = 0xc06791f4  r5 = 0xc05bc16c
         r6 = 0xc05a140e  r7 = 0xc05a68a0
kdb_backtrace() at kdb_backtrace+0x3c
         pc = 0xc03979f4  lr = 0xc03b2240 (witness_checkorder+0xd98)
         sp = 0xde8e2910  fp = 0xde8e2960
         r4 = 0xc05bc527
witness_checkorder() at witness_checkorder+0xd98
         pc = 0xc03b2240  lr = 0xc036848c (_sx_xlock+0x80)
         sp = 0xde8e2968  fp = 0xde8e2988
         r4 = 0x0000011c  r5 = 0xc05bc169
         r6 = 0xc2a9cc00  r7 = 0x00000000
         r8 = 0x0000084c  r9 = 0xde8e2a48
        r10 = 0x0000004c
_sx_xlock() at _sx_xlock+0x80
         pc = 0xc036848c  lr = 0xc04f985c (ufsdirhash_add+0x38)
         sp = 0xde8e2990  fp = 0xde8e29b0
         r4 = 0xc2a9cc00  r5 = 0xc2bc9100
         r6 = 0xde8e2a48  r7 = 0x00000001
ufsdirhash_add() at ufsdirhash_add+0x38
         pc = 0xc04f985c  lr = 0xc04fc1c4 (ufs_direnter+0x480)
         sp = 0xde8e29b8  fp = 0xde8e2a20
         r4 = 0xc2bc9100  r5 = 0xcd4db84c
         r6 = 0xde8e2a48  r7 = 0x00000001
         r8 = 0xc2b88320  r9 = 0xc2cc0c60
        r10 = 0x0000004c
ufs_direnter() at ufs_direnter+0x480
         pc = 0xc04fc1c4  lr = 0xc0505bd0 (ufs_makeinode+0x410)
         sp = 0xde8e2a28  fp = 0xde8e2b88
         r4 = 0xde8e2a48  r5 = 0xc2ac5380
         r6 = 0xde8e2d48  r7 = 0x00000000
         r8 = 0xc2cc0c60  r9 = 0xde8e2d30
        r10 = 0x000081a4
ufs_makeinode() at ufs_makeinode+0x410
         pc = 0xc0505bd0  lr = 0xc0501f24 (ufs_create+0x24)
         sp = 0xde8e2b90  fp = 0xde8e2b90
         r4 = 0xde8e2c60  r5 = 0xc065d8a0
         r6 = 0x00000000  r7 = 0x00100a02
         r8 = 0x00000000  r9 = 0xde8e2d30
        r10 = 0xde8e2d50
ufs_create() at ufs_create+0x24
         pc = 0xc0501f24  lr = 0xc0560834 (VOP_CREATE_APV+0xd4)
         sp = 0xde8e2b98  fp = 0xde8e2ba8
VOP_CREATE_APV() at VOP_CREATE_APV+0xd4
         pc = 0xc0560834  lr = 0xc04134d8 (vn_open_cred+0x278)
         sp = 0xde8e2bb0  fp = 0xde8e2c90
         r4 = 0xde8e2ce0  r5 = 0xde8e2d30
         r6 = 0xc2cc0c60
vn_open_cred() at vn_open_cred+0x278
         pc = 0xc04134d8  lr = 0xc0413254 (vn_open+0x24)
         sp = 0xde8e2c98  fp = 0xde8e2ca0
         r4 = 0xc2b88320  r5 = 0xc2acb800
         r6 = 0xde8e2ce0  r7 = 0x00000012
         r8 = 0x00000000  r9 = 0x000500cf
        r10 = 0xde8e2cd0
vn_open() at vn_open+0x24
         pc = 0xc0413254  lr = 0xc040c5b4 (kern_openat+0x24c)
         sp = 0xde8e2ca8  fp = 0xde8e2da8
kern_openat() at kern_openat+0x24c
         pc = 0xc040c5b4  lr = 0xc040c2f0 (sys_open+0x28)
         sp = 0xde8e2db0  fp = 0xde8e2db8
         r4 = 0xc2b88320  r5 = 0x00000000
         r6 = 0x20cc1198  r7 = 0x00000000
         r8 = 0xde8e2e10  r9 = 0xc2a09960
        r10 = 0x00000000
sys_open() at sys_open+0x28
         pc = 0xc040c2f0  lr = 0xc054e058 (swi_handler+0x290)
         sp = 0xde8e2dc0  fp = 0xde8e2e58
swi_handler() at swi_handler+0x290
         pc = 0xc054e058  lr = 0xc053e42c (swi_entry+0x40)
         sp = 0xde8e2e60  fp = 0xbfffe960
         r4 = 0x20c0a200  r5 = 0x000001a4
         r6 = 0x20cc1198  r7 = 0x00000005
         r8 = 0x000001a4  r9 = 0x00000001
swi_entry() at swi_entry+0x40
         pc = 0xc053e42c  lr = 0xc053e42c (swi_entry+0x40)
         sp = 0xde8e2e60  fp = 0xbfffe960
Unable to unwind further
lock order reversal:
 1st 0xc2cc0c94 ufs (ufs) @ /usr/src-releng10/sys/kern/vfs_subr.c:2101
 2nd 0xcd179c70 bufwait (bufwait) @ /usr/src-releng10/sys/ufs/ffs/ffs_vnops.c:262
 3rd 0xc2d445d4 ufs (ufs) @ /usr/src-releng10/sys/kern/vfs_subr.c:2101
KDB: stack backtrace:
db_trace_self() at db_trace_self
         pc = 0xc053cca8  lr = 0xc022ff80 (db_trace_self_wrapper+0x30)
         sp = 0xde8e2588  fp = 0xde8e26a0
        r10 = 0xc05bbc34
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
         pc = 0xc022ff80  lr = 0xc03979f4 (kdb_backtrace+0x3c)
         sp = 0xde8e26a8  fp = 0xde8e26b0
         r4 = 0xc06791f4  r5 = 0xc05a140e
         r6 = 0xc05a971f  r7 = 0xc05bbc37
kdb_backtrace() at kdb_backtrace+0x3c
         pc = 0xc03979f4  lr = 0xc03b2240 (witness_checkorder+0xd98)
         sp = 0xde8e26b8  fp = 0xde8e2708
         r4 = 0xc059037b
witness_checkorder() at witness_checkorder+0xd98
         pc = 0xc03b2240  lr = 0xc0344314 (__lockmgr_args+0x63c)
         sp = 0xde8e2710  fp = 0xde8e2768
         r4 = 0xde8e27b8  r5 = 0x00080100
         r6 = 0xc2d445d4  r7 = 0x00080000
         r8 = 0xc05a971c  r9 = 0xc2b88320
        r10 = 0x00000100
__lockmgr_args() at __lockmgr_args+0x63c
         pc = 0xc0344314  lr = 0xc04f3fdc (ffs_lock+0x80)
         sp = 0xde8e2770  fp = 0xde8e2798
         r4 = 0xde8e27b8  r5 = 0x00080100
         r6 = 0xc2d445a0  r7 = 0xc2d445d4
         r8 = 0xc2d445f4  r9 = 0x00000000
        r10 = 0xc05a971c
ffs_lock() at ffs_lock+0x80
         pc = 0xc04f3fdc  lr = 0xc0562828 (VOP_LOCK1_APV+0xdc)
         sp = 0xde8e27a0  fp = 0xde8e27b0
         r4 = 0xde8e27b8  r5 = 0xc065d390
         r6 = 0x00000000  r7 = 0x00000000
         r8 = 0xc2b88320  r9 = 0x00000835
VOP_LOCK1_APV() at VOP_LOCK1_APV+0xdc
         pc = 0xc0562828  lr = 0xc0413c64 (_vn_lock+0x78)
         sp = 0xde8e27b8  fp = 0xde8e27e8
         r4 = 0xc2d445a0  r5 = 0x00080100
         r6 = 0x00080100
_vn_lock() at _vn_lock+0x78
         pc = 0xc0413c64  lr = 0xc0404284 (vget+0x60)
         sp = 0xde8e27f0  fp = 0xde8e2810
         r4 = 0xc2d445a0  r5 = 0x00000000
         r6 = 0x00080100  r7 = 0x00000000
         r8 = 0xc2b88320  r9 = 0xc05a8980
        r10 = 0xc2a132b0
vget() at vget+0x60
         pc = 0xc0404284  lr = 0xc03f870c (vfs_hash_get+0xe8)
         sp = 0xde8e2818  fp = 0xde8e2848
         r4 = 0xc05a8980  r5 = 0x00000000
         r6 = 0x0002c452  r7 = 0x00000000
         r8 = 0xc2d445a0
vfs_hash_get() at vfs_hash_get+0xe8
         pc = 0xc03f870c  lr = 0xc04eef64 (ffs_vgetf+0x3c)
         sp = 0xde8e2850  fp = 0xde8e28a0
         r4 = 0x0002c452  r5 = 0xc05b885f
         r6 = 0xc2d42040  r7 = 0xde8e2908
         r8 = 0xc2d42040  r9 = 0x00080000
        r10 = 0xc2a132b0
ffs_vgetf() at ffs_vgetf+0x3c
         pc = 0xc04eef64  lr = 0xc04e7a98 (softdep_sync_buf+0x95c)
         sp = 0xde8e28a8  fp = 0xde8e2928
         r4 = 0x0002c452  r5 = 0xc05b885f
         r6 = 0xc2d42040  r7 = 0xc05b885f
         r8 = 0xc2d42040  r9 = 0x0000088b
        r10 = 0x0002c452
softdep_sync_buf() at softdep_sync_buf+0x95c
         pc = 0xc04e7a98  lr = 0xc04f4dcc (ffs_syncvnode+0x2c4)
         sp = 0xde8e2930  fp = 0xde8e2980
         r4 = 0x00000000  r5 = 0xcd19bda8
         r6 = 0x00000000  r7 = 0xc2cc0c60
         r8 = 0xc05bbc34  r9 = 0xcd179c70
        r10 = 0xcd179c18
ffs_syncvnode() at ffs_syncvnode+0x2c4
         pc = 0xc04f4dcc  lr = 0xc04f3e98 (ffs_fsync+0x20)
         sp = 0xde8e2988  fp = 0xde8e2998
         r4 = 0xde8e29f0  r5 = 0xc2cc0c60
         r6 = 0x00000000  r7 = 0x00000200
         r8 = 0xc2b88320  r9 = 0xc2cc0c60
        r10 = 0xc2bc9100
ffs_fsync() at ffs_fsync+0x20
         pc = 0xc04f3e98  lr = 0xc0561b44 (VOP_FSYNC_APV+0xd4)
         sp = 0xde8e29a0  fp = 0xde8e29b0
         r4 = 0xde8e29f0  r5 = 0xc065d390
         r6 = 0x00000000  r7 = 0x00000200
VOP_FSYNC_APV() at VOP_FSYNC_APV+0xd4
         pc = 0xc0561b44  lr = 0xc04fc48c (ufs_direnter+0x748)
         sp = 0xde8e29b8  fp = 0xde8e2a20
         r4 = 0xc3499a20  r5 = 0x00000000
         r6 = 0xcd42ee00
ufs_direnter() at ufs_direnter+0x748
         pc = 0xc04fc48c  lr = 0xc0505bd0 (ufs_makeinode+0x410)
         sp = 0xde8e2a28  fp = 0xde8e2b88
         r4 = 0xde8e2a48  r5 = 0xc3486c00
         r6 = 0xde8e2d48  r7 = 0x00000000
         r8 = 0xc2cc0c60  r9 = 0xde8e2d30
        r10 = 0x000081a4
ufs_makeinode() at ufs_makeinode+0x410
         pc = 0xc0505bd0  lr = 0xc0501f24 (ufs_create+0x24)
         sp = 0xde8e2b90  fp = 0xde8e2b90
         r4 = 0xde8e2c60  r5 = 0xc065d8a0
         r6 = 0x00000000  r7 = 0x00100a02
         r8 = 0x00000000  r9 = 0xde8e2d30
        r10 = 0xde8e2d50
ufs_create() at ufs_create+0x24
         pc = 0xc0501f24  lr = 0xc0560834 (VOP_CREATE_APV+0xd4)
         sp = 0xde8e2b98  fp = 0xde8e2ba8
VOP_CREATE_APV() at VOP_CREATE_APV+0xd4
         pc = 0xc0560834  lr = 0xc04134d8 (vn_open_cred+0x278)
         sp = 0xde8e2bb0  fp = 0xde8e2c90
         r4 = 0xde8e2ce0  r5 = 0xde8e2d30
         r6 = 0xc2cc0c60
vn_open_cred() at vn_open_cred+0x278
         pc = 0xc04134d8  lr = 0xc0413254 (vn_open+0x24)
         sp = 0xde8e2c98  fp = 0xde8e2ca0
         r4 = 0xc2b88320  r5 = 0xc2acb800
         r6 = 0xde8e2ce0  r7 = 0x00000012
         r8 = 0x00000000  r9 = 0x000500cf
        r10 = 0xde8e2cd0
vn_open() at vn_open+0x24
         pc = 0xc0413254  lr = 0xc040c5b4 (kern_openat+0x24c)
         sp = 0xde8e2ca8  fp = 0xde8e2da8
kern_openat() at kern_openat+0x24c
         pc = 0xc040c5b4  lr = 0xc040c2f0 (sys_open+0x28)
         sp = 0xde8e2db0  fp = 0xde8e2db8
         r4 = 0xc2b88320  r5 = 0x00000000
         r6 = 0x20cc1198  r7 = 0x00000000
         r8 = 0xde8e2e10  r9 = 0xc2a09960
        r10 = 0x00000000
sys_open() at sys_open+0x28
         pc = 0xc040c2f0  lr = 0xc054e058 (swi_handler+0x290)
         sp = 0xde8e2dc0  fp = 0xde8e2e58
swi_handler() at swi_handler+0x290
         pc = 0xc054e058  lr = 0xc053e42c (swi_entry+0x40)
         sp = 0xde8e2e60  fp = 0xbfffe960
         r4 = 0x20c0a200  r5 = 0x000001a4
         r6 = 0x20cc1198  r7 = 0x00000005
         r8 = 0x000001a4  r9 = 0x00000001
swi_entry() at swi_entry+0x40
         pc = 0xc053e42c  lr = 0xc053e42c (swi_entry+0x40)
         sp = 0xde8e2e60  fp = 0xbfffe960
Unable to unwind further


More information about the freebsd-arm mailing list