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

 
 

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

bug #39102: valgrind finds errors in vector/test.c

Submitter:  Patrick Alken <psa>
Submitted:  Tue 28 May 2013 05:52: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:17 PM UTC, comment #1: 

fixed in revision 4839

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

==13566== Command: ./test
==13566==
==13566== Syscall param write(buf) points to uninitialised byte(s)
==13566==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13566==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x3000873304: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x3000872ADF: _IO_file_close_it@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x3000866777: fclose@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x41DB0E: test_long_double_file (test_source.c:731)
==13566==    by 0x42A851: main (test.c:195)
==13566==  Address 0x4c0e00c is not stack'd, malloc'd or (recently) free'd
==13566==
==13566== Syscall param write(buf) points to uninitialised byte(s)
==13566==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13566==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x3000871C19: _IO_file_xsputn@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x3000867CCC: fwrite (in /lib64/libc-2.12.so)
==13566==    by 0x43FE6F: gsl_block_complex_long_double_raw_fwrite (fwrite_source.c:92)
==13566==    by 0x4276E1: test_complex_long_double_file (test_complex_source.c:652)
==13566==    by 0x42A8CE: main (test.c:206)
==13566==  Address 0x5158edc is 12 bytes inside a block of size 5,600 alloc'd
==13566==    at 0x4A069EE: malloc (vg_replace_malloc.c:270)
==13566==    by 0x43C223: gsl_block_complex_long_double_alloc (init_source.c:39)
==13566==    by 0x42E8C7: gsl_vector_complex_long_double_alloc (init_source.c:40)
==13566==    by 0x42E968: gsl_vector_complex_long_double_calloc (init_source.c:64)
==13566==    by 0x4270BF: create_complex_long_double_vector (test_complex_source.c:33)
==13566==    by 0x427648: test_complex_long_double_file (test_complex_source.c:636)
==13566==    by 0x42A8CE: main (test.c:206)
==13566==
==13566== Syscall param write(buf) points to uninitialised byte(s)
==13566==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13566==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x3000873304: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x30008719CC: _IO_file_xsputn@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13566==    by 0x3000867CCC: fwrite (in /lib64/libc-2.12.so)
==13566==    by 0x43FE20: gsl_block_complex_long_double_raw_fwrite (fwrite_source.c:105)
==13566==    by 0x4276E1: test_complex_long_double_file (test_complex_source.c:652)
==13566==    by 0x42A8CE: main (test.c:206)
==13566==  Address 0x4c0e00c is not stack'd, malloc'd or (recently) free'd
==13566==
Completed [33743/33743]
==13566==
==13566== HEAP SUMMARY:
==13566==     in use at exit: 0 bytes in 0 blocks
==13566==   total heap usage: 23,828 allocs, 23,828 frees, 29,727,484 bytes allocated
==13566==
==13566== All heap blocks were freed -- no leaks are possible
==13566==
==13566== For counts of detected and suppressed errors, rerun with: -v
==13566== Use --track-origins=yes to see where uninitialised values come from
==13566== ERROR SUMMARY: 94 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-4448.
    Corresponding source code