Skip to content

address sanitizer fails for current master unless --disable-utilities is used #1208

@edhartnett

Description

@edhartnett

@DennisHeimbigner did I understand correctly that you fixed the memory leaks in the utilities and they should run under the address santizer correctly now? If so, that's great. Certainly I see a lot less memory errors.

But there are still some. From ncdump/tst_netcdf4.sh:

+ echo '*** Running tst_vlen_data.c to create test files.'
*** Running tst_vlen_data.c to create test files.
+ /home/ed/tmp/netcdf-c/ncdump/tst_vlen_data

*** Testing vlens.
*** creating vlen test file tst_vlen_data.nc...ok.
*** Tests successful!

=================================================================
==25087==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x7f3247e30b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
    #1 0x7f3246345452 in H5T_vlen_seq_mem_write (/usr/local/hdf5-1.10.4/lib/libhdf5.so.103+0x2f7452)

SUMMARY: AddressSanitizer: 4 byte(s) leaked in 1 allocation(s).

Or is it that this is just finding the existing VLEN memory leak we already know about?

Also failing:

FAIL: tst_ncgen4.sh
FAIL: tst_nccopy4.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions