can anyone give an example of a function f(x,y) for which fubini's theorem is not valid.


Nice example! Easy to integrate both sides and see they are not the same. I wouldn't have thought such an example would be so simple.
Of course, it doesn't "contradict Fubini's theorem". Fubini's theorem does not apply because integral does not satisfy the hypotheses.
Saurabmtz, Fubini's theorem requires that the integrand be continous on,
where a, b, c, and d are the limits on the appropriate integrals. This integrand is not continuous at (0, 0).