Not sure what is cause but I checked the script with gamk and mawk and bwk and it seems to run okay on those.
But the latest picore awk fails not giving the correct RLENGTH and RSTART from a match?
I have attached script and input data.
Anyone have any advice or suggestions?