Skip to content

CR-1247943: Fix seg fault at end of execution in hardware emulation caused by profiling#9302

Merged
chvamshi-xilinx merged 1 commit into
Xilinx:masterfrom
jvillarre:CR1247943
Oct 8, 2025
Merged

CR-1247943: Fix seg fault at end of execution in hardware emulation caused by profiling#9302
chvamshi-xilinx merged 1 commit into
Xilinx:masterfrom
jvillarre:CR1247943

Conversation

@jvillarre
Copy link
Copy Markdown
Collaborator

Problem solved by the commit

On some edge boards and runs, profiling was crashing when dumping the summary file. This was due to a query for device information, which should not be called during static object destruction.

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

The issue was resolved by fetching the information profiling needs from XRT during profiling initialization and caching it, so we do not call the device query during static object destruction.

Risks (if any) associated the changes in the commit

Low risk as this function call is normally called in all flows and the additional call is done at a safe spot. Additionally, this only affects hardware emulation designs as the original call that caused the crash is blocked by a guard and only executed in hardware emulation designs.

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

The original failing hardware emulation test has been verified to work.

Documentation impact (if any)

No documentation impact.

…at destruction we do not call xrt::system_linux constructs

Signed-off-by: Jason Villarreal <jvillar@xilinx.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 7, 2025

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

@chvamshi-xilinx chvamshi-xilinx merged commit 5b7698a into Xilinx:master Oct 8, 2025
22 checks passed
@jvillarre jvillarre deleted the CR1247943 branch October 15, 2025 20:46
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.

2 participants