[pcre-dev] [Bug 2334] "make test" reports test failures when…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2334] "make test" reports test failures when running on macOS (x86_64)
https://bugs.exim.org/show_bug.cgi?id=2334

--- Comment #5 from Philip Hazel <ph10@???> ---
As it happens, it is fortunate that you have waited till now to report this!
There are two issues: (1) "Heap Limit Exceeded" and (2) the failure of
pcre2_jit_test. By one of those weird coincidences that always happen, we have
been investigating the second of these within the last week, after I had access
to a MacOS environment and ran the standard tests. The problem is caused by
these lines in the file src/sljit/sljitExecAllocator.c

#ifdef MAP_JIT   
        flags |= MAP_JIT;
#endif              


A MacOS user asked Zoltan to add these lines (he, like me, is not a MacOS
user), which have no effect on Linux (which does not have MAP_JIT). However, it
seems that in some MacOS environments (yours and the one I can test on),
setting MAP_JIT causes subsequent calls to mmap() (whether with MAP_JIT or not)
to fail. This causes the pcre2_jit_test failures. We have only just discovered
this, and are wondering what to do. Please try cutting out those lines and see
if that fixes problem (2).

As for (1)...hmm. Are you building PCRE2 with a small heap limit? What is the
output from ./pcre2test -C?

--
You are receiving this mail because:
You are on the CC list for the bug.