Dear Oleksandr,

On 17 Feb., 15:32, Oleksandr Kazymyrov <vrona.aka.ham...@gmail.com>
wrote:
> Or just run "Main.sage" from a shell (in this case, variable PATH should
> has a path to the sage directory, like this one
> "PATH=/home/user/bin/sage/:$PATH").

Then I can not reproduce it.

I started a Sage shell, and did

%%%%%%%%%%%%%%%%%%%%%%%%%%%
(sage subshell) linux-sqwp:CythonBad simon$ PATH=/home/simon/SAGE/work/
cython_change/CythonBad/:$PATH
SAGE_ROOT=/home/simon/SAGE/sage-5.0.prealpha0
(sage subshell) linux-sqwp:CythonBad simon$ ls
CFunc.spyx  CSbox.sage  Functions.c  Main.py  Main.sage  Sbox.sage
SAGE_ROOT=/home/simon/SAGE/sage-5.0.prealpha0
(sage subshell) linux-sqwp:CythonBad simon$ ./Main.sage
Compiling ./CFunc.spyx...
in c_PC
>>>
in PC
<<<
out in_PC
PC              = 0
(sage subshell) linux-sqwp:CythonBad simon$ cat Functions.c
int PC()
{
        printf("in PC\n");
        return 0;
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

So, it is indeed the "bad" version, but there is no segmentation
fault.

As you can see, this is with a recent development version of Sage. The
machine:

simon@linux-sqwp:~> uname -a
Linux linux-sqwp.site 3.1.9-1.4-desktop #1 SMP PREEMPT Fri Jan 27
08:55:10 UTC 2012 (efb5ff4) x86_64 x86_64 x86_64 GNU/Linux
simon@linux-sqwp:~> cat /etc/issue
Welcome to openSUSE 12.1 "Asparagus" - Kernel \r (\l).


simon@linux-sqwp:~> gcc --version
gcc (SUSE Linux) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


Best regards,
Simon

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to