bugGNU Scientific Library - Bugs: bug #39103, valgrind finds errors in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39103: valgrind finds errors in matrix/test.c

Submitter:  Patrick Alken <psa>
Submitted:  Tue 28 May 2013 05:53:16 PM UTC
   
 
Category:  Runtime error Severity:  3 - Normal
Operating System:  Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release: 

Wed 17 Jul 2013 08:25:30 PM UTC, comment #1: 

fixed in revision 4839

Patrick Alken <psa>
Group administrator
Tue 28 May 2013 05:53:16 PM UTC, original submission:  

==13577== Command: ./test
==13577==
==13577== Syscall param write(buf) points to uninitialised byte(s)
==13577==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13577==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x3000871C19: _IO_file_xsputn@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x3000867CCC: fwrite (in /lib64/libc-2.12.so)
==13577==    by 0x44C82F: gsl_block_long_double_raw_fwrite (fwrite_source.c:92)
==13577==    by 0x41FC06: test_long_double_binary (test_source.c:689)
==13577==    by 0x42C76B: main (test.c:196)
==13577==  Address 0x4fdc2fc is 12 bytes inside a block of size 90,736 alloc'd
==13577==    at 0x4A069EE: malloc (vg_replace_malloc.c:270)
==13577==    by 0x448C43: gsl_block_long_double_alloc (init_source.c:39)
==13577==    by 0x4310B8: gsl_matrix_long_double_alloc (init_source.c:47)
==13577==    by 0x431190: gsl_matrix_long_double_calloc (init_source.c:70)
==13577==    by 0x41FB38: test_long_double_binary (test_source.c:672)
==13577==    by 0x42C76B: main (test.c:196)
==13577==
==13577== Syscall param write(buf) points to uninitialised byte(s)
==13577==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13577==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x3000873304: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x3000872ADF: _IO_file_close_it@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x3000866777: fclose@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x41FC10: test_long_double_binary (test_source.c:690)
==13577==    by 0x42C76B: main (test.c:196)
==13577==  Address 0x4c0e00c is not stack'd, malloc'd or (recently) free'd
==13577==
==13577== Syscall param write(buf) points to uninitialised byte(s)
==13577==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13577==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x3000873304: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x30008719CC: _IO_file_xsputn@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13577==    by 0x3000867CCC: fwrite (in /lib64/libc-2.12.so)
==13577==    by 0x44C82F: gsl_block_long_double_raw_fwrite (fwrite_source.c:92)
==13577==    by 0x433215: gsl_matrix_long_double_fwrite (file_source.c:75)
==13577==    by 0x41F8ED: test_long_double_binary_noncontiguous (test_source.c:740)
==13577==    by 0x42C83D: main (test.c:211)
==13577==  Address 0x4c0e00c is not stack'd, malloc'd or (recently) free'd
==13577==
Completed [1012/1012]
==13577==
==13577== HEAP SUMMARY:
==13577==     in use at exit: 0 bytes in 0 blocks
==13577==   total heap usage: 621 allocs, 621 frees, 6,923,322 bytes allocated
==13577==
==13577== All heap blocks were freed -- no leaks are possible
==13577==
==13577== For counts of detected and suppressed errors, rerun with: -v
==13577== Use --track-origins=yes to see where uninitialised values come from
==13577== ERROR SUMMARY: 72 errors from 3 contexts (suppressed: 6 from 6)

Patrick Alken <psa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psa (Submitted the item)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-17 psa StatusConfirmed Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code