BSD grep, segfault.
PR 167921

when two backslahes in the regex pattern, it tries to set escmap field while it is not allocated at all.