[clang] [Clang] `constexpr` builtin floating point classification / comparison functions (PR #94118)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 18 04:57:05 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/1360
Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 81685 tests, 48 workers --
Testing: 0.. 10..
FAIL: Clang :: Sema/constant-builtins-2.c (16882 of 81685)
******************** TEST 'Clang :: Sema/constant-builtins-2.c' FAILED ********************
Exit Code: 134
Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -fexperimental-new-constant-interpreter -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -fexperimental-new-constant-interpreter -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
=================================================================
==2926763==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 64 byte(s) in 4 object(s) allocated from:
#0 0xbc948bc579e8 in operator new[](unsigned long) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/compiler-rt/lib/hwasan/hwasan_new_delete.cpp:68:3
#1 0xbc9491eb1028 in getMemory /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/lib/Support/APInt.cpp:45:10
#2 0xbc9491eb1028 in llvm::APInt::initSlowCase(llvm::APInt const&) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/lib/Support/APInt.cpp:86:12
#3 0xbc949a0feec0 in APInt /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/include/llvm/ADT/APInt.h:158:7
#4 0xbc949a0feec0 in IntegralAP /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/IntegralAP.h:62:25
#5 0xbc949a0feec0 in clang::interp::IntegralAP<false> clang::interp::IntegralAP<false>::from<32u, true>(clang::interp::Integral<32u, true>, unsigned int) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/IntegralAP.h:117:12
#6 0xbc9499f798d8 in bool clang::interp::CastAP<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Interp.h:2079:7
#7 0xbc9499ec53ec in clang::interp::Compiler<clang::interp::EvalEmitter>::VisitCastExpr(clang::CastExpr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:490:20
#8 0xbc9499ec9a90 in clang::interp::Compiler<clang::interp::EvalEmitter>::visit(clang::Expr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp
#9 0xbc9499ed4bd8 in clang::interp::Compiler<clang::interp::EvalEmitter>::VisitBuiltinCallExpr(clang::CallExpr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:3963:18
#10 0xbc9499ed2aa4 in clang::interp::Compiler<clang::interp::EvalEmitter>::VisitCallExpr(clang::CallExpr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:3982:12
#11 0xbc9499ec9a90 in clang::interp::Compiler<clang::interp::EvalEmitter>::visit(clang::Expr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp
#12 0xbc9499ef5954 in clang::interp::Compiler<clang::interp::EvalEmitter>::visitExpr(clang::Expr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:3609:10
#13 0xbc9499f3311c in clang::interp::EvalEmitter::interpretExpr(clang::Expr const*, bool) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/EvalEmitter.cpp:47:14
#14 0xbc9499e86754 in clang::interp::Context::evaluateAsRValue(clang::interp::State&, clang::Expr const*, clang::APValue&) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Context.cpp:49:16
#15 0xbc9499cf86cc in EvaluateAsRValue((anonymous namespace)::EvalInfo&, clang::Expr const*, clang::APValue&) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16011:38
#16 0xbc9499cee358 in EvaluateAsRValue /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16088:10
#17 0xbc9499cee358 in clang::Expr::EvaluateAsRValue(clang::Expr::EvalResult&, clang::ASTContext const&, bool) const /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16137:10
#18 0xbc9499cf7e20 in clang::Expr::isEvaluatable(clang::ASTContext const&, clang::Expr::SideEffectsKind) const /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16412:10
#19 0xbc9499cce0e0 in clang::Expr::isConstantInitializer(clang::ASTContext&, bool, clang::Expr const**) const /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/Expr.cpp:3502:7
#20 0xbc9497df4234 in clang::Sema::CheckForConstantInitializer(clang::Expr*, unsigned int) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Sema/SemaDecl.cpp:12467:13
#21 0xbc9497df9a9c in clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Sema/SemaDecl.cpp:13749:7
#22 0xbc949779b0a0 in clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Parse/ParseDecl.cpp:2830:17
#23 0xbc9497793d6c in clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Parse/ParseDecl.cpp:2523:7
Step 10 (stage2/hwasan check) failure: stage2/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 81685 tests, 48 workers --
Testing: 0.. 10..
FAIL: Clang :: Sema/constant-builtins-2.c (16882 of 81685)
******************** TEST 'Clang :: Sema/constant-builtins-2.c' FAILED ********************
Exit Code: 134
Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -fexperimental-new-constant-interpreter -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/20/include -nostdsysteminc -fsyntax-only -fexperimental-new-constant-interpreter -verify /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/Sema/constant-builtins-2.c
=================================================================
==2926763==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 64 byte(s) in 4 object(s) allocated from:
#0 0xbc948bc579e8 in operator new[](unsigned long) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/compiler-rt/lib/hwasan/hwasan_new_delete.cpp:68:3
#1 0xbc9491eb1028 in getMemory /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/lib/Support/APInt.cpp:45:10
#2 0xbc9491eb1028 in llvm::APInt::initSlowCase(llvm::APInt const&) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/lib/Support/APInt.cpp:86:12
#3 0xbc949a0feec0 in APInt /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/include/llvm/ADT/APInt.h:158:7
#4 0xbc949a0feec0 in IntegralAP /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/IntegralAP.h:62:25
#5 0xbc949a0feec0 in clang::interp::IntegralAP<false> clang::interp::IntegralAP<false>::from<32u, true>(clang::interp::Integral<32u, true>, unsigned int) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/IntegralAP.h:117:12
#6 0xbc9499f798d8 in bool clang::interp::CastAP<(clang::interp::PrimType)4, clang::interp::Integral<32u, true>>(clang::interp::InterpState&, clang::interp::CodePtr, unsigned int) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Interp.h:2079:7
#7 0xbc9499ec53ec in clang::interp::Compiler<clang::interp::EvalEmitter>::VisitCastExpr(clang::CastExpr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:490:20
#8 0xbc9499ec9a90 in clang::interp::Compiler<clang::interp::EvalEmitter>::visit(clang::Expr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp
#9 0xbc9499ed4bd8 in clang::interp::Compiler<clang::interp::EvalEmitter>::VisitBuiltinCallExpr(clang::CallExpr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:3963:18
#10 0xbc9499ed2aa4 in clang::interp::Compiler<clang::interp::EvalEmitter>::VisitCallExpr(clang::CallExpr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:3982:12
#11 0xbc9499ec9a90 in clang::interp::Compiler<clang::interp::EvalEmitter>::visit(clang::Expr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp
#12 0xbc9499ef5954 in clang::interp::Compiler<clang::interp::EvalEmitter>::visitExpr(clang::Expr const*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Compiler.cpp:3609:10
#13 0xbc9499f3311c in clang::interp::EvalEmitter::interpretExpr(clang::Expr const*, bool) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/EvalEmitter.cpp:47:14
#14 0xbc9499e86754 in clang::interp::Context::evaluateAsRValue(clang::interp::State&, clang::Expr const*, clang::APValue&) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ByteCode/Context.cpp:49:16
#15 0xbc9499cf86cc in EvaluateAsRValue((anonymous namespace)::EvalInfo&, clang::Expr const*, clang::APValue&) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16011:38
#16 0xbc9499cee358 in EvaluateAsRValue /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16088:10
#17 0xbc9499cee358 in clang::Expr::EvaluateAsRValue(clang::Expr::EvalResult&, clang::ASTContext const&, bool) const /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16137:10
#18 0xbc9499cf7e20 in clang::Expr::isEvaluatable(clang::ASTContext const&, clang::Expr::SideEffectsKind) const /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/ExprConstant.cpp:16412:10
#19 0xbc9499cce0e0 in clang::Expr::isConstantInitializer(clang::ASTContext&, bool, clang::Expr const**) const /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/AST/Expr.cpp:3502:7
#20 0xbc9497df4234 in clang::Sema::CheckForConstantInitializer(clang::Expr*, unsigned int) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Sema/SemaDecl.cpp:12467:13
#21 0xbc9497df9a9c in clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Sema/SemaDecl.cpp:13749:7
#22 0xbc949779b0a0 in clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Parse/ParseDecl.cpp:2830:17
#23 0xbc9497793d6c in clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/lib/Parse/ParseDecl.cpp:2523:7
```
https://github.com/llvm/llvm-project/pull/94118
More information about the cfe-commits
mailing list