On Sep 7, 8:57 am, mabshoff <[EMAIL PROTECTED]> wrote:
> On Sep 7, 8:43 am, mhampton <[EMAIL PROTECTED]> wrote:
>
> > Everything fails for me on OS X 10.5, intel. Every test has the
> > following sort of stuff:
>
> <SNIP>
>
> The above fix also fixes this issue.
>
> > -M. Hampton
>
> *But* at exit we get a lot of
>
> python(77859) malloc: *** error for object 0x2b73bf0: Non-aligned
> pointer being freed (2)
> *** set a breakpoint in malloc_error_break to debug
> python(77859) malloc: *** error for object 0x2b72a80: Non-aligned
> pointer being freed (2)
> *** set a breakpoint in malloc_error_break to debug
>
> This is due to libm4ri freeing its gray tables:
Killing the m4ri_destroy_all_codes() fixes the issue on OSX:
diff -r aa42b5c1fe1c sage/rings/polynomial/pbori.pyx
--- a/sage/rings/polynomial/pbori.pyx Sat Sep 06 18:04:55 2008 -0700
+++ b/sage/rings/polynomial/pbori.pyx Sun Sep 07 09:01:41 2008 -0700
@@ -4484,6 +4484,7 @@
M4RI_init = 1
def free_m4ri():
- m4ri_destroy_all_codes()
+ return
+ #m4ri_destroy_all_codes()
init_M4RI()
Since valgrind did not pick anything up on Linux it might be that the
OSX linker picks up libm4ri's dynamic version and hence things blow
up.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---