Skip to content

rocr: Error Handling Issues#338

Closed
rocm-devops wants to merge 4 commits intoamd-stagingfrom
sclement/SWDEV-536341
Closed

rocr: Error Handling Issues#338
rocm-devops wants to merge 4 commits intoamd-stagingfrom
sclement/SWDEV-536341

Conversation

@rocm-devops
Copy link

No description provided.

The wrong variable is used in the assertion statement, should be error
checking for the value of paramEndLoc after it is modified by the call
to find().

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>
In the event that the SvmProfileControl destructor is called and
event == -1 is true then the call to close(event) is effectively
close(-1) which is undefined behaviour. This has been changed to only
call close() on valid file descriptors.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>
In the case that there is an incomplete read the call to copyTo() will
now return an error.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>
Destructors are implicitly marked with noexcept being true by default
so if its not explicitly marked false in the destructor or the
functions it calls, any thrown exceptions will cause the program to
crash.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>
@rocm-devops
Copy link
Author

!retry

@amd-hsivasun
Copy link

Imported to rocm-systems

@jayhawk-commits jayhawk-commits deleted the sclement/SWDEV-536341 branch August 11, 2025 20:56
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