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

From: Andrew MacIntyre (andymac_at_bullseye.apana.org.au)
Date: 12/29/03


Date: Mon, 29 Dec 2003 10:16:37 +1100 (EST)
To: Berthold Hoellmann <bhoel@web.de>

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@bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac@pcug.org.au             (alt) |        Belconnen  ACT  2616
Web:    http://www.andymac.org/               |        Australia


Relevant Pages

  • Re: Stacking Washer/Dryer trick?
    ... Are you familiar with the furniture/appliance slides that you can get ... Prolonged weight on the sliders can eventually damage the foam top. ... ground in normal usage should keep the platform from moving. ... Leave enough room behind the stack to tilt the platform backward just ...
    (alt.home.repair)
  • Re: Lets put this to rest
    ... characteristc that must be implemented in the final system for it to ... is that you had in my mind made an incorrect ... If you say that a requirement already exists for a stack, ... In MDA there is the issue of platform independence, ...
    (comp.object)
  • Re: doubt on regarding stacks
    ... >> One filthy trick you could employ (with all warnings set abut ... >> does indeed have a stack and uses it). ... > platform. ... > plz let me know the correct concepts. ...
    (comp.lang.c)
  • [PATCH] shmat() and CONFIG_STACK_GROWSUP
    ... The patch below allows shmatto map the requested memory region on this platform directly below the start of the stack, without the need to reserve memory for a downward-growing stack. ...
    (Linux-Kernel)