XRT icon indicating copy to clipboard operation
XRT copied to clipboard

Uninitialised value was created by a heap allocation

Open jorgekoronis opened this issue 2 years ago • 0 comments

According to Valgrind output ==52029== Conditional jump or move depends on uninitialised value(s) ==52029== at 0x4C3BF88: strlen (vg_replace_strmem.c:469) ==52029== by 0x7C3E38E: xclcpuemhal2::CpuemShim::xclClose() (in /opt/xilinx/xrt/lib/libxrt_swemu.so.2.14.354) ==52029== by 0x7C2AA55: xclClose (in /opt/xilinx/xrt/lib/libxrt_swemu.so.2.14.354) ==52029== by 0x59DB70C: std::_Sp_counted_deleter<xrt_core::device*, xrt_core::get_userpf_device(unsigned int)::{lambda(xrt_core::device*)#1}, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() (in /opt/xilinx/xrt/lib/libxrt_coreutil.so.2.14.354) ==52029== by 0x420ADA: std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (shared_ptr_base.h:155) ==52029== by 0x41F119: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() (shared_ptr_base.h:728) ==52029== by 0x41B608: std::__shared_ptr<xrt_core::device, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() (shared_ptr_base.h:1167) ==52029== by 0x41B628: std::shared_ptr<xrt_core::device>::~shared_ptr() (shared_ptr.h:103) ==52029== by 0x41B648: xrt::device::~device() (xrt_device.h:148) and `==52029== Uninitialised value was created by a heap allocation

==52029== at 0x4C36833: operator new(unsigned long) (vg_replace_malloc.c:417)

==52029== by 0x7C2CB4B: xclProbe (in /opt/xilinx/xrt/lib/libxrt_swemu.so.2.14.354)

==52029== by 0x7C14AFF: _GLOBAL__sub_I_system_swemu.cxx (in /opt/xilinx/xrt/lib/libxrt_swemu.so.2.14.354)

==52029== by 0x400F8B9: call_init.part.0 (in /usr/lib64/ld-2.28.so)

==52029== by 0x400F9B9: _dl_init (in /usr/lib64/ld-2.28.so)

==52029== by 0x656B30B: _dl_catch_exception (in /usr/lib64/libc-2.28.so)

==52029== by 0x40142E8: dl_open_worker (in /usr/lib64/ld-2.28.so)

==52029== by 0x656B2B3: _dl_catch_exception (in /usr/lib64/libc-2.28.so)

==52029== by 0x40136B0: _dl_open (in /usr/lib64/ld-2.28.so)

==52029== by 0x6E391E9: dlopen_doit (in /usr/lib64/libdl-2.28.so)

==52029== by 0x656B2B3: _dl_catch_exception (in /usr/lib64/libc-2.28.so)

==52029== by 0x656B372: _dl_catch_error (in /usr/lib64/libc-2.28.so)it seems the declaration belowxrt::device device` depends on an unitialized value.

Do you know how to fix this? Thanks

jorgekoronis avatar Jan 31 '23 09:01 jorgekoronis