Consider a function $f(z)$ of a complex variable $z=re^{i\theta}$ given by $f(z)=-|z|^2+|z|^4$. This function, when plotted gives the famous mexican hat potential with the minima lying on a circle $r=1/\sqrt{2}$.
But the minimisation condition requires $f_{rr}>0$ and $D\equiv f_{rr}f_{\theta\theta}-f^2_{r\theta}>0$. But in this case, it turns out that $D=0$ for all values of $z$ since $f(z)=f(|z|)=f(r)$.
How does this clash with the minimization requirement?
$D$ is the determinant of the Hessian matrix. For the mexican hat, you don't have a point minimum, but a whole 1-dimensional subspace of minima. In this case, the Hessian will be zero along the tangent of this subspace. Thus, the whole 2x2 Hessian will be degenerate, having 0 among its eigenvalues, and its determinant is surely 0.