runSelfTest causes segmentation fault?