Closed rokuz closed 4 months ago
This really seems like a workaround for a platform issue, and I'm not even sure that it solves whatever the problem is rather than perturbing things so it happens to work by coincidence. I am going to close this for now, feel free to maintain a downstream patch until your OS vendor fixes your C++ standard library.
@arcady-lunarg Thank you for the answer.
patch until your OS vendor fixes your C++ standard library.
Are you sure that the problem is connected to C++ library, but not to the glslang codebase? Taking into account how many C++ code works on arm64-v8a, I don't really think it's a problem with C++ standard library.
I agree that it's workaround and I hope you continue investigation and provide stable solution for glslang. At the moment, we can't compile shaders on most of Android devices.
Added issue for your convenience: https://github.com/KhronosGroup/glslang/issues/3534
Problem
Compiling the following shader to SPIR-V on Android device (arm64-v8a) leads to crash in compiler.
Crash stack:
Tested on 2 Android devices both with Android 14, crash is stable. After debugging, line of code that leads to it was found.
Workaround was also found, equivalent code works. The original problem is not reproducable on other platforms. Address sanitizer didn't show any issue.