The commit obtained by bisecting isn't the source of this, it just merely made it more visible on some architectures. For example, I can't reproduce the crash on my 64-bits system, but valgrind catches the error. This happens because when there's only one branch in the (?| ... ), the value of RExC_npar is reset unconditionnaly. The attached patch fixes the issue.Thread Next