This bug has been copied from bug #465151 and has been proposed to be backported to 5.2 z-stream (EUS).