Maxima converts this integral to an integral from 0 to inf. This new integral is evaluted using resides, and maxima fails to find the roots of the denominator:

9*x^6-42*x^5+1031*x^4-1932*x^3+1031*x^2-42*x+9

Maxima erroneously returns 0 in this case.