minpack icon indicating copy to clipboard operation
minpack copied to clipboard

Valgrind reports errors for tests

Open Nicholaswogan opened this issue 3 years ago • 2 comments
trafficstars

Valgrind says that some of the tests have errors. For example test_hybrd

==7124== 
==7124== HEAP SUMMARY:
==7124==     in use at exit: 0 bytes in 0 blocks
==7124==   total heap usage: 27 allocs, 27 frees, 26,772 bytes allocated
==7124== 
==7124== All heap blocks were freed -- no leaks are possible
==7124== 
==7124== Use --track-origins=yes to see where uninitialised values come from
==7124== For lists of detected and suppressed errors, rerun with: -s
==7124== ERROR SUMMARY: 88315 errors from 436 contexts (suppressed: 0 from 0)

example error:

==7124== Conditional jump or move depends on uninitialised value(s)
==7124==    at 0x116888: __minpack_module_MOD_enorm (minpack.f90:392)
==7124==    by 0x10AC6F: MAIN__ (test_hybrd.f90:66)
==7124==    by 0x10B003: main (test_hybrd.f90:3)

Nicholaswogan avatar Dec 31 '21 01:12 Nicholaswogan

can we get valgrind in the CI?

jacobwilliams avatar Mar 05 '22 15:03 jacobwilliams

Sure, its possible to setup in the CI, but what is the value? Can we define a CI failure based on the valgrind report?

I usually use valgrind for debugging the memory safety of my C code, but running locally on a specific test or executable.

awvwgk avatar Mar 05 '22 15:03 awvwgk