[Zope-Checkins] CVS: Zope/doc/PLATFORMS - BSD.txt:1.1.2.1

Chris McDonough chrism at zope.com
Fri Sep 26 14:12:02 EDT 2003


Update of /cvs-repository/Zope/doc/PLATFORMS
In directory cvs.zope.org:/tmp/cvs-serv28347

Added Files:
      Tag: Zope-2_7-branch
	BSD.txt 
Log Message:
Add thread stack size fix docs by Andrew Sawyers.


=== Added File Zope/doc/PLATFORMS/BSD.txt ===
Steps to building python for use with Zope on FreeBSD to avoid
segmentation faults (by Andrew Sawyers for Pythons up to 2.3).

The default thread stack size for FreeBSD is too small; when building
Python for use with Zope it is often necessary to increase the thread
stack size to avoid segmentation faults. There are two ways which you
can increase the default python thread stack size.

Way #1: In your Python source directory:

    * >cd Python
    * >edit thread_pthreads.h

      at the top of the header file, add #define THREAD_STACK_SIZE 1000000
    * >save
    * >cd ..; ./configure

Way #2: In your Python source directory:

    * >./configure
    * >make OPT="-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DTHREAD_STACK_SIZE=1000000"

Passing in the define or adding the define to your source solves all
experiences I have experienced with Zope segfaulting while running on
my FreeBSD platforms.




More information about the Zope-Checkins mailing list