Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CR-1232385 : Fix seg fault when xrt::device is created in a loop in pcie hw_emu flow #8832

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

rbramand-xilinx
Copy link
Collaborator

Problem solved by the commit

Fixed seg fault when xrt::device is created in a loop
The seg fault happens in second run as core device held by shim is recreated and existing one is destroyed and underlying handles are cleaned but in the recreation only cached object ptr is returned which is a dangling ptr.
This issue is only in pcie hw_emu flow.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

How problem was solved, alternative solutions (if any) and why they were rejected

Creating core device in shim xclOpen call only when it is null (first time)

Risks (if any) associated the changes in the commit

Low

What has been tested and how, request additional testing if necessary

Tested with test case attached in CR (https://github.com/Xilinx/Vitis_Accel_Examples/tree/main/performance/axi_burst_performance) and it passes

Documentation impact (if any)

NA

Copy link

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow. Surprising that this is surfacing now and not long ago. This is not new code.

@chvamshi-xilinx chvamshi-xilinx merged commit e2cdce8 into Xilinx:master Mar 25, 2025
21 checks passed
chvamshi-xilinx pushed a commit that referenced this pull request Mar 26, 2025
…ow (#8832) (#8835)

Signed-off-by: rbramand <[email protected]>
Co-authored-by: rbramand <[email protected]>
(cherry picked from commit e2cdce8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants