[pcre-dev] [Bug 1816] PCRE2 Demo code failed

トップ ページ
このメッセージを削除
著者: admin
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 1816] PCRE2 Demo code failed
https://bugs.exim.org/show_bug.cgi?id=1816

--- Comment #3 from Philip Hazel <ph10@???> ---
This looks to me like a well known PCRE effect of running out of stack. Using
pcre2test on Linux shows that your test fails with only 1Mb of stack, but works
with 2Mb. I know Windows uses a smaller default stack than Linux. Can you try
with a larger stack? See also doc/pcre2stack.3 for more details. This is my
test:

$ pcre2test -S 1 zz
PCRE2 version 10.21 2016-01-12
"^(.)+$"
\[x]{2000}
Segmentation fault (core dumped)

$ pcre2test -S 2 zz
PCRE2 version 10.21 2016-01-12
"^(.)+$"
\[x]{2000}
0:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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