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

 
 

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

bug #39105: valgrind finds errors in ntuple/test.c

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

Wed 17 Jul 2013 08:13:52 PM UTC, comment #1:

Uninitialized structure padding bytes were causing valgrind error

Patrick Alken <psa>
Project Administrator
Tue 28 May 2013 05:55:47 PM UTC, original submission:

==13627== Command: ./test
==13627==
==13627== Syscall param write(buf) points to uninitialised byte(s)
==13627== at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13627== by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13627== by 0x3000873304: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13627== by 0x30008719CC: _IO_file_xsputn@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13627== by 0x3000867CCC: fwrite (in /lib64/libc-2.12.so)
==13627== by 0x40111B: gsl_ntuple_write (ntuple.c:98)
==13627== by 0x400DE6: main (test.c:70)
==13627== Address 0x4c0e004 is not stack'd, malloc'd or (recently) free'd
==13627==
==13627== Syscall param write(buf) points to uninitialised byte(s)
==13627== at 0x30008DB650: __write_nocancel (in /lib64/libc-2.12.so)
==13627== by 0x3000871D52: _IO_file_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13627== by 0x3000873304: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13627== by 0x3000872ADF: _IO_file_close_it@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13627== by 0x3000866777: fclose@@GLIBC_2.2.5 (in /lib64/libc-2.12.so)
==13627== by 0x400FAB: gsl_ntuple_close (ntuple.c:192)
==13627== by 0x400E17: main (test.c:79)
==13627== Address 0x4c0e004 is not stack'd, malloc'd or (recently) free'd
==13627==
Completed [3/3]
==13627==
==13627== HEAP SUMMARY:
==13627== in use at exit: 0 bytes in 0 blocks
==13627== total heap usage: 9 allocs, 9 frees, 3,408 bytes allocated
==13627==
==13627== All heap blocks were freed -- no leaks are possible
==13627==
==13627== For counts of detected and suppressed errors, rerun with: -v
==13627== Use --track-origins=yes to see where uninitialised values come from
==13627== ERROR SUMMARY: 8 errors from 2 contexts (suppressed: 6 from 6)

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:13:52 PM UTCpsaStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup