Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 2015 14:52:44 -0500
From:      Brett Wynkoop <freesbd-arm@wynn.com>
To:        freebsd-arm@freebsd.org
Subject:   Re: crash on writing usbstick
Message-ID:  <20150302145244.62d8fdb0@ivory.wynn.com>
In-Reply-To: <20150302130248.18e80010@ivory.wynn.com>
References:  <20150301041855.5352663e@ivory.wynn.com> <20150301144653.63b38cdf@ivory.wynn.com> <20150301184456.7b5e6487@ivory.wynn.com> <1DC8221F-64EA-418C-8CE5-5FFA4F3DBC64@bsdimp.com> <20150301210558.3fbdb18b@ivory.wynn.com> <A06E3230-C383-4D3E-B4D7-DCECC74595DB@bsdimp.com> <20150302011446.6743ae97@ivory.wynn.com> <7C0DC8EC-3DC5-4731-8711-45CD1E8C396C@bsdimp.com> <20150302130248.18e80010@ivory.wynn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greeting-

I just crashed while removing /export/test/foo!


FreeBSD/arm (beaglebone.wynn.com) (ttyu0)

login: Mar  2 13:06:48 beaglebone su: wynkoop to root on /dev/pts/1
aintc0: Spurious interrupt detected (0xffffffff)
aintc0: Spurious interrupt detected (0xffffffff)
Mar  2 14:31:27 beaglebone kernel: pid 842 (dd), uid 34 inumber 1765633
on /export: filesystem full dev = gpt/bbexport, block = 2969992, fs
= /export panic: ffs_blkfree_cg: freeing free block
KDB: enter: panic
[ thread pid 1192 tid 100073 ]
Stopped at      $d.7:   ldrb    r15, [r15, r15, ror r15]!
db> 

Here is the backtrace


db> tr
Tracing pid 1192 tid 100073 td 0xc2498000
db_trace_self() at db_trace_self
         pc = 0xc05ffbf0  lr = 0xc0231f78 (db_stack_trace+0x108)
         sp = 0xd51ff458  fp = 0xd51ff470
        r10 = 0xc07e3b24
db_stack_trace() at db_stack_trace+0x108
         pc = 0xc0231f78  lr = 0xc02318e8 (db_command+0x294)
         sp = 0xd51ff478  fp = 0xd51ff518
         r4 = 0x00000000  r5 = 0x00000000
         r6 = 0x00000000 r10 = 0xc07e3b24
db_command() at db_command+0x294
         pc = 0xc02318e8  lr = 0xc0231644 (db_command_loop+0x74)
         sp = 0xd51ff520  fp = 0xd51ff530
         r4 = 0xc064c9b6  r5 = 0xc066dd32
         r6 = 0xc07e3b10  r7 = 0xc0721c14
         r8 = 0xc077e1c0  r9 = 0xc077e1c4
        r10 = 0xd51ff700
db_command_loop() at db_command_loop+0x74
         pc = 0xc0231644  lr = 0xc0234128 (db_trap+0x108)
         sp = 0xd51ff538  fp = 0xd51ff658
--More--                 r4 = 0x00000000  r5 = 0xc07e3b1c
         r6 = 0xc077e1e8 r10 = 0xd51ff700
db_trap() at db_trap+0x108
         pc = 0xc0234128  lr = 0xc03dcedc (kdb_trap+0xd4)
         sp = 0xd51ff660  fp = 0xd51ff680
         r4 = 0x00000000  r5 = 0x00000001
         r6 = 0xc077e1e8  r7 = 0xc0721c14
kdb_trap() at kdb_trap+0xd4
         pc = 0xc03dcedc  lr = 0xc0614cf8 (undefinedinstruction+0x2c8)
         sp = 0xd51ff688  fp = 0xd51ff6f8
         r4 = 0x00000000  r5 = 0x00000000
         r6 = 0xc0614980  r7 = 0xe7ffffff
         r8 = 0xc2498000  r9 = 0xc03dc79c
        r10 = 0xd51ff700
