FreeBSD, Python and Zope
Andrey Chichak
chch at kit.tomsk.ru
Sun Feb 16 03:50:20 EST 2003
> > > > Today I've found reaason of Zope crashing under FreeBSD.
> > > > pthread_create with default pthread_attr allocates stack only
64K,
> > > Sure! Submit a patch to SourceForge; if you're not comfortable with
> > > that, just submit a bug report.
> > A search of the bug tracker would have found an old bug report about
this.
> > The code has changed since this was reported, and in fact there is a
> > macro that can be defined to allocate a larger thread stack - its just
not
> > documented usefully (review Python/thread_pthread.c for enlightenment).
> Get the python 2.1.3 source distro
>
> $ cd /source/Python2.1.3/Python
>
> $ wget -O patchfile.txt
>
https://sourceforge.net/tracker/download.php?group_id=5470\&atid=305470\&fil
> e_id=22870\&aid=554841
>
> $ patch < patchfile.txt
>
> then play the usual "configure/make/make install" dance again.
>
> There is no more Zope crash since that patch.
or simply so :
cd Python-2.2.2
export OPT="-O -march=k6 -pipe -DTHREAD_STACK_SIZE=0x100000"
./configure --with-threads
Andrey Chichak
More information about the Python-list
mailing list