> > (1) Do you or do you not actually have the same problem when > > you build the same code under Linux? You don't say above. > > I hadn't had the chance to try yet, but I have now. I can't get it to > give any error in linux at all. All the tests pass, in and out of gdb > mode. I tried several times.
Turns out I was testing the wrong branch. I can reproduce the problem in linux, and here I actually get a useful-ish backtrace, since gdb has enough information. The relevant line in my .pyx file is a simple sage_free call. It looks like an array overflow problem or something. I guess this is all good news, since it seems as if gdb in os x 10.5 could get me this information too if the build had finished. (gdb) r Starting program: /home/hd/sage/local/bin/ python .doctest_binary_code.py [Thread debugging using libthread_db enabled] [New Thread -1209636192 (LWP 5346)] *** glibc detected *** free(): invalid next size (fast): 0x087836d0 *** Program received signal SIGABRT, Aborted. [Switching to Thread -1209636192 (LWP 5346)] 0xffffe410 in __kernel_vsyscall () (gdb) bt #0 0xffffe410 in __kernel_vsyscall () #1 0xb7e8f9a1 in raise () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7e912b9 in abort () from /lib/tls/i686/cmov/libc.so.6 #3 0xb7ec387a in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6 #4 0xb7ec9fd4 in malloc_usable_size () from /lib/tls/i686/cmov/ libc.so.6 #5 0xb7eca34a in free () from /lib/tls/i686/cmov/libc.so.6 #6 0xb427429d in __pyx_tp_dealloc_4sage_6coding_11binary_code_PartitionStack (o=0xb4c4c5cc) at sage/coding/binary_code.c:3413 #7 0x0808106b in insertdict (mp=0x6, key=0xb7e498c0, hash=-724865314, value=0x8137720) at Objects/dictobject.c:412 #8 0x08081486 in PyDict_SetItem (op=0xb7e28824, key=0xb7e498c0, value=0x8137720) at Objects/dictobject.c:637 #9 0x0808573a in PyObject_GenericSetAttr (obj=0xb7e2605c, name=0xb7e498c0, value=0x8137720) at Objects/object.c:1427 #10 0x08084e0c in PyObject_SetAttr (v=0xb7e2605c, name=0xb7e498c0, value=0x8137720) at Objects/object.c:1183 #11 0x08084f7b in PyObject_SetAttrString (v=0xb7e2605c, name=0x811bb0b "_", w=0x8137720) at Objects/object.c:1097 #12 0x080e8144 in sys_displayhook (self=0x0, o=0xb7de6440) at Python/ sysmodule.c:105 #13 0x0805aa1c in PyObject_Call (func=0x14e2, arg=0x0, kw=0x0) at Objects/abstract.c:1860 #14 0x080bc8f3 in PyEval_CallObjectWithKeywords (func=0x0, arg=0xb42a9b6c, kw=0x0) at Python/ceval.c:3433 #15 0x080c23ca in PyEval_EvalFrameEx (f=0x8d43b5c, throwflag=0) at Python/ceval.c:1530 #16 0x080c420e in PyEval_EvalCodeEx (co=0xb4c3ef50, globals=0xb429e9bc, locals=0xb429e9bc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c: 2831 #17 0x080c2b66 in PyEval_EvalFrameEx (f=0x877e1fc, throwflag=0) at Python/ceval.c:494 #18 0x080c420e in PyEval_EvalCodeEx (co=0xb42ed9b0, globals=0xb42e8b54, locals=0x0, args=0x8d421d0, argcount=4, kws=0x8d421e0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c: 2831 #19 0x080c2367 in PyEval_EvalFrameEx (f=0x8d4207c, throwflag=0) at Python/ceval.c:3660 #20 0x080c420e in PyEval_EvalCodeEx (co=0xb42edbf0, globals=0xb42e8b54, locals=0x0, args=0x8c1b3b0, argcount=2, kws=0x8c1b3b8, kwcount=0, defs=0xb42ff1c8, defcount=3, closure=0x0) at Python/ ceval.c:2831 #21 0x080c2367 in PyEval_EvalFrameEx (f=0x8c1b244, throwflag=0) at Python/ceval.c:3660 #22 0x080c420e in PyEval_EvalCodeEx (co=0xb42f1800, globals=0xb42e8b54, locals=0x0, args=0x816b260, argcount=1, kws=0x816b264, kwcount=3, defs=0xb42f4278, defcount=9, closure=0x0) at Python/ ceval.c:2831 #23 0x080c2367 in PyEval_EvalFrameEx (f=0x816b124, throwflag=0) at Python/ceval.c:3660 #24 0x080c420e in PyEval_EvalCodeEx (co=0xb7e01188, globals=0xb7e3eacc, locals=0xb7e3eacc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c: 2831 #25 0x080c4396 in PyEval_EvalCode (co=0x0, globals=0x0, locals=0x0) at Python/ceval.c:494 #26 0x080e2c6e in PyRun_FileExFlags (fp=0x8161008, filename=0xbf8f739a ".doctest_binary_code.py", start=0, globals=0x0, locals=0x0, closeit=1, flags=0xbf8f6b88) at Python/pythonrun.c:1271 #27 0x080e2fa9 in PyRun_SimpleFileExFlags (fp=<value optimized out>, filename=0xbf8f739a ".doctest_binary_code.py", closeit=1, flags=0xbf8f6b88) at Python/pythonrun.c:877 #28 0x08056d0f in Py_Main (argc=1, argv=0xbf8f6c24) at Modules/main.c: 523 #29 0xb7e7bea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so. 6 #30 0x080561b1 in _start () at ../sysdeps/i386/elf/start.S:119 --~--~---------~--~----~------------~-------~--~----~ 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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---