[Python-Dev] _sre changes

Andrew MacIntyre andymac@bullseye.apana.org.au
Sun, 25 May 2003 10:35:18 +1000 (EST)


On Sat, 24 May 2003, Gustavo Niemeyer wrote:

> to backport some of the fixes we have introduced in the regular
> expression engine in 2.3 to 2.2.3, or is it too late? We have a sf patch
> open about that, but I'd like to port only the changes that don't
> require major changes in the engine.

These sre changes are giving me fits on FreeBSD.  The fix (recursion
limit down to 7500 for gcc 3.x) applied for 2.3b1 now needs to be extended
to gcc 2.95, and the limit for gcc 3.x lowered further - not a
particularly satisfactory outcome.

I have identified that the problem is not the compiler specifically, but
an interaction with FreeBSD's pthreads implementation (libc_r) -
./configure --without-threads produces an interpreter which survives
test_re with a recursion limit of 10000 regardless of compiler.

I'm still trying to frame a query to a FreeBSD forum about this.

--
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac@bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac@pcug.org.au             (alt) |        Belconnen  ACT  2616
Web:    http://www.andymac.org/               |        Australia