The singular sets of a complex of modules