#7773: Test failures with Fedora 12 on intel i7 860 processor
----------------------+-----------------------------------------------------
   Reporter:  jsp     |       Owner:  GeorgSWeber
       Type:  defect  |      Status:  new        
   Priority:  minor   |   Milestone:  sage-4.3.1 
  Component:  build   |    Keywords:             
Work_issues:          |      Author:             
   Upstream:  N/A     |    Reviewer:             
     Merged:          |  
----------------------+-----------------------------------------------------
Description changed by jsp:

Old description:

> On this machine I got memory errors, some of wich are reported by
> glibc-2.11 as double free:
>
> *** glibc detected *** python: double free or corruption (fasttop):
>
> {{{
>        sage -t  devel/sage/sage/groups/generic.py # Segfault
>        sage -t  devel/sage/sage/matrix/matrix_space.py # Segfault
>        sage -t  devel/sage/sage/matrix/matrix_sparse.pyx # Segfault
>        sage -t  devel/sage/sage/matrix/matrix2.pyx # Segfault
>        sage -t  devel/sage/sage/schemes/elliptic_curves/ell_point.py #
> Segfault
>        sage -t
> devel/sage/sage/schemes/elliptic_curves/ell_finite_field.py # Segfault
> [snipped]
> }}}
>
> Valgrind to the rescue! I made a new optional spkg:
> [http://trac.sagemath.org/sage_trac/ticket/7766]
>
> Rebuild sage-4.3 with SAGE_VALGRIND="yes", installed valgrind-3.6.0.svn
> with the help of
> [http://wiki.sagemath.org/ValgrindingSage]
>
> ./sage -t -valgrind devel/sage/sage/matrix/matrix_sparse.pyx
>
> Some results:
>
> {{{
> ==8933== Invalid free() / delete / delete[]
> ==8933==    at 0x4A04D72: free (vg_replace_malloc.c:325)
> ==8933==    by 0xE2F6A53: __pyx_f_4sage_5rings_6memory_pymem_free
> (memory.c:1993)
> ==8933==    by 0xE716DBC: randclear_lc (in
> /home/jaap/downloads/sage-4.3/local/lib/libgmp.so.3.4.6)
> ==8933==    by 0x20D1B78F: gmp_randclass::~gmp_randclass() (gmpxx.h:3248)
> ==8933==    by 0x3D2D635B71: exit (in /lib64/libc-2.11.so)
> ==8933==    by 0x4BA729: handle_system_exit (pythonrun.c:1716)
> ==8933==    by 0x4BA944: PyErr_PrintEx (pythonrun.c:1126)
> ==8933==    by 0x4BB68F: PyRun_SimpleFileExFlags (pythonrun.c:935)
> ==8933==    by 0x413CAE: Py_Main (main.c:599)
> ==8933==    by 0x3D2D61EB1C: (below main) (in /lib64/libc-2.11.so)
> ==8933==  Address 0x347fd730 is 0 bytes inside a block of size 8 free'd
> ==8933==    at 0x4A04D72: free (vg_replace_malloc.c:325)
> ==8933==    by 0xE2F6A53: __pyx_f_4sage_5rings_6memory_pymem_free
> (memory.c:1993)
> ==8933==    by 0xE716DBC: randclear_lc (in
> /home/jaap/downloads/sage-4.3/local/lib/libgmp.so.3.4.6)
> ==8933==    by 0x3D2D635B71: exit (in /lib64/libc-2.11.so)
> ==8933==    by 0x4BA729: handle_system_exit (pythonrun.c:1716)
> ==8933==    by 0x4BA944: PyErr_PrintEx (pythonrun.c:1126)
> ==8933==    by 0x4BB68F: PyRun_SimpleFileExFlags (pythonrun.c:935)
> ==8933==    by 0x413CAE: Py_Main (main.c:599)
> ==8933==    by 0x3D2D61EB1C: (below main) (in /lib64/libc-2.11.so)
>
> }}}
>
> The complete report can be found on my homepage on sage.math
> (i'll put a link here as soon sage.math is up again)
> valgrind_memcheck_test_matrix_sparse.bz2
>
> Jaap

New description:

 On this machine I got memory errors, some of wich are reported by
 glibc-2.11 as double free:

 *** glibc detected *** python: double free or corruption (fasttop):

 {{{
        sage -t  devel/sage/sage/groups/generic.py # Segfault
        sage -t  devel/sage/sage/matrix/matrix_space.py # Segfault
        sage -t  devel/sage/sage/matrix/matrix_sparse.pyx # Segfault
        sage -t  devel/sage/sage/matrix/matrix2.pyx # Segfault
        sage -t  devel/sage/sage/schemes/elliptic_curves/ell_point.py #
 Segfault
        sage -t
 devel/sage/sage/schemes/elliptic_curves/ell_finite_field.py # Segfault
 [snipped]
 }}}

 Valgrind to the rescue! I made a new optional spkg:
 [http://trac.sagemath.org/sage_trac/ticket/7766]

 Rebuild sage-4.3 with SAGE_VALGRIND="yes", installed valgrind-3.6.0.svn
 with the help of
 [http://wiki.sagemath.org/ValgrindingSage]

 ./sage -t -valgrind devel/sage/sage/matrix/matrix_sparse.pyx

 Some results:

 {{{
 ==8933== Invalid free() / delete / delete[]
 ==8933==    at 0x4A04D72: free (vg_replace_malloc.c:325)
 ==8933==    by 0xE2F6A53: __pyx_f_4sage_5rings_6memory_pymem_free
 (memory.c:1993)
 ==8933==    by 0xE716DBC: randclear_lc (in
 /home/jaap/downloads/sage-4.3/local/lib/libgmp.so.3.4.6)
 ==8933==    by 0x20D1B78F: gmp_randclass::~gmp_randclass() (gmpxx.h:3248)
 ==8933==    by 0x3D2D635B71: exit (in /lib64/libc-2.11.so)
 ==8933==    by 0x4BA729: handle_system_exit (pythonrun.c:1716)
 ==8933==    by 0x4BA944: PyErr_PrintEx (pythonrun.c:1126)
 ==8933==    by 0x4BB68F: PyRun_SimpleFileExFlags (pythonrun.c:935)
 ==8933==    by 0x413CAE: Py_Main (main.c:599)
 ==8933==    by 0x3D2D61EB1C: (below main) (in /lib64/libc-2.11.so)
 ==8933==  Address 0x347fd730 is 0 bytes inside a block of size 8 free'd
 ==8933==    at 0x4A04D72: free (vg_replace_malloc.c:325)
 ==8933==    by 0xE2F6A53: __pyx_f_4sage_5rings_6memory_pymem_free
 (memory.c:1993)
 ==8933==    by 0xE716DBC: randclear_lc (in
 /home/jaap/downloads/sage-4.3/local/lib/libgmp.so.3.4.6)
 ==8933==    by 0x3D2D635B71: exit (in /lib64/libc-2.11.so)
 ==8933==    by 0x4BA729: handle_system_exit (pythonrun.c:1716)
 ==8933==    by 0x4BA944: PyErr_PrintEx (pythonrun.c:1126)
 ==8933==    by 0x4BB68F: PyRun_SimpleFileExFlags (pythonrun.c:935)
 ==8933==    by 0x413CAE: Py_Main (main.c:599)
 ==8933==    by 0x3D2D61EB1C: (below main) (in /lib64/libc-2.11.so)

 }}}

 The complete report can be found on my homepage on sage.math
 (i'll put a link here as soon sage.math is up again)
 valgrind_memcheck_test_matrix_sparse.bz2

 It's here:
 
[http://sage.math.washington.edu/home/jsp/valgrind_memcheck_test_matrix_sparse.bz2]

 Jaap

--

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