getting a strange abort() error, debugging