if it is a new rock it may be giving off air trapped in side pores before it was submerged.
if the tank smells like rotten eggs the gas could be hydrogen sulfide wich can harm fish. This is produced by anaerobic bacteria in oxygen deprived enviroments(under dirty gravel beds, somtimes under rocks were waste can accumulate, and in areas were water doesn't circulate well enough).