]> granicus.if.org Git - python/commit
Changes to sre.c after the application of patch #726869 have increased
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Mon, 9 Jun 2003 08:22:11 +0000 (08:22 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Mon, 9 Jun 2003 08:22:11 +0000 (08:22 +0000)
commit1a44448b24cae0d99aa0556448442dae99604cd7
tree7120b8c1e3ac1fc5602be31fc9816f57e386ad74
parent0dda40035f46579bebb2e72c86d547a573c631a2
Changes to sre.c after the application of patch #726869 have increased
stack usage on FreeBSD, requiring the recursion limit to be lowered
further.  Building with gcc 2.95 (the standard compiler on FreeBSD 4.x)
is now also affected.

The underlying issue is that FreeBSD's pthreads implementation has a
hard-coded 1MB stack size for the initial (or "primary") thread, which
can not be changed without rebuilding libc_r.  Exhausting this stack
results in a bus error.

Building without pthreads (configure --without-threads), or linking
with the port of the Linux pthreads library (aka Linuxthreads) instead
of libc_r, avoids this limitation.

On OS/2, only gcc 3.2 is affected and the stack size is controllable,
so the special handling has been removed.
Modules/_sre.c