Python 2.1.2 regression crash on Linux/Sparc

Doug McNaught doug at mcnaught.org
Thu Feb 21 19:23:04 EST 2002


I have an UltraSparc running Linux (Red Hat 6.2 + erratea updates).  I
would love to get Zope running on it.  

I got Python 2.1.2, and did 'configure --with-threads'.  The make goes
fine.  When I run the regression test, I get:

...
skipping 'fpectl' extension (up-to-date)
skipping 'zlib' extension (up-to-date)
skipping 'linuxaudiodev' extension (up-to-date)
skipping '_tkinter' extension (up-to-date)
running build_scripts
not copying /home/doug/src/Python-2.1.2/Tools/scripts/pydoc (up-to-date)
find ./Lib -name '*.py[co]' -print | xargs rm -f
PYTHONPATH= ./python -tt ./Lib/test/regrtest.py -l
make: *** [test] Segmentation fault (core dumped)
PYTHONPATH= ./python -tt ./Lib/test/regrtest.py -l
make: *** [test] Segmentation fault (core dumped)

Here's a GDB backtrace--any wisdom?  Glibc version is 2.1.3. 

[doug at varsoon Python-2.1.2]$ gdb ./python core
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-redhat-linux"...

warning: "/home/doug/src/Python-2.1.2/core": no core file handler recognizes format, using default
Core was generated by `./python -tt ./Lib/test/regrtest.py -l'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libpthread.so.0...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libutil.so.1...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /home/doug/src/Python-2.1.2/build/lib.linux-sparc64-2.1/math.so...done.
#0  0x701bd534 in math_1 (args=0x701b8470, func=0xabdac <exp>, 
    argsfmt=0x701be0a8 "d:exp")
    at /home/doug/src/Python-2.1.2/Modules/mathmodule.c:75
75		CHECK(x);
(gdb) bt
#0  0x701bd534 in math_1 (args=0x701b8470, func=0xabdac <exp>, 
    argsfmt=0x701be0a8 "d:exp")
    at /home/doug/src/Python-2.1.2/Modules/mathmodule.c:75
#1  0x701bd844 in math_exp (self=0x0, args=0x11156c)
    at /home/doug/src/Python-2.1.2/Modules/mathmodule.c:125
#2  0x22e94 in call_cfunction (func=0xb2d10, arg=0x11156c, kw=0x0)
    at Python/ceval.c:2859
#3  0x21060 in eval_code2 (co=0x13f5b0, globals=0x701bd814, locals=0x1, 
    args=0x1, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0xb2d10) at Python/ceval.c:1952
#4  0x1d3cc in PyEval_EvalCode (co=0x13f5b0, globals=0x1401dc, locals=0x1401dc)
    at Python/ceval.c:341
#5  0x325c4 in PyImport_ExecCodeModuleEx (name=0xefffec58 "random", 
    co=0x13f5b0, 
    pathname=0xefffe298 "/home/doug/src/Python-2.1.2/Lib/random.pyc")
    at Python/import.c:490
#6  0x32b3c in load_source_module (name=0xefffec58 "random", 
    pathname=0xefffe298 "/home/doug/src/Python-2.1.2/Lib/random.pyc", 
    fp=0x13f5b0) at Python/import.c:754
#7  0x33300 in load_module (name=0xefffec58 "random", fp=0x1302d0, 
    buf=0xefffe778 "/home/doug/src/Python-2.1.2/Lib/random.py", type=1)
    at Python/import.c:1301
#8  0x34110 in import_submodule (mod=0xa0468, subname=0xefffec58 "random", 
    fullname=0xefffec58 "random") at Python/import.c:1829
#9  0x33c3c in load_next (mod=0xa0468, altmod=0xa0468, p_name=0xefffec58, 
    buf=0xefffec58 "random", p_buflen=0xefffec54) at Python/import.c:1685
#10 0x3384c in import_module_ex (name=0x0, globals=0xb944c, locals=0xb944c, 
    fromlist=0xa0468) at Python/import.c:1536
#11 0x339ec in PyImport_ImportModuleEx (name=0x11a144 "random", 
    globals=0xb944c, locals=0xb944c, fromlist=0xa0468) at Python/import.c:1577
#12 0x733e4 in builtin___import__ (self=0x0, args=0xc8af4)
    at Python/bltinmodule.c:31
#13 0x22e94 in call_cfunction (func=0xae840, arg=0xc8af4, kw=0x0)
    at Python/ceval.c:2859
#14 0x22d30 in call_object (func=0xae840, arg=0xc8af4, kw=0x73398)
    at Python/ceval.c:2812
#15 0x22b6c in PyEval_CallObjectWithKeywords (func=0xae840, arg=0xc8af4, 
    kw=0x0) at Python/ceval.c:2745
#16 0x20cd8 in eval_code2 (co=0x16c560, globals=0x0, locals=0xb944c, args=0x0, 
    argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0xae840)
    at Python/ceval.c:1824
#17 0x1d3cc in PyEval_EvalCode (co=0x16c560, globals=0xb944c, locals=0xb944c)
    at Python/ceval.c:341
#18 0x3a6f8 in run_node (n=0xbea28, filename=0x16c560 "", globals=0xb944c, 
    locals=0xb944c, flags=0xeffff60c) at Python/pythonrun.c:1049
#19 0x3a6a4 in run_err_node (n=0xbea28, filename=0x16c560 "", globals=0xb944c, 
    locals=0xb944c, flags=0xeffff60c) at Python/pythonrun.c:1036
#20 0x3a674 in PyRun_FileExFlags (fp=0xae418, 
    filename=0xeffff8cd "./Lib/test/regrtest.py", start=780840, 
    globals=0xb944c, locals=0xb944c, closeit=1, flags=0xeffff60c)
    at Python/pythonrun.c:1027
#21 0x39824 in PyRun_SimpleFileExFlags (fp=0xae418, 
    filename=0xeffff8cd "./Lib/test/regrtest.py", closeit=1, flags=0xeffff60c)
    at Python/pythonrun.c:666
#22 0x392b8 in PyRun_AnyFileExFlags (fp=0xae418, 
    filename=0xeffff8cd "./Lib/test/regrtest.py", closeit=1, flags=0xeffff60c)
    at Python/pythonrun.c:480
#23 0x19ab0 in Py_Main (argc=4, argv=0xeffff7b4) at Modules/main.c:320
#24 0x19408 in main (argc=4, argv=0xeffff7b4) at Modules/python.c:10
(gdb)

-Doug



More information about the Python-list mailing list