NOAA-EMC / NCEPLIBS-ncio

This is a NOAA library used by NCEP GSI system to read the GFS forecast files for use in data assimilation.
Other
1 stars 6 forks source link

tests fail address sanitizer #72

Open edwardhartnett opened 1 year ago

edwardhartnett commented 1 year ago
================================================================
==3311==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8388608 byte(s) in 1 object(s) allocated from:
    #0 0x7f52e7a56867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x5584bf873c20 in tst_ncio /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:95
    #2 0x5584bf887878 in main /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:4
    #3 0x7f52e4af9d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 8388608 byte(s) in 1 object(s) allocated from:
    #0 0x7f52e7a56867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x5584bf9dce93 in __module_ncio_MOD_read_vardata_4d_r4 ../src/read_vardata_code_4d.f90:84
    #2 0x5584bf882625 in tst_ncio /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:261
    #3 0x5584bf887878 in main /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:4
    #4 0x7f52e4af9d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 262144 byte(s) in 1 object(s) allocated from:
    #0 0x7f52e7a56867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x5584bf9d65bf in __module_ncio_MOD_read_vardata_5d_r4 ../src/read_vardata_code_5d.f90:60
    #2 0x5584bf877079 in tst_ncio /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:113
    #3 0x5584bf887878 in main /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:4
    #4 0x7f52e4af9d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 131072 byte(s) in 1 object(s) allocated from:
    #0 0x7f52e7a56867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x5584bf872f49 in tst_ncio /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:92
    #2 0x5584bf887878 in main /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:4
    #3 0x7f52e4af9d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 131072 byte(s) in 1 object(s) allocated from:
    #0 0x7f52e7a56867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x5584bf9e79e9 in __module_ncio_MOD_read_vardata_2d_r4 ../src/read_vardata_code_2d.f90:78
    #2 0x5584bf8847ff in tst_ncio /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:280
    #3 0x5584bf887878 in main /home/runner/work/NCEPLIBS-ncio/NCEPLIBS-ncio/tests/tst_ncio.F90:4
    #4 0x7f52e4af9d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)