Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2015 22:20:42 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Brett Wynkoop <freebsd-arm@wynn.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: crash on writing usbstick
Message-ID:  <A06E3230-C383-4D3E-B4D7-DCECC74595DB@bsdimp.com>
In-Reply-To: <20150301210558.3fbdb18b@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>

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

--Apple-Mail=_28C3BD97-93E1-4576-AB89-25D5DE30E6F6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Mar 1, 2015, at 7:05 PM, Brett Wynkoop <freebsd-arm@wynn.com> =
wrote:
>=20
> On Sun, 1 Mar 2015 16:55:59 -0700
> Warner Losh <imp@bsdimp.com> wrote:
>=20
>> Your filesystem looks messed up. Panics are likely to haunt you.
>> You=E2=80=99ll need to newfs it and reload the data.
>>=20
>> Also, it would be great if you could type =E2=80=98tr=E2=80=99 to the =
db> prompt to
>> get a call stack traceback. That would be quite helpful.
>=20
> Greeting-
>=20
> As I suspected doing the newfs on my /export partation was a wild =
goose
> chase.

I didn=E2=80=99t say it would prevent the crash. it just made sure that =
subsequent
crashes weren=E2=80=99t the result of the first one messing up your =
filesystem.

> rsync from /usr/ports to /export/ports caused another crash.  Here is
> the backtrace capture:

What=E2=80=99s the panic? Judging from the traceback, it is tripping =
over some
assert or test for bogus state. Is it another dup alloc panic? =
ffs_valloc isn=E2=80=99t
on the stack, but that doesn=E2=80=99t mean much...

