bugGNU Scientific Library - Bugs: bug #39104, valgrind finds errors in rng/test.c

 
 

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

bug #39104: valgrind finds errors in rng/test.c

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

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

fixed in revision 4840

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

==13589== Command: ./test
==13589==
==13589== Syscall param write(buf) points to uninitialised byte(s)
==13589==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13589==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13589==    by 0x3000871C19: _IO_file_xsputn@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13589==    by 0x3000867CCC: fwrite (in /lib64/libc-2.12.so)
==13589==    by 0x40362B: gsl_rng_fwrite (file.c:49)
==13589==    by 0x4016C1: rng_read_write_test (test.c:401)
==13589==    by 0x402240: main (test.c:198)
==13589==  Address 0x4d787e4 is 4 bytes inside a block of size 131,080 alloc'd
==13589==    at 0x4A069EE: malloc (vg_replace_malloc.c:270)
==13589==    by 0x40830B: gsl_rng_alloc (rng.c:39)
==13589==    by 0x401675: rng_read_write_test (test.c:392)
==13589==    by 0x402240: main (test.c:198)
==13589==
==13589== Syscall param write(buf) points to uninitialised byte(s)
==13589==    at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13589==    by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13589==    by 0x3000873304: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13589==    by 0x3000872ADF: _IO_file_close_it@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13589==    by 0x3000866777: fclose@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13589==    by 0x4016CC: rng_read_write_test (test.c:402)
==13589==    by 0x402240: main (test.c:198)
==13589==  Address 0x4c0e384 is not stack'd, malloc'd or (recently) free'd
==13589==

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