Skip to content

[DevASAN][DevMSAN] Use abort instead of exit when in error #19085

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

yingcong-wu
Copy link
Contributor

@yingcong-wu yingcong-wu commented Jun 23, 2025

When we try to exit the problem when reporting the error, the exit(1) could cause hangs in SYCL runtime because it skips some processes before the SYCL shutdown process in atexit stage. The abort() is more accurate here because it would stop the whole process right away, and no more SYCL shutdown process with the unstable, early exited program.

@yingcong-wu yingcong-wu requested a review from a team June 23, 2025 07:36
@yingcong-wu yingcong-wu changed the title use abort instead of exit [DevASAN][DevMSAN] Use abort instead of exit when in error Jun 23, 2025
@yingcong-wu yingcong-wu marked this pull request as ready for review June 23, 2025 08:48
@yingcong-wu yingcong-wu requested a review from a team as a code owner June 23, 2025 08:48
@yingcong-wu
Copy link
Contributor Author

Hi @intel/llvm-gatekeepers , this PR is ready to merge, thanks.

@steffenlarsen steffenlarsen merged commit d02c47a into intel:sycl Jun 24, 2025
34 checks passed
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.

4 participants