> Tracing pid 1047 tid 100093 td 0xc272e660
> db_trace_self() at db_trace_self
>         pc =3D 0xc05ffbf0  lr =3D 0xc0231f78 (db_stack_trace+0x108)
>         sp =3D 0xd4892660  fp =3D 0xd4892678
>        r10 =3D 0xd4892908
> db_stack_trace() at db_stack_trace+0x108
>         pc =3D 0xc0231f78  lr =3D 0xc02318e8 (db_command+0x294)
>         sp =3D 0xd4892680  fp =3D 0xd4892720
>         r4 =3D 0xc064c9b6  r5 =3D 0x00000000
>         r6 =3D 0xc07e3b10 r10 =3D 0xd4892908
> db_command() at db_command+0x294
>         pc =3D 0xc02318e8  lr =3D 0xc0231644 (db_command_loop+0x74)
>         sp =3D 0xd4892728  fp =3D 0xd4892738
>         r4 =3D 0xc064c9b6  r5 =3D 0xc066dd32
>         r6 =3D 0xc07e3b10  r7 =3D 0xc0721c14
>         r8 =3D 0xc077e1c0  r9 =3D 0xc077e1c4
>        r10 =3D 0xd4892908
> db_command_loop() at db_command_loop+0x74
>         pc =3D 0xc0231644  lr =3D 0xc0234128 (db_trap+0x108)
>         sp =3D 0xd4892740  fp =3D 0xd4892860
> --More--                 r4 =3D 0x00000000  r5 =3D 0xc07e3b1c
>         r6 =3D 0xc077e1e8 r10 =3D 0xd4892908
> db_trap() at db_trap+0x108
>         pc =3D 0xc0234128  lr =3D 0xc03dcedc (kdb_trap+0xd4)
>         sp =3D 0xd4892868  fp =3D 0xd4892888
>         r4 =3D 0x00000000  r5 =3D 0x00000001
>         r6 =3D 0xc077e1e8  r7 =3D 0xc0721c14
> kdb_trap() at kdb_trap+0xd4
>         pc =3D 0xc03dcedc  lr =3D 0xc0614cf8 =
(undefinedinstruction+0x2c8)
>         sp =3D 0xd4892890  fp =3D 0xd4892900
>         r4 =3D 0x00000000  r5 =3D 0x00000000
>         r6 =3D 0xc0614980  r7 =3D 0xe7ffffff
>         r8 =3D 0xc272e660  r9 =3D 0xc03dc79c
>        r10 =3D 0xd4892908
> undefinedinstruction() at undefinedinstruction+0x2c8
>         pc =3D 0xc0614cf8  lr =3D 0xc0601310 (exception_exit)
>         sp =3D 0xd4892908  fp =3D 0xd4892960
>         r4 =3D 0xc066dd87  r5 =3D 0xd48929a4
>         r6 =3D 0xc068e208  r7 =3D 0xc0770718
>         r8 =3D 0xc272e660  r9 =3D 0xc07e5c18
> --More--                r10 =3D 0xc0770580
> exception_exit() at exception_exit
>         pc =3D 0xc0601310  lr =3D 0xc03dc78c (kdb_enter+0x48)
>         sp =3D 0xd4892958  fp =3D 0xd4892960
>         r0 =3D 0xc077e1d4  r1 =3D 0x00000000
>         r2 =3D 0xc0671a3b  r3 =3D 0x000000aa
>         r4 =3D 0xc066dd87  r5 =3D 0xd48929a4
>         r6 =3D 0xc068e208  r7 =3D 0xc0770718
>         r8 =3D 0xc272e660  r9 =3D 0xc07e5c18
>        r10 =3D 0xc0770580 r12 =3D 0x00000000
> $a.8() at $a.8
>         pc =3D 0xc03dc7a0  lr =3D 0xc03a260c (vpanic+0xd0)
>         sp =3D 0xd4892968  fp =3D 0xd4892988
>         r4 =3D 0x00000100 r10 =3D 0xc0770580
> vpanic() at vpanic+0xd0
>         pc =3D 0xc03a260c  lr =3D 0xc03a2660 (kproc_shutdown)
>         sp =3D 0xd4892990  fp =3D 0xd4892998
>         r4 =3D 0xc266d000  r5 =3D 0xd4892b84
>         r6 =3D 0x000759c4  r7 =3D 0xc34a7480
>         r8 =3D 0x00000000  r9 =3D 0x000041c0
> --More--                r10 =3D 0xc266d000
> kproc_shutdown() at kproc_shutdown
>         pc =3D 0xc03a2660  lr =3D 0xc0581018 (ffs_nodealloccg)
>         sp =3D 0xd48929a0  fp =3D 0xd4892a30
>         r4 =3D 0xd48929a4  r5 =3D 0xc266d000
> ffs_nodealloccg() at ffs_nodealloccg
>         pc =3D 0xc0581018  lr =3D 0xc05c4cf4 (ufs_mkdir+0x6c)
>         sp =3D 0xd4892a38  fp =3D 0xd4892bc0
>         r4 =3D 0x000041c0  r5 =3D 0xc2857900
>         r6 =3D 0xd4892d48  r7 =3D 0xc0580818
>         r8 =3D 0x00000000  r9 =3D 0xc2f81880
>        r10 =3D 0xd4892c80
> ufs_mkdir() at ufs_mkdir+0x6c
>         pc =3D 0xc05c4cf4  lr =3D 0xc062c514 (VOP_MKDIR_APV+0x12c)
>         sp =3D 0xd4892bc8  fp =3D 0xd4892be0
>         r4 =3D 0xd4892d48  r5 =3D 0xc0753234
>         r6 =3D 0x00000000  r7 =3D 0xbfffdecc
>         r8 =3D 0x00000000  r9 =3D 0x00000000
>        r10 =3D 0xd4892c88
> VOP_MKDIR_APV() at VOP_MKDIR_APV+0x12c
> --More--                 pc =3D 0xc062c514  lr =3D 0xc04568c0 =
(kern_mkdirat+0x194)
>         sp =3D 0xd4892be8  fp =3D 0xd4892d80
>         r4 =3D 0xd4892c18  r5 =3D 0xd4892cb0
>         r6 =3D 0xd4892d44 r10 =3D 0xd4892c88
> kern_mkdirat() at kern_mkdirat+0x194
>         pc =3D 0xc04568c0  lr =3D 0xc0456724 (sys_mkdir+0x24)
>         sp =3D 0xd4892d88  fp =3D 0xd4892d90
>         r4 =3D 0xc272e660  r5 =3D 0x00000000
>         r6 =3D 0xc07e5900  r7 =3D 0x00000000
>         r8 =3D 0xd4892df8  r9 =3D 0xc27206f0
>        r10 =3D 0xffffffff
> sys_mkdir() at sys_mkdir+0x24
>         pc =3D 0xc0456724  lr =3D 0xc0613980 (swi_handler+0x2e4)
>         sp =3D 0xd4892d98  fp =3D 0xd4892e48
> swi_handler() at swi_handler+0x2e4
>         pc =3D 0xc0613980  lr =3D 0xc06012a0 (swi_exit)
>         sp =3D 0xd4892e50  fp =3D 0xbfffdea0
>         r4 =3D 0x23392458  r5 =3D 0x2080c0c8
>         r6 =3D 0x2080c0c8  r7 =3D 0x00000088
>         r8 =3D 0xffffffff  r9 =3D 0x23392458
> --More--                r10 =3D 0xffffffff
> swi_exit() at swi_exit
>         pc =3D 0xc06012a0  lr =3D 0xc06012a0 (swi_exit)
>         sp =3D 0xd4892e50  fp =3D 0xbfffdea0
> db> tr
> Tracing pid 1047 tid 100093 td 0xc272e660
> db_trace_self() at db_trace_self
>         pc =3D 0xc05ffbf0  lr =3D 0xc0231f78 (db_stack_trace+0x108)
>         sp =3D 0xd4892660  fp =3D 0xd4892678
>        r10 =3D 0xc07e3b24
> db_stack_trace() at db_stack_trace+0x108
>         pc =3D 0xc0231f78  lr =3D 0xc02318e8 (db_command+0x294)
>         sp =3D 0xd4892680  fp =3D 0xd4892720
>         r4 =3D 0x00000000  r5 =3D 0x00000000
>         r6 =3D 0x00000000 r10 =3D 0xc07e3b24
> db_command() at db_command+0x294
>         pc =3D 0xc02318e8  lr =3D 0xc0231644 (db_command_loop+0x74)
>         sp =3D 0xd4892728  fp =3D 0xd4892738
>         r4 =3D 0xc064c9b6  r5 =3D 0xc066dd32
>         r6 =3D 0xc07e3b10  r7 =3D 0xc0721c14
>         r8 =3D 0xc077e1c0  r9 =3D 0xc077e1c4
>        r10 =3D 0xd4892908
> db_command_loop() at db_command_loop+0x74
>         pc =3D 0xc0231644  lr =3D 0xc0234128 (db_trap+0x108)
>         sp =3D 0xd4892740  fp =3D 0xd4892860
> --More--                 r4 =3D 0x00000000  r5 =3D 0xc07e3b1c
>         r6 =3D 0xc077e1e8 r10 =3D 0xd4892908
> db_trap() at db_trap+0x108
>         pc =3D 0xc0234128  lr =3D 0xc03dcedc (kdb_trap+0xd4)
>         sp =3D 0xd4892868  fp =3D 0xd4892888
>         r4 =3D 0x00000000  r5 =3D 0x00000001
>         r6 =3D 0xc077e1e8  r7 =3D 0xc0721c14
> kdb_trap() at kdb_trap+0xd4
>         pc =3D 0xc03dcedc  lr =3D 0xc0614cf8 =
(undefinedinstruction+0x2c8)
>         sp =3D 0xd4892890  fp =3D 0xd4892900
>         r4 =3D 0x00000000  r5 =3D 0x00000000
>         r6 =3D 0xc0614980  r7 =3D 0xe7ffffff
>         r8 =3D 0xc272e660  r9 =3D 0xc03dc79c
>        r10 =3D 0xd4892908
> undefinedinstruction() at undefinedinstruction+0x2c8
>         pc =3D 0xc0614cf8  lr =3D 0xc0601310 (exception_exit)
>         sp =3D 0xd4892908  fp =3D 0xd4892960
>         r4 =3D 0xc066dd87  r5 =3D 0xd48929a4
>         r6 =3D 0xc068e208  r7 =3D 0xc0770718
>         r8 =3D 0xc272e660  r9 =3D 0xc07e5c18
> --More--                r10 =3D 0xc0770580
> exception_exit() at exception_exit
>         pc =3D 0xc0601310  lr =3D 0xc03dc78c (kdb_enter+0x48)
>         sp =3D 0xd4892958  fp =3D 0xd4892960
>         r0 =3D 0xc077e1d4  r1 =3D 0x00000000
>         r2 =3D 0xc0671a3b  r3 =3D 0x000000aa
>         r4 =3D 0xc066dd87  r5 =3D 0xd48929a4
>         r6 =3D 0xc068e208  r7 =3D 0xc0770718
>         r8 =3D 0xc272e660  r9 =3D 0xc07e5c18
>        r10 =3D 0xc0770580 r12 =3D 0x00000000
> $a.8() at $a.8
>         pc =3D 0xc03dc7a0  lr =3D 0xc03a260c (vpanic+0xd0)
>         sp =3D 0xd4892968  fp =3D 0xd4892988
>         r4 =3D 0x00000100 r10 =3D 0xc0770580
> vpanic() at vpanic+0xd0
>         pc =3D 0xc03a260c  lr =3D 0xc03a2660 (kproc_shutdown)
>         sp =3D 0xd4892990  fp =3D 0xd4892998
>         r4 =3D 0xc266d000  r5 =3D 0xd4892b84
>         r6 =3D 0x000759c4  r7 =3D 0xc34a7480
>         r8 =3D 0x00000000  r9 =3D 0x000041c0
> --More--                r10 =3D 0xc266d000
> kproc_shutdown() at kproc_shutdown
>         pc =3D 0xc03a2660  lr =3D 0xc0581018 (ffs_nodealloccg)
>         sp =3D 0xd48929a0  fp =3D 0xd4892a30
>         r4 =3D 0xd48929a4  r5 =3D 0xc266d000
> ffs_nodealloccg() at ffs_nodealloccg
>         pc =3D 0xc0581018  lr =3D 0xc05c4cf4 (ufs_mkdir+0x6c)
>         sp =3D 0xd4892a38  fp =3D 0xd4892bc0
>         r4 =3D 0x000041c0  r5 =3D 0xc2857900
>         r6 =3D 0xd4892d48  r7 =3D 0xc0580818
>         r8 =3D 0x00000000  r9 =3D 0xc2f81880
>        r10 =3D 0xd4892c80
> ufs_mkdir() at ufs_mkdir+0x6c
>         pc =3D 0xc05c4cf4  lr =3D 0xc062c514 (VOP_MKDIR_APV+0x12c)
>         sp =3D 0xd4892bc8  fp =3D 0xd4892be0
>         r4 =3D 0xd4892d48  r5 =3D 0xc0753234
>         r6 =3D 0x00000000  r7 =3D 0xbfffdecc
>         r8 =3D 0x00000000  r9 =3D 0x00000000
>        r10 =3D 0xd4892c88
> VOP_MKDIR_APV() at VOP_MKDIR_APV+0x12c
> --More--                 pc =3D 0xc062c514  lr =3D 0xc04568c0 =
(kern_mkdirat+0x194)
>         sp =3D 0xd4892be8  fp =3D 0xd4892d80
>         r4 =3D 0xd4892c18  r5 =3D 0xd4892cb0
>         r6 =3D 0xd4892d44 r10 =3D 0xd4892c88
> kern_mkdirat() at kern_mkdirat+0x194
>         pc =3D 0xc04568c0  lr =3D 0xc0456724 (sys_mkdir+0x24)
>         sp =3D 0xd4892d88  fp =3D 0xd4892d90
>         r4 =3D 0xc272e660  r5 =3D 0x00000000
>         r6 =3D 0xc07e5900  r7 =3D 0x00000000
>         r8 =3D 0xd4892df8  r9 =3D 0xc27206f0
>        r10 =3D 0xffffffff
> sys_mkdir() at sys_mkdir+0x24
>         pc =3D 0xc0456724  lr =3D 0xc0613980 (swi_handler+0x2e4)
>         sp =3D 0xd4892d98  fp =3D 0xd4892e48
> swi_handler() at swi_handler+0x2e4
>         pc =3D 0xc0613980  lr =3D 0xc06012a0 (swi_exit)
>         sp =3D 0xd4892e50  fp =3D 0xbfffdea0
>         r4 =3D 0x23392458  r5 =3D 0x2080c0c8
>         r6 =3D 0x2080c0c8  r7 =3D 0x00000088
>         r8 =3D 0xffffffff  r9 =3D 0x23392458
> --More--                r10 =3D 0xffffffff
> swi_exit() at swi_exit
>         pc =3D 0xc06012a0  lr =3D 0xc06012a0 (swi_exit)
>         sp =3D 0xd4892e50  fp =3D 0xbfffdea0
> db>

