Hrm. The mds is dereferenced whenever MDSTable uses dout. I rather presume that's busted here if you actually turn on mds debugging? That'll need to be fixed.