Someone else was trying to do something, and I tried something and got
a crash; mabshoff asked me to post a backtrace. (So if it is very
long, don't blame me ;-))

This is probably invalid mathematics that should raise an exception,
but it causes a crash instead on my OS X 10.4. The other person also
had this problem on Linux. mabshoff speculated it is a 32-bit/64-bit
issue, since it raises an exception for him.

Code:
K.<x>=QQ['X']; p=EuclideanDomainElement(K);
q=EuclideanDomainElement(K); (x^3+p*x+q).quo_rem(3*x^2+p)

Backtrace:
{{{
----------------------------------------------------------------------
| SAGE Version 2.10.3, Release Date: 2008-03-11                      |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
/Applications/sage/local/bin/sage-gdb-pythonstartup
GNU gdb 6.3.50-20050815 (Apple version gdb-696) (Sat Oct 20 18:16:54
GMT 2007)
Copyright 2004 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 "i386-apple-darwin"...Reading symbols for
shared libraries .. done

Reading symbols for shared libraries . done
[snipped]

----------------------------------------------------------------------
| SAGE Version 2.10.3, Release Date: 2008-03-11                      |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x00000000 in ?? ()
(gdb) bt full
#0  0x00000000 in ?? ()
No symbol table info available.
#1  0x02b6fe98 in
__pyx_f_4sage_9structure_7element_13ModuleElement__sub_c_impl
(__pyx_v_left=0xb971690, __pyx_v_right=0xa7a1de0) at sage/structure/
element.c:5681
        __pyx_r = (struct __pyx_obj_4sage_9structure_7element_ModuleElement
*) 0xb986030
        __pyx_1 = (PyObject *) 0xb986030
        __pyx_2 = (PyObject *) 0x0
#2  0x02b81fd3 in
__pyx_pf_4sage_9structure_7element_11RingElement___mul__
(__pyx_v_self=0xb971690, __pyx_v_right=0xa7a1de0) at sage/structure/
element.c:16691
        __pyx_3 = (PyObject *) 0x0
        __pyx_r = (PyObject *) 0x1
        __pyx_1 = 1
        __pyx_2 = (PyObject *) 0xb971690
#3  0x000066cb in PyObject_Call (func=0xb971550, arg=0xb960b70,
kw=0x0) at Objects/abstract.c:1860
        result = (PyObject *) 0x43bc71c
        call = (ternaryfunc) 0x2bad440
<__pyx_vtable_4sage_9structure_7element_Element>
        func = (PyObject *) 0x43bc720
#4  0x0004d930 in call_maybe (o=0xa7a1de0, name=0xde708 "__rmul__",
nameobj=0x11aa20, format=0xe3618 "(O)") at Objects/typeobject.c:967
        va = 0xbfffc680 "ê\026ó\vp\vñ\vp\vñ\v®ó\v‡\035z\n0PP"
        args = (PyObject *) 0xb960b70
        func = (PyObject *) 0xb971550
        retval = (PyObject *) 0x43bc71c
        nameobj = (PyObject **) 0x43bc71c
#5  0x0004f275 in slot_nb_multiply (self=0xb971690, other=0xa7a1de0)
at Objects/typeobject.c:4312
        cache_str = (PyObject *) 0x505080
        rcache_str = (PyObject *) 0x5050a0
        do_other = 1
#6  0x00005fe0 in binary_op1 (v=0xb971690, w=0xa7a1de0, op_slot=8) at
Objects/abstract.c:392
        x = (PyObject *) 0x4f1e8
        slotv = (binaryfunc) 0x2b81b77
<__pyx_pf_4sage_9structure_7element_11RingElement___mul__>
        slotw = (binaryfunc) 0x4f1e8 <slot_nb_multiply>
#7  0x00008a0b in PyNumber_Multiply (v=0xb971690, w=0xa7a1de0) at
Objects/abstract.c:669
        result = (PyObject *) 0xb971690
        v = (PyObject *) 0xb971690
        w = (PyObject *) 0xa7a1de0
#8  0x0006d410 in PyEval_EvalFrameEx (f=0xba20760, throwflag=0) at
Python/ceval.c:1072
        stack_pointer = (PyObject **) 0xba20750
        next_instr = (unsigned char *) 0xb91fb32 "\027e\a"
        opcode = 194451088
        oparg = 0
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0x1631c80
        v = (PyObject *) 0xb971690
        w = (PyObject *) 0xb971690
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0xb971690
        stream = (PyObject *) 0x16264b0
        fastlocals = (PyObject **) 0xba20898
        freevars = (PyObject **) 0xba20898
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0xb96f140
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0xb91fae4 "e"
        names = (PyObject *) 0xb9841b0
        consts = (PyObject *) 0xb917a80
#9  0x00070b8e in PyEval_EvalCodeEx (co=0xb96f140, globals=0xb965e40,
locals=0xb965e40, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:2831
        f = (PyFrameObject *) 0xba20760
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba20898
        freevars = (PyObject **) 0xba20898
        tstate = (PyThreadState *) 0x600170
        x = (PyObject *) 0x2bad440
        u = (PyObject *) 0x0
        co = (PyCodeObject *) 0xb96f140
        globals = (PyObject *) 0xb971690
        locals = (PyObject *) 0x43bc720
        args = (PyObject **) 0x0
        argcount = 0
        kws = (PyObject **) 0x0
        kwcount = 0
        defs = (PyObject **) 0x0
        defcount = 0
        closure = (PyObject *) 0x0
#10 0x0006edff in PyEval_EvalFrameEx (f=0xba1d980, throwflag=0) at
Python/ceval.c:494
        v = (PyObject *) 0xb965e40
        plain = 0
        stack_pointer = (PyObject **) 0x0
        next_instr = (unsigned char *) 0x66bcb8 "Wd\002"
        opcode = 194403904
        oparg = 0
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0x0
        v = (PyObject *) 0xb965e40
        w = (PyObject *) 0xb965e40
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0xb965e40
        stream = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba1dab8
        freevars = (PyObject **) 0xba1dad4
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0x162b7b8
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x66bc64 "e"
        names = (PyObject *) 0x162a810
        consts = (PyObject *) 0x161ab20
#11 0x00070b8e in PyEval_EvalCodeEx (co=0x162b7b8, globals=0x1626030,
locals=0x0, args=0xba12cac, argcount=2, kws=0xba12cb4, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2831
        f = (PyFrameObject *) 0xba1d980
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba1dab8
        freevars = (PyObject **) 0xba1dad4
        tstate = (PyThreadState *) 0x600170
        x = (PyObject *) 0x2bad440
        u = (PyObject *) 0x0
        co = (PyCodeObject *) 0x162b7b8
        globals = (PyObject *) 0xb971690
        locals = (PyObject *) 0x43bc720
        args = (PyObject **) 0x0
        argcount = 2
        kws = (PyObject **) 0xba12cb4
        kwcount = 0
        defs = (PyObject **) 0x0
        defcount = 0
        closure = (PyObject *) 0x0
#12 0x0006e465 in PyEval_EvalFrameEx (f=0xba12b60, throwflag=0) at
Python/ceval.c:3660
        co = (PyCodeObject *) 0x162b7b8
        nd = 71026464
        globals = (PyObject *) 0x1626030
        argdefs = (PyObject *) 0x2bad440
        d = (PyObject **) 0x2
        n = 2
        pfunc = (PyObject **) 0xba12cac
        w = (PyObject *) 0xb971690
        sp = (PyObject **) 0xba12cb4
        stack_pointer = (PyObject **) 0x6a2fc
        next_instr = (unsigned char *) 0x162831e "d\005"
        opcode = 2
        oparg = 1
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0xf6a60
        v = (PyObject *) 0x2
        w = (PyObject *) 0x2
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0x2
        stream = (PyObject *) 0xb960b70
        fastlocals = (PyObject **) 0xba12c98
        freevars = (PyObject **) 0xba12cac
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0x162b728
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x162828c "|\001"
        names = (PyObject *) 0x162b6f0
        consts = (PyObject *) 0x16247b0
#13 0x00070b8e in PyEval_EvalCodeEx (co=0x162b728, globals=0x1626030,
locals=0x0, args=0xba115a8, argcount=3, kws=0xba115b4, kwcount=0,
defs=0x16d24ec, defcount=2, closure=0x0) at Python/ceval.c:2831
        f = (PyFrameObject *) 0xba12b60
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba12c98
        freevars = (PyObject **) 0xba12cac
        tstate = (PyThreadState *) 0x600170
        x = (PyObject *) 0x2bad440
        u = (PyObject *) 0x0
        co = (PyCodeObject *) 0x162b728
        globals = (PyObject *) 0xb971690
        locals = (PyObject *) 0x43bc720
        args = (PyObject **) 0x16d24f4
        argcount = 3
        kws = (PyObject **) 0xba115b4
        kwcount = 0
        defs = (PyObject **) 0x16d24ec
        defcount = 2
        closure = (PyObject *) 0x0
#14 0x0006e465 in PyEval_EvalFrameEx (f=0xba11460, throwflag=0) at
Python/ceval.c:3660
        co = (PyCodeObject *) 0x162b728
        nd = 71026464
        globals = (PyObject *) 0x1626030
        argdefs = (PyObject *) 0x2bad440
        d = (PyObject **) 0x3
        n = 3
        pfunc = (PyObject **) 0xba115a8
        w = (PyObject *) 0xb971690
        sp = (PyObject **) 0xba115b4
        stack_pointer = (PyObject **) 0x0
        next_instr = (unsigned char *) 0x141aede "}\003"
        opcode = 3
        oparg = 2
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0x0
        v = (PyObject *) 0x3
        w = (PyObject *) 0x3
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0x3
        stream = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba11598
        freevars = (PyObject **) 0xba115a8
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0x162b800
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x141ae8c "x!"
        names = (PyObject *) 0x16247f0
        consts = (PyObject *) 0x1629dc8
#15 0x0007038a in PyEval_EvalFrameEx (f=0xba1f140, throwflag=0) at
Python/ceval.c:3650
        fastlocals = (PyObject **) 0xba11598
        i = 2
        f = (PyFrameObject *) 0xba11460
        tstate = (PyThreadState *) 0x600170
        stack = (PyObject **) 0xb971690
        co = (PyCodeObject *) 0x162b800
        nd = 71026464
        globals = (PyObject *) 0x1626030
        argdefs = (PyObject *) 0x2bad440
        d = (PyObject **) 0xba11460
        n = 2
        pfunc = (PyObject **) 0xba1f290
        w = (PyObject *) 0xb971690
        sp = (PyObject **) 0xba1f298
        stack_pointer = (PyObject **) 0xba1f130
        next_instr = (unsigned char *) 0x18ffa01 "}\003"
        opcode = 195105888
        oparg = 1
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0xba11460
        v = (PyObject *) 0xba11460
        w = (PyObject *) 0xba11460
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0xba11460
        stream = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba1f278
        freevars = (PyObject **) 0xba1f290
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0x162b458
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x18ff814 "|"
        names = (PyObject *) 0x162e030
        consts = (PyObject *) 0x162b420
#16 0x00070b8e in PyEval_EvalCodeEx (co=0x162b458, globals=0x1626030,
locals=0x0, args=0xba13fa0, argcount=2, kws=0xba13fa8, kwcount=0,
defs=0x16d051c, defcount=1, closure=0x0) at Python/ceval.c:2831
        f = (PyFrameObject *) 0xba1f140
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba1f278
        freevars = (PyObject **) 0xba1f290
        tstate = (PyThreadState *) 0x600170
        x = (PyObject *) 0x2bad440
        u = (PyObject *) 0x0
        co = (PyCodeObject *) 0x162b458
        globals = (PyObject *) 0xb971690
        locals = (PyObject *) 0x43bc720
        args = (PyObject **) 0x0
        argcount = 2
        kws = (PyObject **) 0xba13fa8
        kwcount = 0
        defs = (PyObject **) 0x16d051c
        defcount = 1
        closure = (PyObject *) 0x0
