[pcre-dev] version 8.43 crashing on macOS when used in fork(…

Top Page
Delete this message
Author: Timothy Stack
Date:  
To: pcre-dev
Subject: [pcre-dev] version 8.43 crashing on macOS when used in fork()'d processes due to MAP_JIT change
Hi,

I wanted to bring some attention to the following bug related to the MAP_JIT
change on macOS:

https://bugs.exim.org/show_bug.cgi?id=2334

With the 8.43 release, if you jit compile a regex, then fork(), the child
process
will crash when trying to do a match or compiling a new regex. I compiled a
version where MAP_JIT was not set and things worked fine.

This is causing problems for my program (https://github.com/tstack/lnav)
since
I use child processes quite a bit. I noticed this after brew updated their
version
of pcre to 8.43.

thanks,

Tim Stack