J.C.
its the washer. more then likely it has not been cleaned regularly and now has mildew down in the drum. You can try cleaning it, but with my old top loader I ended up having to replace it. I now know a lot more about washer care and I run a cleaning load (just bleach, no cloths) every 30 washes. My new front loader as a "clean" setting you use for it to self clean, and it reminds you after every 30 washes to do it. If the washer is old and the smell has been an issue for a while (as was the case with my old top loader) you may not be able to get the smell out no matter how much bleach you use, and liquid fabric softener can actually increase the problem. I know it is not what you want to hear, but it sounds like it may be time for a new washer.