A foreign obstruction can also lead to an infection that will produce yellow mucus in the dog's stool. Colon cancer can ...