Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Nov 2013 11:15:16 -0500
From:      Allan Jude <freebsd@allanjude.com>
To:        freebsd-current@freebsd.org
Subject:   Re: (r257598) panic: Assertion tmp->tm_pages_used == 0 failed at /usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_vfsops.c:316
Message-ID:  <5277C814.2010607@allanjude.com>
In-Reply-To: <5277B0A5.5010506@FreeBSD.org>
References:  <5277B0A5.5010506@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--BO6fwGsJ1CaTDhL7ChaLdtnQjBmsQppp6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 2013-11-04 09:35, Bryan Drewery wrote:
> 11.0-CURRENT #87 r257598
>
> During a poudriere build.
>
> It creates a tmpfs, builds a port in a jail using that tmpfs and then
> removes the tmpfs and recreate the tmpfs before building the next port.=

>
>> panic: Assertion tmp->tm_pages_used =3D=3D 0 failed at /usr/src/sys/mo=
dules/tmpfs/../../fs/tmpfs/tmpfs_vfsops.c:316
>> cpuid =3D 9
>> KDB: stack backtrace:
>> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe12=
47ee57a0
>> kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe1247ee5850
>> vpanic() at vpanic+0x126/frame 0xfffffe1247ee5890
>> kassert_panic() at kassert_panic+0x136/frame 0xfffffe1247ee5900
>> tmpfs_unmount() at tmpfs_unmount+0x163/frame 0xfffffe1247ee5930
>> dounmount() at dounmount+0x41f/frame 0xfffffe1247ee59b0
>> sys_unmount() at sys_unmount+0x356/frame 0xfffffe1247ee5ae0
>> amd64_syscall() at amd64_syscall+0x265/frame 0xfffffe1247ee5bf0
>> Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe1247ee5bf0
>> --- syscall (22, FreeBSD ELF64, sys_unmount), rip =3D 0x8008a02fa, rsp=
 =3D 0x7fffffffd198, rbp =3D 0x7fffffffd2b0 ---
>> Uptime: 44m40s
>> (kgdb) #0  doadump (textdump=3D1) at pcpu.h:219
>> #1  0xffffffff808bcf87 in kern_reboot (howto=3D260)
>>     at /usr/src/sys/kern/kern_shutdown.c:447
>> #2  0xffffffff808bd495 in vpanic (fmt=3D<value optimized out>,
>>     ap=3D<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:7=
54
>> #3  0xffffffff808bd326 in kassert_panic (fmt=3D<value optimized out>)
>>     at /usr/src/sys/kern/kern_shutdown.c:642
>> #4  0xffffffff81e159d3 in tmpfs_unmount (mp=3D0xfffff810502cd660,
>>     mntflags=3D<value optimized out>)
>>     at /usr/src/sys/modules/tmpfs/../../fs/tmpfs/tmpfs_vfsops.c:316
>> #5  0xffffffff8095e1af in dounmount (mp=3D0xfffff810502cd660, flags=3D=
134742016,
>>     td=3D0xfffff8013d57a490) at /usr/src/sys/kern/vfs_mount.c:1324
>> #6  0xffffffff8095dd66 in sys_unmount (td=3D0xfffff8013d57a490,
>>     uap=3D0xfffffe1247ee5b80) at /usr/src/sys/kern/vfs_mount.c:1212
>> #7  0xffffffff80cb7d75 in amd64_syscall (td=3D0xfffff8013d57a490, trac=
ed=3D0)
>>     at subr_syscall.c:134
>> #8  0xffffffff80c9c90b in Xfast_syscall ()
>>     at /usr/src/sys/amd64/amd64/exception.S:391
>> #9  0x00000008008a02fa in ?? ()
>

Not sure if it is related, but I had a similar looking panic on a
10.0-BETA1 machine after doing a zfs receive:


 Fatal trap 12: page fault while in kernel mode
 cpuid =3D 5; apic id =3D 05
 fault virtual address     =3D 0x378
 fault code                =3D supervisor read data, page not present
 instruction pointer       =3D 0x20:0xffffffff8089bf51
 stack pointer             =3D 0x28:0xfffffe1835d715d0
 frame pointer             =3D 0x28:0xfffffe1835d71650
 code segment              =3D base 0x0, limit 0xfffff, type 0x1b
 =3D DPL 0, pres 1, long 1, def32 0, gran 1
 processor eflags  =3D interrupt enabled, resume, IOPL =3D 0
 current process           =3D 44435 (zfs)
 trap number               =3D 12
 panic: page fault
 cpuid =3D 5
 KDB: stack backtrace:
 #0 0xffffffff808e7580 at kdb_backtrace+0x60
 #1 0xffffffff808af065 at panic+0x155
 #2 0xffffffff80c8e292 at trap_fatal+0x3a2
 #3 0xffffffff80c8e569 at trap_pfault+0x2c9
 #4 0xffffffff80c8dcf6 at trap+0x5e6
 #5 0xffffffff80c75022 at calltrap+0x8
 #6 0xffffffff8094a32b at vflush+0x48b
 #7 0xffffffff8189e682 at zfs_umount+0x112
 #8 0xffffffff809434f5 at dounmount+0x4b5
 #9 0xffffffff80943004 at sys_unmount+0x3d4
 #10 0xffffffff80c8eb87 at amd64_syscall+0x357
 #11 0xffffffff80c7530b at Xfast_syscall+0xfb


--=20
Allan Jude



--BO6fwGsJ1CaTDhL7ChaLdtnQjBmsQppp6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSd8gbAAoJEJrBFpNRJZKfdUkP/1mbauwQzd3xjXUqy0dRSjeh
sp46/SBGNn4+XVsFoBwyOu4fsLwARZt6S73GXj4t5Ct8EmPW2XLu5omViMH+uj5P
Lt5jfDjDJSZ5tkvqKce0huox3JwgWFPBK9DBOvYPHPtaH0F45o2dqBm46ZlxWebs
h5SmVtbJCpHR9Cr+otNyWgAGXj7TjLGyHfzHlq1O/5HXzRYjG9m99KNMFO2uU7Ij
gQzXlMU5tWpXrqslXru43Cbzk1PXDvptfUrj3bhAMpQ94zFx8vnoKp/bZwHYluO0
LpsQrsPVpaFijD+J35QEQLQo5+RBY1LGkdXX7GPf2pxP0/eRpAnTnIf3UXLF7oy6
KifC1os2NZZgLQCN8FDahU02wcesdcqlgtvKZubaDo9Yat7v69eU7F10JvLi92H6
4pyTPIg7hqQVxwuIES+CFvIilMckCOWRx+WIWO9j2aE80K9fEi84KV/Mgv0rHtet
ayyW2XluYnt1conNck0XieCsepLDI6/iWIsVLzTNKNZowwB5Snb1OzVBeyZibLDV
VZu8grApkFc4wBWJcTIEJJjz5f/uPmTTsmKlv5f46rwyQ5UKsiwhClWKUU6z7sJQ
t75+TK3CyyXPu3N8kKTTPy7HhIrscE9eiOHhjpWVBc65DZ0urmp7eDVZNEC+G3ov
TVyBZ6dKgKwfRmw3inve
=nciv
-----END PGP SIGNATURE-----

--BO6fwGsJ1CaTDhL7ChaLdtnQjBmsQppp6--



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