#13151: fix pickling of Matrix_modn_dense_double on Solaris (Mark)
----------------------------+-----------------------------------------------
       Reporter:  malb      |         Owner:  was     
           Type:  defect    |        Status:  new     
       Priority:  major     |     Milestone:  sage-5.2
      Component:  pickling  |    Resolution:          
       Keywords:            |   Work issues:          
Report Upstream:  N/A       |     Reviewers:          
        Authors:            |     Merged in:          
   Dependencies:            |      Stopgaps:          
----------------------------+-----------------------------------------------

Comment (by vbraun):

 Some more testing reveals that a) malloc on SPARC is in fact 8-byte
 aligned (as specified by the C99 standard), and b) the '''output of
 `PyString_FromStringAndSize` is never 8-byte aligned,''' not on SPARC
 32-bit, OI 32-bit, Linux 64-bit:
 {{{
 sage: cython("""
 ....: def f():
 ....:         cdef char* buf
 ....:     s = PyString_FromStringAndSize(NULL, 1*8)
 ....:     buf = <char*>s
 ....:     return <int>buf
 ....: """)
 sage:
 sage: set([ f() % 8 for i in range(100) ])
 set([4])
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13151#comment:8>
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