[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] [bug #41457] valgrind finds errors in matrix/test.c

From: Patrick Alken
Subject: [Bug-gsl] [bug #41457] valgrind finds errors in matrix/test.c
Date: Tue, 04 Feb 2014 17:13:52 +0000
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:26.0) Gecko/20100101 Firefox/26.0


                 Summary: valgrind finds errors in matrix/test.c
                 Project: GNU Scientific Library
            Submitted by: psa
            Submitted on: Tue 04 Feb 2014 05:13:51 PM GMT
                Category: Runtime error
                Severity: 3 - Normal
        Operating System: 
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



This is related to bug #39103. I changed the gsl_block_alloc call back to
malloc from calloc for the block data. Its better to memset the data block to
0 in the vector/matrix calloc calls.

the vector_calloc memset works ok, but for some reason the matrix_calloc
memset doesn't initialize the padding bytes correctly, and valgrind finds
uninitialized errors in the long_double_fwrite routine.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]