#17 0x0006e465 in PyEval_EvalFrameEx (f=0xba13e60, throwflag=0) at
Python/ceval.c:3660
        co = (PyCodeObject *) 0x162b458
        nd = 71026464
        globals = (PyObject *) 0x1626030
        argdefs = (PyObject *) 0x2bad440
        d = (PyObject **) 0x2
        n = 2
        pfunc = (PyObject **) 0xba13fa0
        w = (PyObject *) 0xb971690
        sp = (PyObject **) 0xba13fa8
        stack_pointer = (PyObject **) 0xba13e50
        next_instr = (unsigned char *) 0x13f3fd1 "\001d\002"
        opcode = 2
        oparg = 1
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0x1800000
        v = (PyObject *) 0x2
        w = (PyObject *) 0x2
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0x2
        stream = (PyObject *) 0x18c
        fastlocals = (PyObject **) 0xba13f98
        freevars = (PyObject **) 0xba13fa0
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0x162b338
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x13f3f4c "|"
        names = (PyObject *) 0x162b300
        consts = (PyObject *) 0x1629ad0
#18 0x00070b8e in PyEval_EvalCodeEx (co=0x162b338, globals=0x1626030,
locals=0x0, args=0x685264, argcount=2, kws=0x68526c, kwcount=0,
defs=0x16d04fc, defcount=1, closure=0x0) at Python/ceval.c:2831
        f = (PyFrameObject *) 0xba13e60
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0xba13f98
        freevars = (PyObject **) 0xba13fa0
        tstate = (PyThreadState *) 0x600170
        x = (PyObject *) 0x2bad440
        u = (PyObject *) 0x0
        co = (PyCodeObject *) 0x162b338
        globals = (PyObject *) 0xb971690
        locals = (PyObject *) 0x43bc720
        args = (PyObject **) 0x0
        argcount = 2
        kws = (PyObject **) 0x68526c
        kwcount = 0
        defs = (PyObject **) 0x16d04fc
        defcount = 1
        closure = (PyObject *) 0x0
