-
Notifications
You must be signed in to change notification settings - Fork 802
[SYCL] Enable stack printing on crashes in post commit #7934
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
Conversation
|
The initial attempt to enable LLVM stack printing on crashes(SEGFAULT) when running SYCL tests.
|
Shouldn't we link with libLLVMSupport.a?
I suppose it means that it's deployed as part of the DPC++ compiler to users. Do you think it's necessary? Maybe it's better to have a separate package with "debug tools". What do you think? |
We will link with either .a or .so depending on the LLVM build type.
Currently it's not enabled by default, and there are no plans to do so. The patch adds this dependency for one post-commit task only. |
I'm okay if this library is linked statically for DPC++ default build configuration, which is distributed to users. I'd like to avoid shipping LLVM libraries in addition to DPC++ runtime library. |
I believe we cannot enable stack printing by default in the build configuration which is distributed to users. The behavior might be unexpected and undesirable. This patch enables stack printing in one job of the post-commit workflow, so, the possible additional .so dependency should not be a problem. |
29298f0 to
17cc118
Compare
|
@romanovvlad, please, merge with the head of the |
bader
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.github/workflows/sycl_post_commit.yml changes look good to me.
@romanovvlad, is SYCL-CTS failure expected?
|
Failed Tests (1): This failure is known. |
No, but it shouldn't be related to the patch. From the logs: |
|
@romanovvlad, please, file a bug report if you think this failure is not related to the changes in your PR. |
|
@romanovvlad, I suggest we sync with the tip of the sycl branch to get up-to-date CI results. I hope this will fix SYCL-CTS job. |
The initial attempt to enable LLVM stack printing on crashes(SEGFAULT) when running SYCL tests.
The motivation is to simplify analysis of sporadic fails in CI.
The patch:
DSYCL_ENABLE_STACK_PRINTINGcmakevar is defined:a. Links the
libsycl.sowithLLVMSupportwhich provides needed functionalityb. Calls
llvm::sys::PrintStackTraceOnErrorSignal, which registers signal handlers,in a couple of places in SYCL RT
c. Adds
llvm-sybmolizerto the dependencies ofsycl-toolchaina. build linux job (
linux_defaultonly) in RelWithDebInfo modeb. pass the
cmakevar to theconfigure.pyLLVM_SYMBOLIZER_PATHin thelit.cfg.pyfor SYCL to thellvm-sybmolizerbinary from the build dir