Xilinx / Xilinx/XRT

OpenCV cascade detector causes Segmentation fault on KR260

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

@chvamshi-xilinx is already working on this.

Since Nov 17, 2022.

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

Description

Hi all,
I was trying OpenCV cascade detector on KR260 and I got Segmentation fault.
My environment is as follows
Board : KR260
OS : Xilinx certified Ubuntu 22.04.01 LTS.
OpenCV version : 4.5.4+dfsg-9ubuntu4
g++ version : 11.3.0

When I ran my program on GDB, I got this message.
""
Segmentation fault.
0x0000ffffec549120 in xrt_core::get_os_info(boost::property_tree::basic_ptree<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&) () from /lib/libxrt_coreutil.so.2
""
It seems that XRT is running, even though I don't use any PL logic.
So, my questions are :

  1. Why is XRT used on just OpenCv program?
  2. Is the Segmentation fault I got due to XRT?

I attach my program and GDB log file.
opencv_cascade.zip

Any help would be greatly appreciated.
Best regards,

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.