#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):
For debugging purposes it might be useful to know that you can turn off
the misalignment support and trigger bus errors on x86 processors:
{{{
#!c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
/* Run as (on x86 processors):
* $ gcc -o test test.c && ./test
* Bus error (core dumped)
*/
int main(void)
{
__asm__("pushf\n"
"orl $0x40000, (%rsp)\n"
"popf");
char *ptr = malloc(20);
ptr += 4;
uint64_t *uint64_ptr = (uint64_t*)ptr;
(*uint64_ptr) = (uint64_t)1;
return 0;
}
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13151#comment:9>
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.