By Claude:
With algebraic : true and gcd : 'subres (the only GCD algorithm that can handle algebraics), gcd with a main variable can run for minutes and then end Maxima, for polynomials that have no common factor and several radicals in their coefficients:
(%i1) display2d:false$
(%i2) (algebraic:true, gcd:'subres)$
(%i3) p:expand(((3*w+2)*sqrt(z^2+w)-3*sqrt(z^2+w)*sqrt(z+w)*x-3*sqrt(z+w)*sqrt(z^2+w)*x^2)*(z+2*sqrt(z+w)*x+(1+2*sqrt(z^2+w))*x^2))$
(%i4) q:expand((-w-3*sqrt(z)+(-2*z-3*sqrt(z^2+w)*sqrt(z))*x+x^2)*(3*(b+1)^(1/3)*sqrt(z^2+w)-b*x))$
(%i5) gcd(p,q);
(%o5) 1
(%i6) gcd(p,q,x);
Heap exhausted during garbage collection: 0 bytes available, 96 requested.
[...]
fatal error encountered in SBCL pid 27606 tid 27606:
Heap exhausted, game over.
p and q have no common factor, so gcd(p, q, x) should return 1, as gcd(p, q) does. Here SBCL's heap of 1 GB is exhausted after about 150 s.