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

Page principale
Supprimer ce message
Auteur: Andrea Govoni
Date:  
À: pcre-dev
Sujet: [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 #7 from Andrea Govoni <xfox@???> 2008-05-21 23:08:20 ---
Yes Philip, your guess about the 8MB Mac OS X' stack size is correct.
Luckily I found a way to increase the stack size at link time and thus get rid
of the --disable-stack-for-recursion option.
These are the links to the relevant documents I found, in case anyone is
interested:
- Customizing Process Stack Size (Apple Technical Q&A QA1419)
http://developer.apple.com/qa/qa2005/qa1419.html
- How to increase the stack size on MAC OS X
by Eric Circlaeys, Consulting Engineer, Apple Computer Europe (December 17,
2004)
http://tinyurl.com/yrwx89

I found that 12MB of stack memory is enough to pass all the tests so the final
configure invocation to build pcre-7.7 and link the executables with the static
version of zlib becomes:
./configure --enable-utf8 --enable-unicode-properties --disable-shared
--enable-pcregrep-libz CFLAGS=-L/usr/local/lib
LDFLAGS=-Wl,-search_paths_first,-stack_size,c00000,-stack_addr,c0000000

Feel free to close this bug as INVALID.


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