FreeBSD, Python and Zope

Gilles Lenfant glenfant at NOSPAM.bigfoot.com
Fri Feb 14 14:19:32 EST 2003


"Andrew MacIntyre" <andymac at bullseye.apana.org.au> a écrit dans le message
de news: mailman.1045138848.16840.python-list at python.org...
> On 12 Feb 2003, Aahz wrote:
>
> > In article <mailman.1045061207.29823.python-list at python.org>,
> > Andrey Chichak <chch at kit.tomsk.ru> wrote:
> > >
> > >    Today I've found reaason of Zope crashing under FreeBSD.
> > >
> > >    pthread_create with default pthread_attr allocates stack only 64K,
=
> > >it's too small.
> > >    after recompiling libc_r with larger default stack size all is =
> > >working good.
> > >
> > >    may be it's possible add parameter for python "stack size for =
> > >threading" ?
> >
> > 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.

HTH

--Gilles







More information about the Python-list mailing list