On Friday, July 29, 2011 16:25 CEST, "Sebastian Reitenbach" 
<sebas...@l00-bugdead-prods.de> wrote: 
 
> trying to compile python on a sparc with 5.0 snapshot ends up with a segfault 
> of python itself:

out of curiosity I tried python-2.5, and the same happens here too:

Compiling 
/home/ports/pobj/Python-2.5.4/fake-sparc/usr/local/lib/python2.5/test/test_bufio.py
 ...
Compiling 
/home/ports/pobj/Python-2.5.4/fake-sparc/usr/local/lib/python2.5/test/test_builtin.py
 ...
Segmentation fault (core dumped) 

#0  0x0b0c5908 in listextend (self=0xfccd5f8, b=0x83c7dc8) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Objects/listobject.c:783
783                             Py_INCREF(o);
(gdb) bt
#0  0x0b0c5908 in listextend (self=0xfccd5f8, b=0x83c7dc8) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Objects/listobject.c:783
#1  0x0b0c5dc4 in _PyList_Extend (self=0xfccd5f8, b=0x83c7dc8) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Objects/listobject.c:861
#2  0x0b084088 in PySequence_List (v=0x83c7dc8) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Objects/abstract.c:1582
#3  0x0b18a2ec in makecode (c=0xf7fe9df4, a=0xf7fe9960) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:4475
#4  0x0b18ab94 in assemble (c=0xf7fe9df4, addNone=1) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:4614
#5  0x0b17f9cc in compiler_function (c=0xf7fe9df4, s=0x9156ee8) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:2033
#6  0x0b183360 in compiler_visit_stmt (c=0xf7fe9df4, s=0x9156ee8) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:2717
#7  0x0b17ea4c in compiler_body (c=0xf7fe9df4, stmts=0x101ece90) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:1820
#8  0x0b17ffac in compiler_class (c=0xf7fe9df4, s=0xa785fc0) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:2083
#9  0x0b183380 in compiler_visit_stmt (c=0xf7fe9df4, s=0xa785fc0) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:2719
#10 0x0b17ea4c in compiler_body (c=0xf7fe9df4, stmts=0xaf7a010) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:1820
#11 0x0b17ec28 in compiler_mod (c=0xf7fe9df4, mod=0xe42a680) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:1840
#12 0x0b17a0f0 in PyAST_Compile (mod=0xe42a680, filename=0xe438fac 
"/usr/local/lib/python2.5/test/test_builtin.py", flags=0xf7fe9f34, 
arena=0x9aa3910) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/compile.c:297
#13 0x0b1b0940 in Py_CompileStringFlags (
    str=0x9ac6014 "# Python test set -- built-in functions\n\nimport 
test.test_support, unittest\nfrom test.test_support import fcmp, have_unicode, 
TESTFN, unlink, \\\n", ' ' <repeats 30 times>, "run_unittest, run_with_loc"..., 
filename=0xe438fac "/usr/local/lib/python2.5/test/test_builtin.py", start=257, 
flags=0xf7fe9f34) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/pythonrun.c:1330
#14 0x0b162330 in builtin_compile (self=0x0, args=0xfcdbf80) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/bltinmodule.c:464
#15 0x0b0dedc0 in PyCFunction_Call (func=0x83b5670, arg=0xfcdbf80, kw=0x0) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Objects/methodobject.c:73
#16 0x0b176188 in call_function (pp_stack=0xf7fea164, oparg=3) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/ceval.c:3612
#17 0x0b171450 in PyEval_EvalFrameEx (f=0xa20ea10, throwflag=0) at 
/home/ports/pobj/Python-2.5.4/Python-2.5.4/Python/ceval.c:2304

The last python packages for sparc on the FTP mirrors are from the pre gcc-4.2 
aera.

Sebastian


> 
> 
> 
> Compiling 
> /home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/test/test_bsddb3.py
>  ...
> Compiling 
> /home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/test/test_buffer.py
>  ...
> Compiling 
> /home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/test/test_bufio.py
>  ...
> Compiling 
> /home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/test/test_builtin.py
>  ...
> Segmentation fault (core dumped)
> 
> #0  0x089f136c in listextend (self=0xb6232d8, b=0xb611060) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/listobject.c:838
> 838                 Py_INCREF(o);
> (gdb) bt
> #0  0x089f136c in listextend (self=0xb6232d8, b=0xb611060) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/listobject.c:838
> #1  0x089f17a8 in _PyList_Extend (self=0xb6232d8, b=0xb611060) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/listobject.c:910
> #2  0x08999730 in PySequence_List (v=0xb611060) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/abstract.c:2247
> #3  0x08ae2640 in makecode (c=0xf7fc5e40, a=0xf7fc59a8) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:3836
> #4  0x08ae2ee8 in assemble (c=0xf7fc5e40, addNone=1) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:3975
> #5  0x08ad7db4 in compiler_function (c=0xf7fc5e40, s=0xa573ce8) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:1399
> #6  0x08adb86c in compiler_visit_stmt (c=0xf7fc5e40, s=0xa573ce8) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:2102
> #7  0x08ad6e34 in compiler_body (c=0xf7fc5e40, stmts=0xd855600) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:1186
> #8  0x08ad83c4 in compiler_class (c=0xf7fc5e40, s=0xbf825b0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:1454
> #9  0x08adb88c in compiler_visit_stmt (c=0xf7fc5e40, s=0xbf825b0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:2104
> #10 0x08ad6e34 in compiler_body (c=0xf7fc5e40, stmts=0xd854010) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:1186
> #11 0x08ad7010 in compiler_mod (c=0xf7fc5e40, mod=0xa994ee8) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:1206
> #12 0x08ad452c in PyAST_Compile (mod=0xa994ee8, filename=0xb6356ac 
> "/usr/local/lib/python2.7/test/test_builtin.py", flags=0xf7fc5f98, 
> arena=0xef357b0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/compile.c:289
> #13 0x08b0c358 in Py_CompileStringFlags (
>     str=0xa5f2014 "# Python test set -- built-in functions\n\nimport 
> platform\nimport unittest\nfrom test.test_support import fcmp, have_unicode, 
> TESTFN, unlink, \\\n", ' ' <repeats 30 times>, "run_unittest, 
> check_py3k_warn"..., filename=0xb6356ac 
> "/usr/local/lib/python2.7/test/test_builtin.py", start=257, flags=0xf7fc5f98) 
> at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/pythonrun.c:1403
> #14 0x08aba8d8 in builtin_compile (self=0x0, args=0xb643ee0, kwds=0x0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/bltinmodule.c:551
> #15 0x08a10d58 in PyCFunction_Call (func=0xfb2cd00, arg=0xb643ee0, kw=0x0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/methodobject.c:85
> #16 0x08ad0550 in call_function (pp_stack=0xf7fc61c8, oparg=3) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4012
> #17 0x08acb67c in PyEval_EvalFrameEx (f=0xe895410, throwflag=0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:2665
> #18 0x08acd98c in PyEval_EvalCodeEx (co=0xa5dd020, globals=0xe87ab70, 
> locals=0x0, args=0xe895d98, argcount=4, kws=0xe895da8, kwcount=0, 
> defs=0xb61abcc, defcount=3, closure=0x0)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:3252
> #19 0x08ad0a94 in fast_function (func=0xa5dc530, pp_stack=0xf7fc65b8, n=4, 
> na=4, nk=0) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4108
> #20 0x08ad06e8 in call_function (pp_stack=0xf7fc65b8, oparg=4) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4033
> #21 0x08acb67c in PyEval_EvalFrameEx (f=0xe895c10, throwflag=0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:2665
> #22 0x08acd98c in PyEval_EvalCodeEx (co=0xe87e728, globals=0xfb3f660, 
> locals=0x0, args=0xd34737c, argcount=5, kws=0xd347390, kwcount=0, 
> defs=0xa5d678c, defcount=4, closure=0x0)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:3252
> #23 0x08ad0a94 in fast_function (func=0xa5dc5f0, pp_stack=0xf7fc69a8, n=5, 
> na=5, nk=0) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4108
> #24 0x08ad06e8 in call_function (pp_stack=0xf7fc69a8, oparg=5) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4033
> #25 0x08acb67c in PyEval_EvalFrameEx (f=0xd347210, throwflag=0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:2665
> #26 0x08acd98c in PyEval_EvalCodeEx (co=0xa5c04e8, globals=0xfb3f660, 
> locals=0x0, args=0xe89517c, argcount=6, kws=0xe895194, kwcount=0, 
> defs=0xa5bff0c, defcount=5, closure=0x0)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:3252
> #27 0x08ad0a94 in fast_function (func=0xa5dc5b0, pp_stack=0xf7fc6d98, n=6, 
> na=6, nk=0) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4108
> #28 0x08ad06e8 in call_function (pp_stack=0xf7fc6d98, oparg=6) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4033
> #29 0x08acb67c in PyEval_EvalFrameEx (f=0xe895010, throwflag=0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:2665
> #30 0x08acd98c in PyEval_EvalCodeEx (co=0xa5c04e8, globals=0xfb3f660, 
> locals=0x0, args=0xe894d8c, argcount=6, kws=0xe894da4, kwcount=0, 
> defs=0xa5bff0c, defcount=5, closure=0x0)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:3252
> #31 0x08ad0a94 in fast_function (func=0xa5dc5b0, pp_stack=0xf7fc7188, n=6, 
> na=6, nk=0) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4108
> #32 0x08ad06e8 in call_function (pp_stack=0xf7fc7188, oparg=6) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4033
> #33 0x08acb67c in PyEval_EvalFrameEx (f=0xe894c10, throwflag=0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:2665
> #34 0x08ad0984 in fast_function (func=0xa5dc6b0, pp_stack=0xf7fc7448, n=0, 
> na=0, nk=0) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4098
> #35 0x08ad06e8 in call_function (pp_stack=0xf7fc7448, oparg=0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:4033
> #36 0x08acb67c in PyEval_EvalFrameEx (f=0x91e2610, throwflag=0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:2665
> #37 0x08acd98c in PyEval_EvalCodeEx (co=0xa5db260, globals=0xfb3f660, 
> locals=0xfb3f660, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, 
> defcount=0, closure=0x0)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:3252
> #38 0x08ac4604 in PyEval_EvalCode (co=0xa5db260, globals=0xfb3f660, 
> locals=0xfb3f660) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/ceval.c:666
> #39 0x08b0bfc8 in run_mod (mod=0x91cbce0, filename=0xf7fc7c31 
> "/home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/compileall.py",
>  globals=0xfb3f660, locals=0xfb3f660, flags=0xf7fc79a0, arena=0xef35a80)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/pythonrun.c:1346
> #40 0x08b0bf2c in PyRun_FileExFlags (fp=0x1051ed30, filename=0xf7fc7c31 
> "/home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/compileall.py",
>  start=257, globals=0xfb3f660, locals=0xfb3f660, closeit=1, 
>     flags=0xf7fc79a0) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/pythonrun.c:1332
> #41 0x08b0a2bc in PyRun_SimpleFileExFlags (fp=0x1051ed30, filename=0xf7fc7c31 
> "/home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/compileall.py",
>  closeit=1, flags=0xf7fc79a0)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/pythonrun.c:936
> #42 0x08b09744 in PyRun_AnyFileExFlags (fp=0x1051ed30, filename=0xf7fc7c31 
> "/home/ports/pobj/Python-2.7.1/fake-sparc/usr/local/lib/python2.7/compileall.py",
>  closeit=1, flags=0xf7fc79a0)
>     at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Python/pythonrun.c:740
> #43 0x08b2e718 in Py_Main (argc=10, argv=0xf7fc7b0c) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Modules/main.c:599
> #44 0x000108b8 in main (argc=10, argv=0xf7fc7b0c) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Modules/python.c:23
> ...
> 
> #0  0x089f136c in listextend (self=0xb6232d8, b=0xb611060) at 
> /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/listobject.c:838
> 838                 Py_INCREF(o);
> (gdb) list
> 833             /* populate the end of self with b's items */
> 834             src = PySequence_Fast_ITEMS(b);
> 835             dest = self->ob_item + m;
> 836             for (i = 0; i < n; i++) {
> 837                 PyObject *o = src[i];
> 838                 Py_INCREF(o);
> 839                 dest[i] = o;
> 840             }
> 841             Py_DECREF(b);
> 842             Py_RETURN_NONE;
> (gdb) print src
> $1 = (PyObject **) 0xb61106c
> (gdb) print i  
> $2 = 1
> (gdb) print *src
> $3 = (PyObject *) 0x8d8afdc
> (gdb) print src[i]
> $4 = (PyObject *) 0x0
> 
 
 
 
 

Reply via email to