#19 0x0006e465 in PyEval_EvalFrameEx (f=0x685120, throwflag=0) at
Python/ceval.c:3660
        co = (PyCodeObject *) 0x162b338
        nd = 71026464
        globals = (PyObject *) 0x1626030
        argdefs = (PyObject *) 0x2bad440
        d = (PyObject **) 0x2
        n = 2
        pfunc = (PyObject **) 0x685264
        w = (PyObject *) 0xb971690
        sp = (PyObject **) 0x68526c
        stack_pointer = (PyObject **) 0xb602004
        next_instr = (unsigned char *) 0x15f32cb "\001|\001"
        opcode = 2
        oparg = 1
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0x1
        v = (PyObject *) 0x2
        w = (PyObject *) 0x2
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0x2
        stream = (PyObject *) 0xb603c4e
        fastlocals = (PyObject **) 0x685258
        freevars = (PyObject **) 0x685264
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0x15f3260
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x15f32bc "|"
        names = (PyObject *) 0x15f2660
        consts = (PyObject *) 0x15f4610
#20 0x00070b8e in PyEval_EvalCodeEx (co=0x15f3260, globals=0x15f0c00,
locals=0x0, args=0x60e638, argcount=1, kws=0x60e63c, kwcount=2,
defs=0x16051f4, defcount=2, closure=0x0) at Python/ceval.c:2831
        f = (PyFrameObject *) 0x685120
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0x685258
        freevars = (PyObject **) 0x685264
        tstate = (PyThreadState *) 0x600170
        x = (PyObject *) 0x2bad440
        u = (PyObject *) 0x0
        co = (PyCodeObject *) 0x15f3260
        globals = (PyObject *) 0xb971690
        locals = (PyObject *) 0x43bc720
        args = (PyObject **) 0x16051fc
        argcount = 1
        kws = (PyObject **) 0x60e63c
        kwcount = 2
        defs = (PyObject **) 0x16051f4
        defcount = 2
        closure = (PyObject *) 0x0
