[clang] [clang][bytecode] Allocate IntegralAP and Floating types using an allocator (PR #144246)
David Spickett via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 19 02:24:53 PDT 2025
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/144246 at github.com>
DavidSpickett wrote:
So after the fixup this failed again:
https://lab.llvm.org/buildbot/#/builders/154/builds/17588
```
******************** TEST 'Clang :: AST/ByteCode/intap.cpp' FAILED ********************
Exit Code: 134
Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/21/include -nostdsysteminc -fexperimental-new-constant-interpreter -fms-extensions -std=c++11 -verify=expected,both /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/intap.cpp # RUN: at line 1
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/21/include -nostdsysteminc -fexperimental-new-constant-interpreter -fms-extensions -std=c++11 -verify=expected,both /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/intap.cpp
clang: ../llvm/llvm/include/llvm/ADT/APInt.h:121: llvm::APInt::APInt(unsigned int, uint64_t, bool, bool): Assertion `llvm::isIntN(BitWidth, val) && "Value is not an N-bit signed value"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/21/include -nostdsysteminc -fexperimental-new-constant-interpreter -fms-extensions -std=c++11 -verify=expected,both /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/intap.cpp
1. /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/intap.cpp:28:35: current parser token ';'
#0 0x0c4b3bd8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang+0x1b53bd8)
#1 0x0c4b141c llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang+0x1b5141c)
#2 0x0c4b465c SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0xf15ad6f0 __default_rt_sa_restorer ./signal/../sysdeps/unix/sysv/linux/arm/sigrestorer.S:80:0
#4 0xf159db06 ./csu/../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47:0
#5 0xf15dd292 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#6 0xf15ac840 gsignal ./signal/../sysdeps/posix/raise.c:27:6
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/tools/clang/test/AST/ByteCode/Output/intap.cpp.script: line 4: 2130530 Aborted /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/21/include -nostdsysteminc -fexperimental-new-constant-interpreter -fms-extensions -std=c++11 -verify=expected,both /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/intap.cpp
--
********************
```
@antmox please reproduce this on Armv8 32-bit and help @tbaederr figure out the problem.
If you're lucky, getting a decent callstack will be enough to figure it out. Another approach is to scan the changes for any use of `size_t`, that would become 32-bit on that bot.
https://github.com/llvm/llvm-project/pull/144246
More information about the cfe-commits
mailing list