[pcre-dev] [Bug 709] pcretest crashes during Test 2

Etusivu
Poista viesti
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: pcre-dev
Aihe: [pcre-dev] [Bug 709] pcretest crashes during Test 2
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=709




--- Comment #6 from Philip Hazel <ph10@???> 2008-05-17 16:58:16 ---
On Sat, 17 May 2008, Andrea Govoni wrote:

> --- Comment #4 from Andrea Govoni <xfox@???> 2008-05-17 15:26:27 ---
> Philip, I can perform any test you might think could be useful to resolve the
> issue but maybe Sheri's suggestion on the Pcre-dev list of adding
> --disable-stack-for-recursion to my build options did the trick.
> Now pcretest doesn't crash anymore and the test suite succeeds.


OK, that more or less confirms that it is the stack issue.

> However, is this normal?


It's "normal" in the sense that if you don't have enough stack, test 2
fails. What is "enough" depends on the OS and the hardware in ways that
I do not understand. In situations where there is only 8MB of stack, it
sometimes works, sometimes fails.

> Why if the library is not linked with the static version of zlib the
> --disable-stack-for-recursion build option is not required to pass the
> RunTest test suite?


My guess is that the stack usage is close to your default (which I'm
guessing is 8MB). Adding the zlib stuff pushes it just over the limit.
That's just a guess, of course.

If you can figure out how to increase your stack size, you could try
that without --disable-stack-for-recursion.

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email