Xilinx / Xilinx/XRT

Uninitialised value was created by a heap allocation

Open
#7,320 0 comments 0 reactions 1 assignee View on GitHub

@venkatp-xilinx is already working on this.

Since Feb 15, 2023.

Dominant language
C++
Stars
686
Forks
549
Avg merge
2d 4h
Merged PRs (30d)
70

Description

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 below xrt::device device`
depends on an unitialized value.

Do you know how to fix this?
Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.