#21 0x0006e465 in PyEval_EvalFrameEx (f=0x60e500, throwflag=0) at
Python/ceval.c:3660
        co = (PyCodeObject *) 0x15f3260
        nd = 71026464
        globals = (PyObject *) 0x15f0c00
        argdefs = (PyObject *) 0x2bad440
        d = (PyObject **) 0x1
        n = 5
        pfunc = (PyObject **) 0x60e638
        w = (PyObject *) 0xb971690
        sp = (PyObject **) 0x60e64c
        stack_pointer = (PyObject **) 0x60e4f0
        next_instr = (unsigned char *) 0x51143a "\001d\002"
        opcode = 1
        oparg = 512
        why = WHY_NOT
        err = 0
        x = (PyObject *) 0x0
        v = (PyObject *) 0x1
        w = (PyObject *) 0x1
        u = (PyObject *) 0xb971690
        t = (PyObject *) 0x1
        stream = (PyObject *) 0x0
        fastlocals = (PyObject **) 0x60e638
        freevars = (PyObject **) 0x60e638
        retval = (PyObject *) 0x0
        tstate = (PyThreadState *) 0x600170
        co = (PyCodeObject *) 0x54bc38
        instr_ub = -1
        instr_lb = 0
        instr_prev = -1
        first_instr = (unsigned char *) 0x5113c4 "d"
        names = (PyObject *) 0x55a530
        consts = (PyObject *) 0x516ee0
#22 0x00070b8e in PyEval_EvalCodeEx (co=0x54bc38, globals=0x51fd20,
locals=0x51fd20, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:2831
        f = (PyFrameObject *) 0x60e500
        retval = (PyObject *) 0x0
        fastlocals = (PyObject **) 0x60e638
        freevars = (PyObject **) 0x60e638
        tstate = (PyThreadState *) 0x600170
        x = (PyObject *) 0x2bad440
        u = (PyObject *) 0x0
        co = (PyCodeObject *) 0x54bc38
        globals = (PyObject *) 0xb971690
        locals = (PyObject *) 0x43bc720
        args = (PyObject **) 0x0
        argcount = 0
        kws = (PyObject **) 0x0
        kwcount = 0
        defs = (PyObject **) 0x0
        defcount = 0
        closure = (PyObject *) 0x0
#23 0x00070d42 in PyEval_EvalCode (co=0x54bc38, globals=0x51fd20,
locals=0x51fd20) at Python/ceval.c:494
        co = (PyCodeObject *) 0x2bad440
        globals = (PyObject *) 0x2bad440
        locals = (PyObject *) 0x2bad440
#24 0x00093e47 in PyRun_FileExFlags (fp=0xa000bda0,
filename=0xbfffed64 "/Applications/sage/local/bin/sage-gdb-
pythonstartup", start=257, globals=0x51fd20, locals=0x51fd20,
closeit=0, flags=0xbfffe09c) at Python/pythonrun.c:1271
        co = (PyCodeObject *) 0x54bc38
        ret = (PyObject *) 0x18494b8
        mod = (mod_ty) 0x18494b8
        arena = (struct _arena *) 0x60b630
#25 0x000941e1 in PyRun_SimpleFileExFlags (fp=0xa000bda0,
filename=0xbfffed64 "/Applications/sage/local/bin/sage-gdb-
pythonstartup", closeit=0, flags=0xbfffe09c) at Python/pythonrun.c:877
        m = (PyObject *) 0x2bad440
        d = (PyObject *) 0x51fd20
        v = (PyObject *) 0xa000bda0
        ext = 0xbfffed93 "rtup"
#26 0x00005d10 in Py_Main (argc=0, argv=0xbfffe124) at Modules/main.c:
134
        fp = (FILE *) 0xa000bda0
        startup = 0xbfffed64 "/Applications/sage/local/bin/sage-gdb-
pythonstartup"
        c = 45798464
        sts = -1610564192
        command = 0x0
        filename = 0x0
        module = 0x0
        fp = (FILE *) 0xa0001be0
        p = 0x2bad440 "£\003∑\002Ü\001∑\002›<∏\002í0∏\002Z~∂\002Ïˇ∂\002«T∏
\002nW∏\002\025Z∏\002º\\∏\002c_∏\002Eˇ∂\002"
        inspect = 1
        unbuffered = 0
        skipfirstline = 0
        stdin_is_interactive = 1
        help = 0
        version = 0
        saw_inspect_flag = 1
        saw_unbuffered_flag = 0
        cf = {
  cf_flags = 0
}
#27 0x0000235e in _start ()
No symbol table info available.
#28 0x00002285 in start ()
No symbol table info available.
(gdb) The program is running.  Exit anyway? (y or n)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to