undefinedinstruction() at undefinedinstruction+0x2c8
         pc = 0xc0614cf8  lr = 0xc0601310 (exception_exit)
         sp = 0xd51ff700  fp = 0xd51ff758
         r4 = 0xc066dd87  r5 = 0xd51ff79c
         r6 = 0xc068e892  r7 = 0xc0770718
         r8 = 0xc2498000  r9 = 0xc07e5c18
--More--                r10 = 0xc0770580
exception_exit() at exception_exit
         pc = 0xc0601310  lr = 0xc03dc78c (kdb_enter+0x48)
         sp = 0xd51ff750  fp = 0xd51ff758
         r0 = 0xc077e1d4  r1 = 0x00000000
         r2 = 0xc0671a3b  r3 = 0x000000aa
         r4 = 0xc066dd87  r5 = 0xd51ff79c
         r6 = 0xc068e892  r7 = 0xc0770718
         r8 = 0xc2498000  r9 = 0xc07e5c18
        r10 = 0xc0770580 r12 = 0x00000000
$a.8() at $a.8
         pc = 0xc03dc7a0  lr = 0xc03a260c (vpanic+0xd0)
         sp = 0xd51ff760  fp = 0xd51ff780
         r4 = 0x00000100 r10 = 0xc0770580
vpanic() at vpanic+0xd0
         pc = 0xc03a260c  lr = 0xc03a2660 (kproc_shutdown)
         sp = 0xd51ff788  fp = 0xd51ff790
         r4 = 0xc6e3e7d8  r5 = 0x0000297b
         r6 = 0x002d5188  r7 = 0x00000000
         r8 = 0xc6e3c000  r9 = 0xc2400000
--More--                r10 = 0x00014bd8
kproc_shutdown() at kproc_shutdown
         pc = 0xc03a2660  lr = 0xc0582938 (ffs_blkfree_trim_completed)
         sp = 0xd51ff798  fp = 0xd51ff810
         r4 = 0xd51ff79c  r5 = 0x002d5188
ffs_blkfree_trim_completed() at ffs_blkfree_trim_completed
         pc = 0xc0582938  lr = 0xc057f2ac (ffs_blkfree+0x1d4)
         sp = 0xd51ff818  fp = 0xd51ff850
         r4 = 0x00000000 r10 = 0x00000000
ffs_blkfree() at ffs_blkfree+0x1d4
         pc = 0xc057f2ac  lr = 0xc058b148 (ffs_indirtrunc+0x518)
         sp = 0xd51ff858  fp = 0xd51ff8f0
         r4 = 0x002d5188  r5 = 0x00000001
         r6 = 0xd51ff860  r7 = 0x00000000
         r8 = 0x00032500  r9 = 0xc2400000
        r10 = 0x00000000
ffs_indirtrunc() at ffs_indirtrunc+0x518
         pc = 0xc058b148  lr = 0xc058b0cc (ffs_indirtrunc+0x49c)
         sp = 0xd51ff8f8  fp = 0xd51ff990
         r4 = 0x0035e338  r5 = 0xc26d1900
--More--                 r6 = 0x0000002c  r7 = 0x00000000
         r8 = 0xfffd3ff4  r9 = 0xc2400000
        r10 = 0xffffffff
ffs_indirtrunc() at ffs_indirtrunc+0x49c
         pc = 0xc058b0cc  lr = 0xc058a440 (ffs_truncate+0x1310)
         sp = 0xd51ff998  fp = 0xd51ffb48
         r4 = 0x0035e1d8  r5 = 0xc26d1900
         r6 = 0xffffffff  r7 = 0x00000000
         r8 = 0x000000d8  r9 = 0x00000000
        r10 = 0x00000017
