-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Crash in calculateSEHStateForAsynchEH()
#129386
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
Comments
I reproduced this locally. Stack trace reminds me of #131248 |
Confirmed on 21.0 (trunk): https://godbolt.org/z/7vEqTfYxn struct string {};
void HandleSehExceptionsInMethodIfSupported() {
__try {}
__except (0) {
string *exception_message;
delete exception_message;
}
} Clang 21.0 crash:
|
@llvm/issue-subscribers-backend-x86 Author: JunfenZhang1 (JunfenZhang1)
Description
I'm trying to compile OpenCV and OpenCV_contrib on Windows using clang-cl version 19.1.7. Both Debug and Release modes encounter errors. Here are the CMake commands I used for each mode:
Debug modecmake -S . -B build-clang-cl -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-g -mssse3 -msse4.1" -DCMAKE_CXX_FLAGS="-g -mssse3 -msse4.1" -DBUILD_opencv_world=true -DOPENCV_EXTRA_MODULES_PATH=E:\31864\Downloads\Compresse\opencv_contrib-4.11.0\modules Release modecmake -S . -B build-clang-cl -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-O2 -DNDEBUG -mssse3 -msse4.1" -DCMAKE_CXX_FLAGS="-O2 -DNDEBUG -mssse3 -msse4.1" -DBUILD_opencv_world=true -DOPENCV_EXTRA_MODULES_PATH=E:\31864\Downloads\Compresse\opencv_contrib-4.11.0\modules However, both commands result in errors. Strangely, using Seeing the message "PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.", I've decided to submit this report. I'm a newbie in the field of computers, so please forgive me if I cause any inconvenience. Source and Run Script LinksThe source(s) and associated run script(s) can be found at: ts_gtest-b218bb.7z Error Information (Debug Mode with clang-cl)
|
calculateSEHStateForAsynchEH()
I think this is a duplication of #109576. The reason is FE doesn't generate a closed seh.scope: https://godbolt.org/z/86dr4vPjz I don't know what happens on FE since I'm not expertised on it. Hope the fix of #93251 may inspire a solution. |
@llvm/issue-subscribers-clang-codegen Author: JunfenZhang1 (JunfenZhang1)
Description
I'm trying to compile OpenCV and OpenCV_contrib on Windows using clang-cl version 19.1.7. Both Debug and Release modes encounter errors. Here are the CMake commands I used for each mode:
Debug modecmake -S . -B build-clang-cl -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-g -mssse3 -msse4.1" -DCMAKE_CXX_FLAGS="-g -mssse3 -msse4.1" -DBUILD_opencv_world=true -DOPENCV_EXTRA_MODULES_PATH=E:\31864\Downloads\Compresse\opencv_contrib-4.11.0\modules Release modecmake -S . -B build-clang-cl -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-O2 -DNDEBUG -mssse3 -msse4.1" -DCMAKE_CXX_FLAGS="-O2 -DNDEBUG -mssse3 -msse4.1" -DBUILD_opencv_world=true -DOPENCV_EXTRA_MODULES_PATH=E:\31864\Downloads\Compresse\opencv_contrib-4.11.0\modules However, both commands result in errors. Strangely, using Seeing the message "PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.", I've decided to submit this report. I'm a newbie in the field of computers, so please forgive me if I cause any inconvenience. Source and Run Script LinksThe source(s) and associated run script(s) can be found at: ts_gtest-b218bb.7z Error Information (Debug Mode with clang-cl)
|
Description
I'm trying to compile OpenCV and OpenCV_contrib on Windows using clang-cl version 19.1.7. Both Debug and Release modes encounter errors. Here are the CMake commands I used for each mode:
Debug mode
Release mode
However, both commands result in errors. Strangely, using
clang
to compile in both Debug and Release modes works fine without any issues.Seeing the message "PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.", I've decided to submit this report. I'm a newbie in the field of computers, so please forgive me if I cause any inconvenience.
Source and Run Script Links
The source(s) and associated run script(s) can be found at: ts_gtest-b218bb.7z
Error Information (Debug Mode with clang-cl)
The text was updated successfully, but these errors were encountered: