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

Andrew MacIntyre andymac at bullseye.apana.org.au
Mon Dec 29 21:42:06 EST 2003


On Mon, 29 Dec 2003, Berthold Höllmann wrote:

> make distclean
> env CFLAGS= CXXFLAGS= ./configure --with-thread --with-fpectl \
>    --with-signal-module --with-pymalloc --enable-shared --with-cxx=g++
> env LANG=C CFLAGS= CXXFLAGS= make test
>
> gave:
>
> test_quopri
> test_random
> test_re
> make: *** [test] Segmentation fault

1.  Just to confirm that the configure generated Makefile is what it
should be, what are the OPT and BASECFLAGS values?

2. Do a verbose run of the test_re test with the interpreter you built
above (ie with the default optimisations):
  ./python Lib/test/regrtest.py -v test_re >test_re.log 2>&1

3. If it coredumps (which I expect it to based on your advice above), use
gdb to get the backtrace.

The test log and the gdb backtrace should help isolate where things are
going astray.

BTW, I'm not sure why you're explicitly using --with-thread,
--with-signal-module and --with-pymalloc as they are all enabled by
default.  I'm also unsure as to whether you really need to specify
--with-cxx; it might be worth a try configure'ing without it.

--
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