Turns out that the seg fault was becuase of an error in the unit test. Oh well.