some sort of stomach issue, I would guess.
I suppose if the cancer has spread to the intestines, any food you are able to take in is not processing normally. That will cause fermentation and stink when you pass gas. Personally I thought all farts were stinky. :-) But you must mean different or worse than normal. When I had an intestinal infection a few years ago, my gas and stools were pretty disgusting.