It's possible her anal glands need expressing. The smell of that certainly is horrible.
Cats contract their anus when being petted on the back, near the tail and that can express anal gland fluid.
Please don't consider killing her til you've seen the vet. You've come so far with her, and it may be an easy fix!