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 authentification level.

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

Submitted by:  Patrick Alken <psa>
Submitted on:  Tue 28 May 2013 05:54:44 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Operating System: Status: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: 

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

fixed in revision 4840

Patrick Alken <psa>
Project 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>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 17 Jul 2013 08:35:30 PM UTCpsaStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup