Skip to content

ASAN job is reporting issues #1

@killenb

Description

@killenb

A bad cast and a memory leak are reported

2: /scratch/source/include/VirtualLabBackend.h:389:7: runtime error: downcast of address 0x61d000002880 which does not point to an object of type 'VirtualTestDevice'
2: 0x61d000002880: note: object is of type 'ChimeraTK::VirtualLab::VirtualLabBackend<VirtualTestDevice>'
2:  01 00 00 5f  60 85 3c 02 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  11 84 40 bb
2:               ^~~~~~~~~~~~~~~~~~~~~~~
2:               vptr for 'ChimeraTK::VirtualLab::VirtualLabBackend<VirtualTestDevice>'
2: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /scratch/source/include/VirtualLabBackend.h:389:7 in 
2: ==102==ERROR: LeakSanitizer: detected memory leaks
2: 
2: Direct leak of 256 byte(s) in 4 object(s) allocated from:
2:     #0 0x9fc34f in realloc (/scratch/build-ChimeraTK-VirtualLab/testVirtualLab+0x9fc34f)
2:     #1 0x7fd2a6098333  (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x90333)
2: 
2: SUMMARY: AddressSanitizer: 256 byte(s) leaked in 4 allocation(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions