#9583: Unhandled SIGSEGV with 4.5.2.alpha0 on t2
-----------------------+----------------------------------------------------
   Reporter:  mpatel   |       Owner:  drkirkby  
       Type:  defect   |      Status:  new       
   Priority:  blocker  |   Milestone:  sage-4.5.2
  Component:  solaris  |    Keywords:            
     Author:           |    Upstream:  N/A       
   Reviewer:           |      Merged:            
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by jhpalmieri):

 When I touch one of the files, I see
 {{{
 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
 prototypes -fPIC
 -I/scratch/palmieri/sage-4.5.2.alpha0/local/include/singular
 -I/scratch/palmieri/sage-4.5.2.alpha0/local//include
 -I/scratch/palmieri/sage-4.5.2.alpha0/local//include/csage
 -I/scratch/palmieri/sage-4.5.2.alpha0/devel//sage/sage/ext
 -I/scratch/palmieri/sage-4.5.2.alpha0/local/include/python2.6 -c
 sage/libs/singular/option.cpp -o
 build/temp.solaris-2.10-sun4v-2.6/sage/libs/singular/option.o -w
 }}}
 then a few lines later,
 {{{
 g++ -shared build/temp.solaris-2.10-sun4v-2.6/sage/libs/singular/option.o
 -L/scratch/palmieri/sage-4.5.2.alpha0/local//lib
 -L/scratch/palmieri/sage-4.5.2.alpha0/local/lib -lcsage -lm -lreadline
 -lsingular -lgivaro -lgmpxx -lgmp -lstdc++ -lntl -lpython2.6 -o
 build/lib.solaris-2.10-sun4v-2.6/sage/libs/singular/option.so
 }}}

 > So, the crucial question is: Why is Cython generating a C++ file rather
 than a C file?

 Presumably because in devel/sage/module_list.py, it says
 {{{
     Extension('sage.libs.singular.option',
               sources = ['sage/libs/singular/option.pyx'],
               libraries = ['m', 'readline', 'singular', 'givaro', 'gmpxx',
 'gmp'],
               language="c++",
               include_dirs = [SAGE_ROOT +'/local/include/singular'],
               depends = [SAGE_ROOT + "/local/include/libsingular.h"]),
 }}}
 Note the "language" line.

 > libpari-gmp.so.2 also exports a mu symbol, by the way. But it's a
 function, not data, so assigning to that could cause that crash.

 That's interesting; could that be the problem?  What can we do to fix it?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9583#comment:24>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.

Reply via email to