ffs_truncate() at ffs_truncate+0x1310
         pc = 0xc058a440  lr = 0xc05baa24 (ufs_inactive+0x198)
         sp = 0xd51ffb50  fp = 0xd51ffb70
         r4 = 0xc2707480  r5 = 0xc26d1900
         r6 = 0x00000000  r7 = 0xc24a3c80
         r8 = 0xc2498000  r9 = 0xc2707480
        r10 = 0x00000000
ufs_inactive() at ufs_inactive+0x198
         pc = 0xc05baa24  lr = 0xc062cd1c (VOP_INACTIVE_APV+0x12c)
         sp = 0xd51ffb78  fp = 0xd51ffb90
--More--                 r4 = 0xd51ffba8  r5 = 0xc0753234
         r6 = 0x00000000  r7 = 0xc24a3c80
VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0x12c
         pc = 0xc062cd1c  lr = 0xc044a9fc (vinactive+0xc8)
         sp = 0xd51ffb98  fp = 0xd51ffbd0
         r4 = 0xc2707480  r5 = 0x00000002
         r6 = 0xc27074e4 r10 = 0x00000000
vinactive() at vinactive+0xc8
         pc = 0xc044a9fc  lr = 0xc044ae08 (vputx+0x2b4)
         sp = 0xd51ffbd8  fp = 0xd51ffc08
         r4 = 0xc2707480  r5 = 0x00000002
         r6 = 0xc27074e4  r7 = 0x00000000
         r8 = 0xc067d980  r9 = 0xc2707480
vputx() at vputx+0x2b4
         pc = 0xc044ae08  lr = 0xc0453aa4 (kern_unlinkat+0x1e8)
         sp = 0xd51ffc10  fp = 0xd51ffd80
         r4 = 0xd51ffcb0  r5 = 0xc2498000
         r6 = 0xbffff9ef  r7 = 0xffffff9c
         r8 = 0x00000000 r10 = 0x00000000
kern_unlinkat() at kern_unlinkat+0x1e8
--More--                 pc = 0xc0453aa4  lr = 0xc04538b4 (sys_unlink+0x24)
         sp = 0xd51ffd88  fp = 0xd51ffd90
         r4 = 0xc2498000  r5 = 0x00000000
         r6 = 0xc07e5900  r7 = 0x00000000
         r8 = 0xd51ffdf8  r9 = 0xc1d07378
        r10 = 0x0000a48a
sys_unlink() at sys_unlink+0x24
         pc = 0xc04538b4  lr = 0xc0613980 (swi_handler+0x2e4)
         sp = 0xd51ffd98  fp = 0xd51ffe48
swi_handler() at swi_handler+0x2e4
         pc = 0xc0613980  lr = 0xc06012a0 (swi_exit)
         sp = 0xd51ffe50  fp = 0xbffff7e0
         r4 = 0xbffff748  r5 = 0xbffff9ef
         r6 = 0x000127a0  r7 = 0x0000000a
         r8 = 0x00000001  r9 = 0x0000a48d
        r10 = 0x0000a48a
swi_exit() at swi_exit
         pc = 0xc06012a0  lr = 0xc06012a0 (swi_exit)
         sp = 0xd51ffe50  fp = 0xbffff7e0
db> 

Do you guys think this is either arm or BBone specific, or maybe a
general filesystem issue?  I have not used UFS on FreeBSD for years.
My 10.x X86 boxes are all running zfs, even on root.

If it seems general filesystem maybe we should ask Kirk to have a
look.

-Brett


-- 

wynkoop@wynn.com               http://prd4.wynn.com/wynkoop/pgp-keys.txt
917-642-6925
929-272-0000

Amendment I

Congress shall make no law respecting an establishment of religion, or 
prohibiting the free exercise thereof; or abridging the freedom of 
speech, or of the press; or the right of the people peaceably to
assemble, and to petition the government for a redress of grievances.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150302145244.62d8fdb0>