If the sale of the property results in a loss, both spouses will be responsible for the debt. They will need to work out an agreement on how to pay off the debt, or a judge may make the decision for them.