Public bug reported:
(marked as not a regression)
Autopkgtest command1 fails for AMD64 and ARM64 for resolute and
stonking:
361s echo "Testing sanitizers ..."
361s
361s echo '#include <stdlib.h>
361s int main() {
361s char *x = (char*)malloc(10 * sizeof(char*));
361s free(x);
361s return x[5];
361s }
361s ' > foo.c
361s clang-$VERSION -o foo -fsanitize=address -O1 -fno-omit-frame-pointer -g
foo.c
361s if ! ./foo 2>&1 | grep -q heap-use-after-free ; then
361s echo "sanitize=address is failing"
361s exit 42
361s fi
361s
...
361s # fails on i386 with: clang: error: unsupported option '-fsanitize=thread'
for target 'i686-pc-linux-gnu'
361s if [ $DEB_HOST_ARCH != "i386" ]; then
361s clang-$VERSION -o foo -fsanitize=thread -g -O1 foo.c
361s if ! strings ./foo 2>&1 | grep -q "tsan"; then
361s echo "binary doesn't contain tsan code"
361s strings foo
361s exit 42
361s fi
361s if ! ./foo 2>&1 | grep -q "data race"; then
361s echo "sanitize=address is failing"
361s exit 42
361s fi
361s fi
361s sanitize=address is failing
363s autopkgtest [15:23:37]: test command1: -----------------------]
365s autopkgtest [15:23:39]: test command1: - - - - - - - - - - results - - -
- - - - - - -
365s command1 FAIL non-zero exit status 42
** Affects: llvm-toolchain-17 (Ubuntu)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-17 (Ubuntu Resolute)
Importance: Undecided
Status: New
** Affects: llvm-toolchain-17 (Ubuntu Stonking)
Importance: Undecided
Status: New
** Tags: foundations-todo
** Also affects: llvm-toolchain-17 (Ubuntu Resolute)
Importance: Undecided
Status: New
** Also affects: llvm-toolchain-17 (Ubuntu Stonking)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2169041
Title:
sanitize=address is failing autopkgtests
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-17/+bug/2169041/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs