make test segfaults with "--enable-shared" on Python 2.3.3

Andrew MacIntyre andymac at bullseye.apana.org.au
Sun Dec 28 18:16:37 EST 2003


On Sun, 28 Dec 2003, Berthold Hoellmann wrote:

> > When I use
> >
> >   ./configure  --with-thread --with-fpectl --with-signal-module \
> >      --with-pymalloc --enable-shared  --with-cxx=g++
> >
> >   make test
> >
> > on 2.3.3 I get
> >
> > ...
> > test_queue
> > test_quopri
> > test_random
> > test_re
> > make: *** [test] Speicherzugriffsfehler (Speicherauszug erstellt)
>
> Everything works fine if I remove the "--enable-shared" flag from
> configure.

You don't mention what platform you are seeing this on.  The output of a
verbose test run (python Lib/test/regrtest.py -v test_re), preferably with
error messages translated to English, may help diagnose the issue.

I know that there are platforms where the amount of stack space available
to a threaded process is not easily controlled, and recent versions of gcc
are creating much larger stack frames than earlier versions.  The sre
module in 2.3.x (and earlier) is recursive and thus sensitive to stack
space availability. A core dump is a likely indicator of this.  Read the
Modules/_sre.c source file for more info.  sre in 2.4 will be
significantly improved in this regard.

FYI, since 2.3 PyMalloc is a default option so you don't need
--with-pymalloc, and most recent Linux and BSD systems will default to
building with --with-thread and --with-signal-module.

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





More information about the Python-list mailing list