Skip to content

indirect leak in irept::detach #569

Closed
@mgudemann

Description

@mgudemann

after #528 / #568
the following asan erreror are reported

=================================================================
==31813==ERROR: LeakSanitizer: detected memory leaks

Indirect leak of 270336 byte(s) in 2112 object(s) allocated from:
    #0 0x7f9c83381532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
    #1 0x5c3c94 in irept::detach() /home/guedemann/source/diffBlue/cbmc/src/util/irep.cpp:113

Indirect leak of 16896 byte(s) in 2112 object(s) allocated from:
    #0 0x7f9c83381532 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99532)
    #1 0x5c42f7 in __gnu_cxx::new_allocator<irept>::allocate(unsigned long, void const*) /usr/include/c++/5/ext/new_allocator.h:104
    #2 0x5c42f7 in std::allocator_traits<std::allocator<irept> >::allocate(std::allocator<irept>&, unsigned long) /usr/include/c++/5/bits/alloc_traits.h:491
    #3 0x5c42f7 in std::_Vector_base<irept, std::allocator<irept> >::_M_allocate(unsigned long) /usr/include/c++/5/bits/stl_vector.h:170
    #4 0x5c42f7 in std::_Vector_base<irept, std::allocator<irept> >::_M_create_storage(unsigned long) /usr/include/c++/5/bits/stl_vector.h:185
    #5 0x5c42f7 in std::_Vector_base<irept, std::allocator<irept> >::_Vector_base(unsigned long, std::allocator<irept> const&) /usr/include/c++/5/bits/stl_vector.h:136
    #6 0x5c42f7 in std::vector<irept, std::allocator<irept> >::vector(std::vector<irept, std::allocator<irept> > const&) /usr/include/c++/5/bits/stl_vector.h:320
    #7 0x5c42f7 in irept::dt::dt(irept::dt const&) /home/guedemann/source/diffBlue/cbmc/src/util/irep.h:265
    #8 0x5c42f7 in irept::detach() /home/guedemann/source/diffBlue/cbmc/src/util/irep.cpp:113

SUMMARY: AddressSanitizer: 287232 byte(s) leaked in 4224 allocation(s).
EXIT=23
SIGNAL=0

for the standard regression tests, cbmc-java is not affected, from cpp only ModeC3

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