-
Notifications
You must be signed in to change notification settings - Fork 809
[SYCL] Store string copy instead of view #20154
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
base: sycl
Are you sure you want to change the base?
[SYCL] Store string copy instead of view #20154
Conversation
Where? Why? What prevents us from changing some other part of the project to extend string lifetime there so that we could keep string_view here?
What is that? Is that part of this project? Do you have a link to CI logs? |
It was reported as a crash in downstream tests, please see CMPLRLLVM-70295 for the details. The main problem is invalid pointers to C arrays when some tests run. These arrays are parts of integration header, implemented here.
See the aforementioned tracker. Crash happens after free function kernel changes to support num_args functionality when integration header and program manager were changed. |
@aelovikov-intel Please, ping me if you need more info. |
|
@aelovikov-intel In general, this string is stored in integration header and its view was added to program manager cache. However, downstream tests reproduced scenario when the pointer to string becomes invalid. Originally, header contains string as C-array. |
Integration header strings are compile-time constants, how does it end its lifetime? Something in your story isn't right. |
I do see this but backtrace shows it:
Also, it is the reason why no one test reproduced issue |
I don't see how the stacktrace answers my question. It might contain crucial information, but it's too low level and I do expect you to summarize it and present the answer on a higher abstraction level (the one I used in the question). |
This patch fixes a downstream tests crash. It was not reproduced in e2e tests.