The singular solutions to a singular quadratic minimization problem