Debugging kernel crash in covariance matrix code