Looked a bot over it and the `pcres` global was not allocated, by an assign to `*pcres` was done.
On the other hand, I am not sure if it is enough, I guess the compiled regex has to be stored in shared memory and I cannot say it is done. Maybe @linuxmaniac can have more insights on it.
With pcre3 library, there was a function from the lib that returned a contiguous block for the compiled regex that was then copied to shm.