Permalink
Please sign in to comment.
Browse files
MDEV-13412 main.func_regexp_pcre fails in buildbot on ppc64le
Caused by 2fcd8c1. It used the documented pcre API -pcre_exec(NULL, NULL, NULL, -999, -999, 0, NULL, 0) to calculate the pcre stack frame size. Unfortunately, modern compilers broke it by cloning and inlining pcre match() function. 2fcd8c1 tried to workaround it by setting the stack frame size to at least 500. It didn't work, 500 is not a universal constant. Now we fix our copy of pcre to not inline or clone match() - so that stack frame detection would work again - and detect at cmake time whether system pcre is broken or usable. Also use stack, not (much slower) malloc in bundled pcre.
- Loading branch information...
Showing
with
36 additions
and 18 deletions.
- +14 −2 cmake/pcre.cmake
- +9 −9 mysql-test/r/func_regexp_pcre.result
- +4 −4 mysql-test/t/func_regexp_pcre.test
- +3 −3 pcre/CMakeLists.txt
- +6 −0 pcre/pcre_exec.c
0 comments on commit
6454d4e