PR49475 shows an infinite loop outcome, but this tries to show the root cause with a minimal test.
mentioned in commit 5b348061