-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
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).