Does bad gas indicate a medical problem?

Not by itself. This might indicate your diet, that you are intolerant to certain foods like beans, and other vegetables, etc., but by itself, is not an indicator of a medical problem. However, if there is a large change in bowel habits, and weakness, along with other symptoms. Like gas, then you might want to get your bowels checked out to rule out conditions like colon cancer, and the like.