I am running into this problem. I attached a testcase for this issue reproducing the infinite loop with 5.2.2.Final.