Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 2008 21:31:04 -0500
From:      Alec Kloss <alec-dated-1217903464.fbea22@SetFilePointer.com>
To:        afs@freebsd.org, arla-drinkers@stacken.kth.se, Robert Watson <rwatson@freebsd.org>, Ben Kaduk <minimarmot@gmail.com>
Subject:   Re: Patches to get Arla running on FreeBSD 8-CURRENT
Message-ID:  <20080731023104.GD20912@hamlet.SetFilePointer.com>
In-Reply-To: <20080730022345.GA20912@hamlet.SetFilePointer.com>
References:  <20080223102922.GF38141@hamlet.setfilepointer.com> <20080223110549.GG38141@hamlet.setfilepointer.com> <20080223161249.GH38141@hamlet.setfilepointer.com> <90334B40754BEDC2991E0147@ganymede.hub.org> <p0624081bc3e936674ece@128.113.24.47> <20080226061140.GI28956@hamlet.SetFilePointer.com> <47d0403c0807152152j7c452b3cp275f8015da783542@mail.gmail.com> <20080716114118.GJ71954@hamlet.SetFilePointer.com> <47d0403c0807161443l4f002f17ibc1e5bfea4b925cd@mail.gmail.com> <20080730022345.GA20912@hamlet.SetFilePointer.com>

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

--FFoLq8A0u+X9iRU8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've rebuilt everything and now there's a panic trying to mount
nnpfs:

(kgdb) bt
#0  doadump () at pcpu.h:196
#1  0xc079431e in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4=
18
#2  0xc07945e3 in panic (fmt=3DVariable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:572
#3  0xc0496107 in db_panic (addr=3DCould not find the frame base for "db_pa=
nic".
) at /usr/src/sys/ddb/db_command.c:446
#4  0xc0496b38 in db_command (last_cmdp=3D0xc0c5e9f0, cmd_table=3D0x0, dopa=
ger=3D1)
    at /usr/src/sys/ddb/db_command.c:413
#5  0xc0496c6a in db_command_loop () at /usr/src/sys/ddb/db_command.c:466
#6  0xc049845d in db_trap (type=3D12, code=3D0) at /usr/src/sys/ddb/db_main=
.c:228
#7  0xc07c1746 in kdb_trap (type=3D12, code=3D0, tf=3D0xc89b682c)
    at /usr/src/sys/kern/subr_kdb.c:534
#8  0xc0ab8e6f in trap_fatal (frame=3D0xc89b682c, eva=3D0) at /usr/src/sys/=
i386/i386/trap.c:925
#9  0xc0ab90a3 in trap_pfault (frame=3D0xc89b682c, usermode=3D0, eva=3D0)
    at /usr/src/sys/i386/i386/trap.c:847
#10 0xc0ab9aa8 in trap (frame=3D0xc89b682c) at /usr/src/sys/i386/i386/trap.=
c:525
#11 0xc0a9da9b in calltrap () at /usr/src/sys/i386/i386/exception.s:165
#12 0xc08116be in vfs_filteropt (opts=3D0x0, legal=3D0xc2066418)
    at /usr/src/sys/kern/vfs_mount.c:1818
#13 0xc205d2d2 in nnpfs_mount_freebsd () from /usr/local/arla/bin/nnpfs.ko
#14 0xc0813711 in vfs_donmount (td=3D0xc1ebd690, fsflags=3D0, fsoptions=3D0=
xc89b6c18)
    at /usr/src/sys/kern/vfs_mount.c:1010
#15 0xc0813d78 in kernel_mount (ma=3D0xc1ddaa60, flags=3D0) at /usr/src/sys=
/kern/vfs_mount.c:2291
#16 0xc205d47d in nnpfs_cmount_freebsd () from /usr/local/arla/bin/nnpfs.ko
#17 0xc0811c67 in mount (td=3D0xc1ebd690, uap=3D0xc89b6cf8) at /usr/src/sys=
/kern/vfs_mount.c:816
#18 0xc0ab9384 in syscall (frame=3D0xc89b6d38) at /usr/src/sys/i386/i386/tr=
ap.c:1081
#19 0xc0a9db00 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s=
:261
#20 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)

I can confirm using kgdb on the crash dump that mp->mnt_optnew in
vfs_filteropt is indeed NULL, but so far I can't figure out why.
Going into vfs_donmount (frame 14) shows that optlist is non-null.
I don't quite see why there's no stack frame for the call to
vfs_domount()---maybe because it's in the same module it's
suppressed?--- but regardless, I don't see any way to get to
calling VFS_MOUNT without mp->mnt_optnew being set to fsdata, which=20
is the same pointer as optlist is in vfs_donmount(). =20

Help?  Am I missing something obvious?  Interactive kgdb doesn't show
a separate stack frame for vfs_domount() either, so I can't
meaningfully inspect any variables there either...

--=20
Alec Kloss  alec@SetFilePointer.com   IM: angryspamhater@yahoo.com
PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E
"No Bunny!" -- Simon, from Frisky Dingo

--FFoLq8A0u+X9iRU8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFIkSPo2s33paJBmA4RAu05AJ4l20ra9xeNR2Jr7O6i4nVzjDOPrQCgiJ8s
ZY041WWL86ehdO0t/87KVXQ=
=Vf99
-----END PGP SIGNATURE-----

--FFoLq8A0u+X9iRU8--



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