Existence and nonexistence for a singular boundary value problem