https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118905
Bug ID: 118905 Summary: [15 regression] g++.dg/asan/pr118763.C fails since r15-7532-ge96e1bb69c7b46 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: testsuite-fail, wrong-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org CC: jakub at gcc dot gnu.org, jason at gcc dot gnu.org Target Milestone: --- ``` commit 4af0148d6518cc4aca0c0368cffa50e739d3fbf1 (HEAD -> master) Author: Sam James <s...@gentoo.org> Date: Mon Feb 17 00:21:30 2025 +0000 saving uncommitted changes in /etc prior to emerge run diff --git a/x86_64-pc-linux-gnu/15/x86_64-pc-linux-gnu.xfail b/x86_64-pc-linux-gnu/15/x86_64-pc-linux-gnu.xfail index 79d245e..fb9ed8e 100644 --- a/x86_64-pc-linux-gnu/15/x86_64-pc-linux-gnu.xfail +++ b/x86_64-pc-linux-gnu/15/x86_64-pc-linux-gnu.xfail @@ -5,6 +5,11 @@ FAIL: c52103x FAIL: c52104x === g++ tests === +Running g++:/gcc/testsuite/g++.dg/asan/asan.exp ... +FAIL: g++.dg/asan/pr118763.C -O0 execution test +FAIL: g++.dg/asan/pr118763.C -O1 execution test +FAIL: g++.dg/asan/pr118763.C -Os execution test [...] ``` ``` $ g++ g++.dg/asan/pr118763.C -fsanitize=address -o p && ./p ; echo $? ================================================================= ==3955310==ERROR: LeakSanitizer: detected memory leaks Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x738ab1d0fdd8 in operator new(unsigned long) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/libsanitizer/asan/asan_new_delete.cpp:86 #1 0x5db8e636e49b in foo(bool) (/home/sam/git/gcc/gcc/testsuite/p+0x49b) #2 0x5db8e636e4fb in main (/home/sam/git/gcc/gcc/testsuite/p+0x4fb) #3 0x738ab1403546 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 SUMMARY: AddressSanitizer: 4 byte(s) leaked in 1 allocation(s). 1 ``` ``` $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.9999 p, commit e6b63bba27639e7e5c6c3d7fc394639534f30aaf' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-offload-defaulted --enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.1 20250217 (experimental) 2ef2b206c4617abae60002280455f7175aaa6064 (Gentoo Hardened 15.0.9999 p, commit e6b63bba27639e7e5c6c3d7fc394639534f30aaf) ``` This was also reported at https://inbox.sourceware.org/gcc-patches/202502142216.51emgkpi320...@shliclel4214.sh.intel.com/T/#u where it was bisected to r15-7532-ge96e1bb69c7b46.