[MacPorts] #58437: pcre, pcre2 jit libraries hang calling functions, resulting in segmentation faults
MacPorts
noreply at macports.org
Sat May 4 09:37:28 UTC 2019
#58437: pcre, pcre2 jit libraries hang calling functions, resulting in segmentation
faults
-------------------------+--------------------
Reporter: essandess | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: pcre pcre2 |
-------------------------+--------------------
Description changed by essandess:
Old description:
> The pcre, pcre2 jit libraries hang when called in some situations,
> causing segmentation faults.
>
> This is observed when they are used as dependencies for
> https://github.com/rspamd/rspamd.
>
> Here's a core dump using pcre:
> https://github.com/rspamd/rspamd/issues/2884#issuecomment-489235483
>
> The offending routines in this example are: {{{sljit_free_code}}} and
> {{{_pcre_jit_compile}}}.
>
> See this PR for a {{{Portfile}}} example of the {{{rspamd}}} port that
> forces the use of the native {{{/usr/lib/libpcre.dylib}}} library
> (compiled without jit) to avoid this issue.
>
> In the current {{{rspamd}}} build that uses native pcre, it reports in
> its logs:
> {{{
> 2019-05-04 05:03:59 #69648(main) rspamd_regexp_library_init: pcre is
> compiled without JIT support, so many optimizations are impossible
> }}}
> Getting working jit in pcre and pcre2 would be great to have.
New description:
The pcre, pcre2 jit libraries hang when called in some situations, causing
segmentation faults.
This is observed when they are used as dependencies for
https://github.com/rspamd/rspamd.
Here's a core dump using pcre:
https://github.com/rspamd/rspamd/issues/2884#issuecomment-489235483
The offending routines in this example are: {{{sljit_free_code}}} and
{{{_pcre_jit_compile}}}.
See this PR for a {{{Portfile}}} example of the {{{rspamd}}} port that
forces the use of the native {{{/usr/lib/libpcre.dylib}}} library
(compiled without jit) to avoid this issue: https://github.com/macports
/macports-ports/commit/3778fcef647b9d3cfa19f40fd4d59aa97ae1f25a
In the current {{{rspamd}}} build that uses native pcre, it reports in its
logs:
{{{
2019-05-04 05:03:59 #69648(main) rspamd_regexp_library_init: pcre is
compiled without JIT support, so many optimizations are impossible
}}}
Getting working jit in pcre and pcre2 would be great to have.
--
--
Ticket URL: <https://trac.macports.org/ticket/58437#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list