Skip to content

Instantly share code, notes, and snippets.

@ldionne

ldionne/failure.log

Created May 1, 2020
Embed
What would you like to do?
(view as text)
******************** TEST 'libc++ :: std/re/re.const/re.matchflag/match_prev_avail.pass.cpp' FAILED ********************
Script:
--
: 'COMPILED WITH'; /usr/local/bin/clang++ /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp -Werror -v -g -fno-omit-frame-pointer -fsanitize=address -Werror=thread-safety -std=c++2a -include /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/support/nasty_macros.h -nostdinc++ -I/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/include -I/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/support -ftemplate-depth=270 -O1 -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wuser-defined-warnings -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -L/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/./lib -Wl,-rpath,/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/./lib -nodefaultlibs -lc++experimental -lc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc -lpthread -lrt -lm -ldl -o /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe
: 'EXECUTED AS'; /usr/bin/python3.5 /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/utils/run.py --codesign_identity "" --dependencies /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe --env ASAN_OPTIONS=detect_odr_violation=0 --execdir /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.execdir -- /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe
--
Exit Code: 1
Command Output (stderr):
--
+ : 'COMPILED WITH'
+ /usr/local/bin/clang++ /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp -Werror -v -g -fno-omit-frame-pointer -fsanitize=address -Werror=thread-safety -std=c++2a -include /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/support/nasty_macros.h -nostdinc++ -I/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/include -I/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/support -ftemplate-depth=270 -O1 -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wuser-defined-warnings -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -L/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/./lib -Wl,-rpath,/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/./lib -nodefaultlibs -lc++experimental -lc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc -lpthread -lrt -lm -ldl -o /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe
clang version 9.0.1 (https://github.com/llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
"/opt/llvm-tot/bin/clang-9" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name match_prev_avail.pass.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -v -nostdinc++ -resource-dir /opt/llvm-tot/lib/clang/9.0.1 -include /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/support/nasty_macros.h -I /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/include -I /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/include/c++build -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/support -D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -internal-isystem /usr/local/include -internal-isystem /opt/llvm-tot/lib/clang/9.0.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O1 -Werror -Werror=thread-safety -Wall -Wextra -Wuser-defined-warnings -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -std=c++2a -fdeprecated-macro -fdebug-compilation-dir /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag -ftemplate-depth 270 -ferror-limit 19 -fmessage-length 0 -fsanitize=address -fsanitize-blacklist=/opt/llvm-tot/lib/clang/9.0.1/share/asan_blacklist.txt -fsanitize-address-use-after-scope -fno-assume-sane-operator-new -fno-implicit-modules -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /tmp/match_prev_avail-c47a86.o -x c++ /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp
clang -cc1 version 9.0.1 based upon LLVM 9.0.1 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/include
/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/include/c++build
/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/test/support
/usr/local/include
/opt/llvm-tot/lib/clang/9.0.1/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
"/usr/bin/ld" --hash-style=both --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6.3.0/crtbegin.o -L/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/./lib -L/usr/lib/gcc/x86_64-linux-gnu/6.3.0 -L/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../.. -L/opt/llvm-tot/bin/../lib -L/lib -L/usr/lib --whole-archive /opt/llvm-tot/lib/clang/9.0.1/lib/linux/libclang_rt.asan-x86_64.a --no-whole-archive --dynamic-list=/opt/llvm-tot/lib/clang/9.0.1/lib/linux/libclang_rt.asan-x86_64.a.syms --whole-archive /opt/llvm-tot/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a --no-whole-archive --dynamic-list=/opt/llvm-tot/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a.syms /tmp/match_prev_avail-c47a86.o -rpath /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/./lib -lc++experimental -lc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc -lpthread -lrt -lm -ldl /usr/lib/gcc/x86_64-linux-gnu/6.3.0/crtend.o /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crtn.o
+ : 'EXECUTED AS'
+ /usr/bin/python3.5 /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/llvm/libcxx/utils/run.py --codesign_identity '' --dependencies /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe --env ASAN_OPTIONS=detect_odr_violation=0 --execdir /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.execdir -- /b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe
=================================================================
==137252==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7ffc956998bf at pc 0x0000004ce11f bp 0x7ffc956993b0 sp 0x7ffc956993a8
READ of size 1 at 0x7ffc956998bf thread T0
#0 0x4ce11e (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x4ce11e)
#1 0x4cf07d (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x4cf07d)
#2 0x4ec347 (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x4ec347)
#3 0x4c8a30 (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x4c8a30)
#4 0x4c7d48 (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x4c7d48)
#5 0x7f4720d202e0 (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
#6 0x41f0e9 (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x41f0e9)
Address 0x7ffc956998bf is located in stack of thread T0 at offset 31 in frame
#0 0x4c7a9f (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x4c7a9f)
This frame has 19 object(s):
[32, 35) 'str1' <== Memory access at offset 31 underflows this variable
[48, 112) 'ref.tmp'
[144, 208) 'ref.tmp7'
[240, 304) 'ref.tmp17'
[336, 400) 'ref.tmp28'
[432, 496) 'ref.tmp38'
[528, 592) 'ref.tmp51'
[624, 688) 'ref.tmp62'
[720, 744) 'S'
[784, 792) 'ref.tmp73'
[816, 880) 'ref.tmp80'
[912, 976) 'ref.tmp93'
[1008, 1072) 'ref.tmp108'
[1104, 1168) 'ref.tmp123'
[1200, 1264) 'ref.tmp140'
[1296, 1360) 'ref.tmp157'
[1392, 1456) 'ref.tmp172'
[1488, 1552) 'ref.tmp189'
[1584, 1648) 'ref.tmp206'
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-underflow (/b/b3/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/build/projects/libcxx/test/std/re/re.const/re.matchflag/Output/match_prev_avail.pass.cpp.tmp.exe+0x4ce11e)
Shadow bytes around the buggy address:
0x100012acb2c0: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
0x100012acb2d0: 04 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
0x100012acb2e0: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
0x100012acb2f0: 00 00 00 00 00 00 00 00 00 00 f2 f2 f2 f2 f8 f3
0x100012acb300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x100012acb310: 00 00 00 00 f1 f1 f1[f1]03 f2 00 00 00 00 00 00
0x100012acb320: 00 00 f2 f2 f2 f2 00 00 00 00 00 00 00 00 f2 f2
0x100012acb330: f2 f2 00 00 00 00 00 00 00 00 f2 f2 f2 f2 00 00
0x100012acb340: 00 00 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00
0x100012acb350: 00 00 f2 f2 f2 f2 00 00 00 00 00 00 00 00 f2 f2
0x100012acb360: f2 f2 00 00 00 00 00 00 00 00 f2 f2 f2 f2 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==137252==ABORTING
--
********************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.