Loading...

sage-support@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

[sage-support] Reserved words (Sage + Cython) Oleksandr Kazymyrov Fri Feb 17 05:00:19 2012

Hi All,

After upgrading from version 4.7.2 to 4.8, one function of dozen is stopped 
working. I use a combination of Sage + Cython. You can find examples in the 
attachments.

The main problem is: when you use "PC" as the function name in "*.c" file 
sage gives an error

/home/hamsin/bin/sage/local/lib/libcsage.so(print_backtrace+0x31)[0x7f3c8b89e3a3]
/home/hamsin/bin/sage/local/lib/libcsage.so(sigdie+0x14)[0x7f3c8b89e3d5]
/home/hamsin/bin/sage/local/lib/libcsage.so(sage_signal_handler+0x20e)[0x7f3c8b89e000]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10060)[0x7f3c8dc93060]
/home/hamsin/bin/sage/local/lib/libreadline.so.6(PC+0x0)[0x7f3c861f83cc]

------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and 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.
------------------------------------------------------------------------
local/bin/sage-sage: line 460: 10163 Segmentation fault      python "$@"

If I use "PCc" or "PC_1", then there are no problems. So this is a bug, 
feature or Cython has limitations on function names. If the last point, 
then where I can see this limitations.

Best regards,
Oleksandr

Machine:
linux: Linux pcen 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:44:39 UTC 
2012 x86_64 x86_64 x86_64 GNU/Linux
sage: 'Sage Version 4.8, Release Date: 2012-01-20'

-- 
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org