thanks!

Warner


--Apple-Mail=_28C3BD97-93E1-4576-AB89-25D5DE30E6F6
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJU8/MrAAoJEGwc0Sh9sBEAaegP/iPtsThY3QGatEdgEWzsM808
nbI48OGZXAMhfM/Xnr8p+D1IdOq1K6qbwbvyGin1M7VKNfy9o6uZav0DuB6qkbUz
ROaicJLeRImwAG7hIF2/KX4j7N8PITyY5zeHjuoVtM8oOofYAz/oKQh1rew7PxMF
lwYpKMHnThukbWoE9nAbGIK4nAgQh7yZECbj8+TSFpF5N7b57KlfQdIafTqlEVf4
DGMVTB3rgmRWaYZ6QnHzjRq4r6PiCsbZ3oCXOztChsqXMdC73ZF99Evaej3J3i64
qtJdtwhzxAdKZMjVtYs3CWOHo30FKkqiqi6J3CbErSI/Y/RUBY/1tuBWwlIopKWU
6ulzYD3Eh1EEq79s6zihzd9NE+uF5S4zUQ1LTVhGpg20p+tH8sWCvWr2HXlaknwE
kmdmw7EPVxGAwNQGrcvEoRk8XPJsKrfnglel44nDLGr01l2gs7JoBQWHZp1S3PXE
VhS9nQE3SCILYTVkUGYthkM4+UaxFFyoLTO38nsBUDPG4WRLpjCIpfV4BII4PHO+
VAMwmhFvpynQUVbyRTyiCbTNTodEZW3daAaQet/R8Gtp3sN4QnnoaK/1XTeWuteV
Kbl2KaOc499a+esgtaHml+rMormIDdFLiv1dIUbS1N1TuLcOqJkiOii0h112GXa7
46fCCiyPiiWpyHKZNeQi
=PtQm
-----END PGP SIGNATURE-----

--Apple-Mail=_28C3BD97-93E1-4576-AB89-25D5DE30E6F6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A06E3230-C383-4D3E-B4D7-DCECC74595DB>