Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[OpenMP] Fix crash when diagnosing dist_schedule #139277

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
May 9, 2025

Conversation

AaronBallman
Copy link
Collaborator

We were failing to pass a required argument when emitting the diagnostic, so the source range was being used in place of an index. This caused a failed assertion due to the incorrect index.

Fixes #139266

We were failing to pass a required argument when emitting the
diagnostic, so the source range was being used in place of an index.
This caused a failed assertion due to the incorrect index.

Fixes llvm#139266
@AaronBallman AaronBallman requested a review from alexey-bataev May 9, 2025 14:57
@AaronBallman AaronBallman added clang Clang issues not falling into any other category openmp clang:frontend Language frontend issues, e.g. anything involving "Sema" crash-on-invalid labels May 9, 2025
@llvmbot llvmbot added the clang:openmp OpenMP related changes to Clang label May 9, 2025
@llvmbot
Copy link
Member

llvmbot commented May 9, 2025

@llvm/pr-subscribers-openmp

@llvm/pr-subscribers-clang

Author: Aaron Ballman (AaronBallman)

Changes

We were failing to pass a required argument when emitting the diagnostic, so the source range was being used in place of an index. This caused a failed assertion due to the incorrect index.

Fixes #139266


Full diff: https://github.com/llvm/llvm-project/pull/139277.diff

