On Apr 2, 3:32 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 2, 2008 at 6:17 AM, Alex Ghitza <[EMAIL PROTECTED]> wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
>
> > Builds and tests without problems on 32-bit machine running Gentoo.
>
> * Works on sage.math.
>
> * integer.pyx fails on meccah (32-bit athlon):
>
> sage -t devel/sage-main/sage/rings/integer.pyx
>
> ------------------------------------------------------------
> Unhandled SIGSEGV: A segmentation fault occured in SAGE.
> This probably occured because a *compiled* component
> of SAGE has a bug in it (typically accessing invalid memory)
> or is not properly wrapped with _sig_on, _sig_off.
> You might want to run SAGE under gdb with 'sage -gdb' to debug this.
> SAGE will now terminate (sorry).
> ------------------------------------------------------------
>
> * works fine on osx ppc
>
> * debian 32/rhel 5 intel: segfault in integer.pyx
> pbori.pyx is busted:
> sage -t devel/sage-main/sage/rings/polynomial/pbori.pyx
> **********************************************************************
> File "pbori.pyx", line 2305:
> sage: f(x=var('a'),y=var('b'),z=var('c'))
> Exception raised:
> Traceback (most recent call last):
> File "/home/was/build/sage-3.0.alpha0/local/lib/python2.5/doctest.py",
> line 1212, in __run
> compileflags, 1) in test.globs
> File "<doctest __main__.example_81[8]>", line 1, in <module>
> f(x=var('a'),y=var('b'),z=var('c'))###line 2305:
> sage: f(x=var('a'),y=var('b'),z=var('c'))
> File "sage_object.pyx", line 92, in
> sage.structure.sage_object.SageObject.__repr__
> File "/home/was/build/sage-3.0.alp
>
> * debian64 intel: pbori.pyx broken.
>
> * ubuntu32bit intel -- integer.pyx segfault
I suspect I am hitting the same problem with Python 2.5.2 - see #2344.
Since that (or a similar segfault) is a blocker from getting 2.5.2 in
(which I need for OSX 10.5 64 bit) I would really like to get that
resolved.
William: Can you run the integer.pyx with "-verbose" to see what
crahes in detail?
Cheers,
Michael
> gdb traceback:
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1210173232 (LWP 6821)]
> PyObject_Malloc (nbytes=26) at Objects/obmalloc.c:747
> 747 Objects/obmalloc.c: No such file or directory.
> in Objects/obmalloc.c
> (gdb)
> #0 PyObject_Malloc (nbytes=26) at Objects/obmalloc.c:747
> #1 0x080912f5 in string_concat (a=0xb76888c0, bb=0xb7687440) at
> Objects/stringobject.c:975
> #2 0x0809145e in PyString_Concat (pv=0xbfdfc348, w=0xb7687440)
> at Objects/stringobject.c:4052
> #3 0x080c1a8f in string_concatenate (v=0xb76888c0, w=0xb7687440, f=0x821c93c,
> next_instr=0xb76843b8 "|\001") at Python/ceval.c:4304
> #4 0x080c71f9 in PyEval_EvalFrameEx (f=0x821c93c, throwflag=0) at
> Python/ceval.c:1137
> #5 0x080c95a5 in PyEval_EvalCodeEx (co=0xb768b188,
> globals=0xb7d8479c, locals=0x0,
> args=0xb7d9ed78, argcount=1, kws=0x0, kwcount=0, defs=0x0,
> defcount=0, closure=0x0)
> at Python/ceval.c:2831
> #6 0x08111131 in function_call (func=0xb7695aac, arg=0xb7d9ed6c, kw=0x0)
> at Objects/funcobject.c:517
> #7 0x0805c6c7 in PyObject_Call (func=0xa29b000, arg=0xb7d9ed6c, kw=0x0)
> at Objects/abstract.c:1860
> #8 0x080c17bc in PyEval_CallObjectWithKeywords (func=0xb7695aac,
> arg=0xb7d9ed6c, kw=0x0)
> at Python/ceval.c:3433
> #9 0x080bf396 in builtin_map (self=0x0, args=0x9dbda0c) at
> Python/bltinmodule.c:948
> #10 0x080c837c in PyEval_EvalFrameEx (f=0x9e72afc, throwflag=0) at
> Python/ceval.c:3564
> #11 0x080c95a5 in PyEval_EvalCodeEx (co=0xb603a020,
> globals=0xb60294f4, locals=0x0,
> args=0x9e853ac, argcount=2, kws=0x9e853b4, kwcount=0, defs=0x0,
> defcount=0, closure=0x0)
> at Python/ceval.c:2831
> #12 0x080c7a69 in PyEval_EvalFrameEx (f=0x9e85224, throwflag=0) at
> Python/ceval.c:3660
> #13 0x080c95a5 in PyEval_EvalCodeEx (co=0x8fb9b18, globals=0x8f5279c,
> locals=0x0,
> args=0x94145d4, argcount=1, kws=0x94145d8, kwcount=0,
> defs=0x91bec98, defcount=2,
> closure=0x0) at Python/ceval.c:2831
> #14 0x080c7a69 in PyEval_EvalFrameEx (f=0x9414494, throwflag=0) at
> Python/ceval.c:3660
> #15 0x080c87a5 in PyEval_EvalFrameEx (f=0xa285efc, throwflag=0) at
> Python/ceval.c:3650
> #16 0x080c87a5 in PyEval_EvalFrameEx (f=0xa285d1c, throwflag=0) at
> Python/ceval.c:3650
> #17 0x080c95a5 in PyEval_EvalCodeEx (co=0x8f979f8, globals=0x8f5279c,
> locals=0x0,
> args=0x93a6f18, argcount=1, kws=0x0, kwcount=0, defs=0x91bed18,
> defcount=1, closure=0x0)
> at Python/ceval.c:2831
> #18 0x08111131 in function_call (func=0x91c5df4, arg=0x93a6f0c, kw=0x0)
> at Objects/funcobject.c:517
> #19 0x0805c6c7 in PyObject_Call (func=0xa29b000, arg=0x93a6f0c, kw=0x0)
> at Objects/abstract.c:1860
> #20 0x08062824 in instancemethod_call (func=0x98dabbc, arg=0x93a6f0c, kw=0x0)
> at Objects/classobject.c:2497
> #21 0x0805c6c7 in PyObject_Call (func=0xa29b000, arg=0xb7da302c, kw=0x0)
> at Objects/abstract.c:1860
> #22 0xb75dd709 in
> __pyx_pf_4sage_9structure_11sage_object_10SageObject___repr__ (
> __pyx_v_self=0x9e27644) at sage/structure/sage_object.c:626
> #23 0x0805c6c7 in PyObject_Call (func=0xa29b000, arg=0xb7da302c, kw=0x0)
> at Objects/abstract.c:1860
> #24 0x080c17bc in PyEval_CallObjectWithKeywords (func=0x9dbd2ac,
> arg=0xb7da302c, kw=0x0)
> at Python/ceval.c:3433
> #25 0x0809c42a in slot_tp_repr (self=0x9e27644) at Objects/typeobject.c:4547
> #26 0x080892d5 in PyObject_Repr (v=0x9e27644) at Objects/object.c:361
> #27 0x080705ac in PyFile_WriteObject (v=0x9e27644, f=0x9db036c,
> flags=<value optimized out>)
> at Objects/fileobject.c:2196
> #28 0x080ee900 in sys_displayhook (self=0x0, o=0x9e27644) at
> Python/sysmodule.c:114
> #29 0x0805c6c7 in PyObject_Call (func=0xa29b000, arg=0x929a9ec, kw=0x0)
> at Objects/abstract.c:1860
> #30 0x080c17bc in PyEval_CallObjectWithKeywords (func=0xb7daedac,
> arg=0x929a9ec, kw=0x0)
> at Python/ceval.c:3433
> #31 0x080c704e in PyEval_EvalFrameEx (f=0x9e8389c, throwflag=0) at
> Python/ceval.c:1530
> #32 0x080c95a5 in PyEval_EvalCodeEx (co=0xb7d8acc8, globals=0xa29635c,
> locals=0xa29635c,
> args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
> closure=0x0)
> at Python/ceval.c:2831
> #33 0x080c8832 in PyEval_EvalFrameEx (f=0x81c400c, throwflag=0) at
> Python/ceval.c:494
> #34 0x080c95a5 in PyEval_EvalCodeEx (co=0x9db2770, globals=0x9dae8ac,
> locals=0x0,
> args=0x9e833d8, argcount=4, kws=0x9e833e8, kwcount=0, defs=0x0,
> defcount=0, closure=0x0)
> at Python/ceval.c:2831
> #35 0x080c7a69 in PyEval_EvalFrameEx (f=0x9e83284, throwflag=0) at
> Python/ceval.c:3660
> #36 0x080c95a5 in PyEval_EvalCodeEx (co=0x9db28d8, globals=0x9dae8ac,
> locals=0x0,
> args=0x9de7f20, argcount=2, kws=0x9de7f28, kwcount=0,
> defs=0x9dbb538, defcount=3,
> closure=0x0) at Python/ceval.c:2831
> #37 0x080c7a69 in PyEval_EvalFrameEx (f=0x9de7db4, throwflag=0) at
> Python/ceval.c:3660
> #38 0x080c95a5 in PyEval_EvalCodeEx (co=0x9db2f98, globals=0x9dae8ac,
> locals=0x0,
> args=0x81dae18, argcount=1, kws=0x81dae1c, kwcount=3,
> defs=0x9d2cfb8, defcount=9,
> closure=0x0) at Python/ceval.c:2831
> #39 0x080c7a69 in PyEval_EvalFrameEx (f=0x81dacdc, throwflag=0) at
> Python/ceval.c:3660
> #40 0x080c95a5 in PyEval_EvalCodeEx (co=0xb7d8abf0,
> globals=0xb7dbbacc, locals=0xb7dbbacc,
> args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
> closure=0x0)
> at Python/ceval.c:2831
> #41 0x080c9617 in PyEval_EvalCode (co=0xb7d8abf0, globals=0xb7dbbacc,
> locals=0xb7dbbacc)
> at Python/ceval.c:494
> #42 0x080e87a8 in PyRun_FileExFlags (fp=0x8169008,
> filename=0xbfdff482 ".doctest_integer.py", start=257, globals=0xb7dbbacc,
> locals=0xb7dbbacc, closeit=1, flags=0xbfdfdfe8) at Python/pythonrun.c:1271
> #43 0x080e8a37 in PyRun_SimpleFileExFlags (fp=0x8169008,
> filename=0xbfdff482 ".doctest_integer.py", closeit=1, flags=0xbfdfdfe8)
> at Python/pythonrun.c:877
> #44 0x0805927a in Py_Main (argc=1, argv=0xbfdfe0b4) at Modules/main.c:523
> #45 0x080587c2 in main (argc=123, argv=0xbde009e3) at ./Modules/python.c:23
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---