I have a 98 XJ with a 178K and today was the first time it has stalled. It starts right up and the idle is fairly smooth, zero hesitation when I give it gas but as soon as I let off the gas it starts to sputter and die. If I give it more gas then it will be fine but once it goes back down to idle it dies. It will start right back up and idle fine as long as I don't take the RPM's up. I did notice a weird tapping sound coming from the passenger side of the engine, not sure where exactly it was coming from though. The gas gauge likes to take its time reading anything too. After a few min it will read normally but the needle takes a few mins to move. It has been sitting for a while but I have been letting it run. The gas that is in there has been in the tank since last Aug. The breaks went out then and I have been slowly fixing them so I don't know if bad gas can cause something like this to happen.