3 Files Affected:

  • (modified) clang/docs/ReleaseNotes.rst (+2)
  • (modified) clang/lib/Sema/SemaOpenMP.cpp (+2-1)
  • (modified) clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp (+8)
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 6c32a7e9a5613..f7d56cfd19ce5 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -903,6 +903,8 @@ OpenMP Support
 - Added support for 'omp stripe' directive.
 - Fixed a crashing bug with ``omp tile sizes`` if the argument to ``sizes`` was
   an invalid expression. (#GH139073)
+- Fixed a crashing bug with ``omp distribute dist_schedule`` if the argument to
+  ``dist_schedule`` was not strictly positive. (#GH139266)
 
 Improvements
 ^^^^^^^^^^^^
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 2534822b72f80..e1c63d582c615 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -22753,7 +22753,8 @@ OMPClause *SemaOpenMP::ActOnOpenMPDistScheduleClause(
               ValExpr->getIntegerConstantExpr(getASTContext())) {
         if (Result->isSigned() && !Result->isStrictlyPositive()) {
           Diag(ChunkSizeLoc, diag::err_omp_negative_expression_in_clause)
-              << "dist_schedule" << ChunkSize->getSourceRange();
+              << "dist_schedule" << /*strictly positive*/ 1
+              << ChunkSize->getSourceRange();
           return nullptr;
         }
       } else if (getOpenMPCaptureRegionForClause(
diff --git a/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp b/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp
index 22d2408d3f178..72d8e33173d71 100644
--- a/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp
+++ b/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp
@@ -105,3 +105,11 @@ int main(int argc, char **argv) {
 
   return (tmain<int, 5>(argc) + tmain<char, 1>(argv[0][0])); // expected-note {{in instantiation of function template specialization 'tmain<int, 5>' requested here}} expected-note {{in instantiation of function template specialization 'tmain<char, 1>' requested here}}
 }
+
+namespace GH139266 {
+void f(void) {
+#pragma omp distribute dist_schedule(static, 0) // expected-error {[argument to 'dist_schedule' clause must be a strictly positive integer value}}
+  for (int i = 0; i < 10; i++)
+    ;
+}
+} // namespace GH139266

@AaronBallman AaronBallman merged commit b249b49 into llvm:main May 9, 2025
14 of 17 checks passed
@AaronBallman AaronBallman deleted the aballman-gh139266 branch May 9, 2025 15:12
@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/24756

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized # RUN: at line 1
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized
error: 'expected-error' diagnostics seen but not expected: 
  File /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
  File /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
2 errors generated.

--

********************



namespace GH139266 {
void f(void) {
#pragma omp distribute dist_schedule(static, 0) // expected-error {[argument to 'dist_schedule' clause must be a strictly positive integer value}}
Copy link
Contributor

@Fznamznon Fznamznon May 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a { is missing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, already fixed it. :-)

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building clang at step 7 "Add check check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/5055

Here is the relevant piece of the build log for the reference
Step 7 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized # RUN: at line 1
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized
error: 'expected-error' diagnostics seen but not expected: 
  File /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
  File /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
2 errors generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/14789

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[849/1366] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/wasm-ld
-- Testing: 21417 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp (15500 of 21417)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/lib/clang/21/include -nostdsysteminc -verify -fopenmp /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized # RUN: at line 1
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/lib/clang/21/include -nostdsysteminc -verify -fopenmp /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized
error: 'expected-error' diagnostics seen but not expected: 
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp


Testing Time: 134.87s

Total Discovered Tests: 46922
  Skipped          :     8 (0.02%)
  Unsupported      :   932 (1.99%)
  Passed           : 45954 (97.94%)
  Expectedly Failed:    27 (0.06%)
  Failed           :     1 (0.00%)
[1364/1366] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
FAILED: tools/clang/test/CMakeFiles/check-clang /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/tools/clang/test/CMakeFiles/check-clang 
cd /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/tools/clang/test && /usr/bin/python3.10 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/tools/clang/test
ninja: build stopped: subcommand failed.
['ninja', '-C', '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm', 'check-llvm', 'check-clang', 'check-lld'] exited with return code 1.
@@@STEP_FAILURE@@@
Step 7 (check) failure: check (failure)
...
[849/1366] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/wasm-ld
-- Testing: 21417 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp (15500 of 21417)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/lib/clang/21/include -nostdsysteminc -verify -fopenmp /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized # RUN: at line 1
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/lib/clang/21/include -nostdsysteminc -verify -fopenmp /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized
error: 'expected-error' diagnostics seen but not expected: 
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
2 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp


Testing Time: 134.87s

Total Discovered Tests: 46922
  Skipped          :     8 (0.02%)
  Unsupported      :   932 (1.99%)
  Passed           : 45954 (97.94%)
  Expectedly Failed:    27 (0.06%)
  Failed           :     1 (0.00%)
[1364/1366] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
FAILED: tools/clang/test/CMakeFiles/check-clang /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/tools/clang/test/CMakeFiles/check-clang 
cd /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/tools/clang/test && /usr/bin/python3.10 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm/tools/clang/test
ninja: build stopped: subcommand failed.
['ninja', '-C', '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-n_mai_jm', 'check-llvm', 'check-clang', 'check-lld'] exited with return code 1.
program finished with exit code 0
elapsedTime=1136.763526

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/17515

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized # RUN: at line 1
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized
error: 'expected-error' diagnostics seen but not expected: 
  File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
  File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
2 errors generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building clang at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/16524

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\21\include -nostdsysteminc -verify -fopenmp Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\teams_distribute_dist_schedule_messages.cpp -Wuninitialized
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\21\include' -nostdsysteminc -verify -fopenmp 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\teams_distribute_dist_schedule_messages.cpp' -Wuninitialized
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
# |   File Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\OpenMP\teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 10, 2025

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/25482

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -internal-isystem /b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/21/include -nostdsysteminc -verify -fopenmp /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized # RUN: at line 1
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -internal-isystem /b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/21/include -nostdsysteminc -verify -fopenmp /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized
error: 'expected-error' diagnostics seen but not expected: 
  File /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
  File /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
2 errors generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 10, 2025

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/26998

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-clang) failure: test (failure)
******************** TEST 'Clang :: OpenMP/teams_distribute_dist_schedule_messages.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized # RUN: at line 1
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/21/include -nostdsysteminc -verify -fopenmp /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp -Wuninitialized
error: 'expected-error' diagnostics seen but not expected: 
  File /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: cannot find start ('{{') of expected string
  File /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/OpenMP/teams_distribute_dist_schedule_messages.cpp Line 111: argument to 'dist_schedule' clause must be a strictly positive integer value
2 errors generated.

--

********************


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:openmp OpenMP related changes to Clang clang Clang issues not falling into any other category crash-on-invalid openmp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OpenMP] Assertion `Idx < getNumArgs() && "Argument index out of range!"' failed.
6 participants