https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65643
Bug ID: 65643 Summary: FAIL: c-c++-common/asan/swapcontext-test-1.c on powerpc64 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org In addition to those noted in pr65479 the following failures are seen in runs of the the Address Sanitizer test suite (both C and C++): Running /src/gcc-trunk-git/gcc/testsuite/gcc.dg/asan/asan.exp ... FAIL: c-c++-common/asan/swapcontext-test-1.c -O0 execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O1 execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O2 execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O3 -fomit-frame-pointer execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O3 -fomit-frame-pointer -funroll-loops execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O3 -g execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -Os execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test FAIL: c-c++-common/asan/swapcontext-test-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test === gcc Summary === # of expected passes 1072 # of unexpected failures 10 # of unsupported tests 136 /build/gcc-5.0/gcc/xgcc version 5.0.0 20150323 (experimental) (GCC) The output of the tests suggests that the failures are due to incomplete support for the support makecontext/swapcontext functions: Child stack: 0x3fffd4ef9870 ==41773==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases! ASAN:SIGSEGV ================================================================= ==41773==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000058 (pc 0x3fffb251349c bp 0x000010012480 sp 0x3fffd4ef96f0 T0) #0 0x3fffb251349c (/lib64/libc.so.6+0x7349c) #1 0x3fffb27b79a8 in __interceptor_swapcontext /src/gcc-trunk-git/libsanitizer/asan/asan_interceptors.cc:260 #2 0x100010a0 in Run /src/gcc-trunk-git/gcc/testsuite/c-c++-common/asan/swapcontext-test-1.c:39 #3 0x10000ba8 in main /src/gcc-trunk-git/gcc/testsuite/c-c++-common/asan/swapcontext-test-1.c:54 #4 0x3fffb24e5d68 (/lib64/libc.so.6+0x45d68) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV ??:0 ?? ==41773==ABORTING