On Sat, May 30, 2009 at 6:51 PM, Stephen Hartke <har...@gmail.com> wrote: > On Sat, May 30, 2009 at 9:34 AM, William Stein <wst...@gmail.com> wrote: >> >> I have release sage-4.0. It's now available at >> http://sagemath.org/src/. Binaries will follow in a day. > > Sage 4.0 compiled cleanly from source on Fedora 8 x86_64 Linux, but I get a > segfault with the following commands: > > theta1,theta2=var('theta1,theta2') > g0=theta1 > h0=g0.subs(theta1=1,theta2=0) > > Various perturbations of this seem to work (ie, not subbing theta2, using > t1,t2 as the variable names). I assume that this is a consequence of the > pynac switch. > > My version of gcc is gcc version 4.1.2 20070925 (Red Hat 4.1.2-33). The > error message is: > /data/shartke2/apps/sage-4.0/local/bin/sage-sage: line 198: 31674 > Segmentation fault sage-ipython "$@" -i > > I would submit this to trac, but the trac server seems to be down at the > moment.
Please try again. Trac is unstable right now for unknown reasons, but I did setup a script so that if it doesn't respond for about 1-2 minutes, then it is autorestarted. Thus if you would have tried again it would have worked shortly. Note that nobody is actually working on fixing trac yet (I wish somebody would, since I likely won't have time to for at least 2 more weeks). Anyway, this is now trac #6163: http://trac.sagemath.org/sage_trac/ticket/6163 By the way, I can replicate this problem on sage.math, and you're right that it is caused by switching to pynac. wst...@sage:~/build/sage-4.0.rc1$ ./sage -gdb ---------------------------------------------------------------------- | Sage Version 4.0.rc1, Release Date: 2009-05-28 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- /scratch/wstein/build/sage-4.0.rc1/local/bin/sage-ipython GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... [Thread debugging using libthread_db enabled] Python 2.5.4 (r254:67916, May 29 2009, 07:08:12) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. [New Thread 0x7fe5414a06e0 (LWP 25611)] sage: theta1,theta2=var('theta1,theta2'); theta1.subs(theta1=1,theta2=0) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fe5414a06e0 (LWP 25611)] import_submodule (mod=0xbbcde0, subname=0x7fff48cb9fbb "sage", fullname=0x7fff48cb9fb0 "sage.rings.sage") at Python/import.c:2360 2360 Python/import.c: No such file or directory. in Python/import.c (gdb) bt #0 import_submodule (mod=0xbbcde0, subname=0x7fff48cb9fbb "sage", fullname=0x7fff48cb9fb0 "sage.rings.sage") at Python/import.c:2360 #1 0x00000000004a1a1b in load_next (mod=0xbbcde0, altmod=0x72bdc0, p_name=<value optimized out>, buf=0x7fff48cb9fb0 "sage.rings.sage", p_buflen=0x7fff48cb9fa8) at Python/import.c:2220 #2 0x00000000004a1c5a in import_module_level (name=0xb0b679 "rings.qqbar", globals=0x75a010, locals=<value optimized out>, fromlist=0x4577998, level=<value optimized out>) at Python/import.c:2001 #3 0x00000000004a2105 in PyImport_ImportModuleLevel (name=0xb0b674 "sage.rings.qqbar", globals=0x1287f80, locals=0x898400, fromlist=0x4577998, level=-1) at Python/import.c:2072 #4 0x0000000000481849 in builtin___import__ (self=<value optimized out>, args=<value optimized out>, kwds=<value optimized out>) at Python/bltinmodule.c:47 #5 0x000000000041abbd in PyObject_CallFunctionObjArgs (callable=0x7fe54146d5f0) at Objects/abstract.c:1861 #6 0x00007fe52d05bac8 in __Pyx_Import (name=0xb0b650, from_list=0x4577998) at sage/rings/real_mpfi.c:20944 #7 0x00007fe52d07dfcf in __pyx_pf_4sage_5rings_9real_mpfi_24RealIntervalFieldElement___init__ (__pyx_v_self=0x26320d8, __pyx_args=<value optimized out>, __pyx_kwds=<value optimized out>) at sage/rings/real_mpfi.c:6654 #8 0x000000000045cf81 in type_call (type=0x7fe52d29ed60, args=0x7fe5413aaf00, kwds=0x0) at Objects/typeobject.c:436 #9 0x0000000000417eb3 in PyObject_Call (func=0xbbcde0, arg=0x7fff48cb9fbb, kw=0x7fff48cb9fb0) at Objects/abstract.c:1861 #10 0x00007fe52d06e47e in __pyx_pf_4sage_5rings_9real_mpfi_23RealIntervalField_class___call__ (__pyx_v_self=0x120f450, __pyx_args=<value optimized out>, __pyx_kwds=0x7fe5413aaf00) at sage/rings/real_mpfi.c:4323 #11 0x0000000000417eb3 in PyObject_Call (func=0xbbcde0, arg=0x7fff48cb9fbb, kw=0x7fff48cb9fb0) at Objects/abstract.c:1861 #12 0x00007fe52b7c44ec in __pyx_pf_4sage_5rings_16complex_interval_27ComplexIntervalFieldElement___init__ (__pyx_v_self=<value optimized out>, __pyx_args=<value optimized out>, __pyx_kwds=<value optimized out>) at sage/rings/complex_interval.c:3059 #13 0x000000000045cf81 in type_call (type=0x7fe52b9d3ac0, args=0x7fe5413aaf50, kwds=0x0) at Objects/typeobject.c:436 #14 0x0000000000417eb3 in PyObject_Call (func=0xbbcde0, arg=0x7fff48cb9fbb, kw=0x7fff48cb9fb0) at Objects/abstract.c:1861 #15 0x0000000000486592 in PyEval_EvalFrameEx (f=0x18683a0, throwflag=<value optimized out>) at Python/ceval.c:3823 #16 0x0000000000489fd4 in PyEval_EvalCodeEx (co=0x1366c60, globals=<value optimized out>, locals=<value optimized out>, args=0x4577728, argcount=2, kws=0x0, kwcount=0, defs=0x1368b68, defcount=1, closure=0x0) at Python/ceval.c:2875 #17 0x00000000004d4c0a in function_call (func=0x1369b90, arg=0x4577710, kw=0x0) at Objects/funcobject.c:517 -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---