[libcxx] r222051 - add debug info when compiling sanitizer tests

Eric Fiselier eric at efcs.ca
Fri Nov 14 15:31:25 PST 2014


Absolutely. I've attached two files. The contain the compiler invocation
with the output of -v as well as the command line for running the test and
the output of running the test.
Let me know if I can be any more help.

/Eric

On Fri, Nov 14, 2014 at 4:19 PM, David Blaikie <dblaikie at gmail.com> wrote:

>
>
> On Fri, Nov 14, 2014 at 2:45 PM, Eric Fiselier <eric at efcs.ca> wrote:
>
>> I seem to get line numbers on certain things (It seems mostly template
>> instantiations) that I didn't get before. Here is an example.
>> You'll notice in the latter there are lines and files on #3 and #4.
>>
>
> Are you sure other parts of the build aren't turning debug info off
> somehow? Could you provide a sample command line of, say,
> '/tmp/tmpV_pKYRexe+0x4b21bc'?
>
>
>>
>>
>>
>> =========================== without -g ===================================
>>
>> WRITE of size 8 at 0x7fff55043588 thread T0
>>     #0 0x46b936 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
>>     #1 0x4b673e in uw_install_context_1 (/tmp/tmpV_pKYRexe+0x4b673e)
>>     #2 0x4b6d26 in _Unwind_Resume (/tmp/tmpV_pKYRexe+0x4b6d26)
>>     #3 0x4b21bc in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) (/tmp/tmpV_pKYRexe+0x4b21bc)
>>     #4 0x4a61ff in std::__1::promise<int>::set_value(int const&) (/tmp/tmpV_pKYRexe+0x4a61ff)
>>     #5 0x4a3921 in main (/tmp/tmpV_pKYRexe+0x4a3921)
>>     #6 0x2adefa479ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
>>     #7 0x417a16 in _start (/tmp/tmpV_pKYRexe+0x417a16)
>>
>>
>> ============================= with -g ===================================
>>
>> WRITE of size 8 at 0x7fff614945c8 thread T0
>>     #0 0x46b9f6 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
>>     #1 0x4b875e in uw_install_context_1 (/tmp/tmpWegAIsexe+0x4b875e)
>>     #2 0x4b8d46 in _Unwind_Resume (/tmp/tmpWegAIsexe+0x4b8d46)
>>     #3 0x4b3e57 in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) /home/eric/workspace/libcxx/test/../include/future:656:1
>>     #4 0x4a6799 in std::__1::promise<int>::set_value(int const&) /home/eric/workspace/libcxx/test/../include/future:1467:5
>>     #5 0x4a39e1 in main /home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp:40:13
>>     #6 0x7fd782e11ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
>>     #7 0x417ad6 in _start (/tmp/tmpWegAIsexe+0x417ad6)
>>
>>
>>
>>
>>
>> On Fri, Nov 14, 2014 at 3:33 PM, David Blaikie <dblaikie at gmail.com>
>> wrote:
>>
>>> Why -g? sanitizers should enable -gmlt by default which should suffice
>>>
>>> On Fri, Nov 14, 2014 at 2:18 PM, Eric Fiselier <eric at efcs.ca> wrote:
>>>
>>>> Author: ericwf
>>>> Date: Fri Nov 14 16:18:03 2014
>>>> New Revision: 222051
>>>>
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=222051&view=rev
>>>> Log:
>>>> add debug info when compiling sanitizer tests
>>>>
>>>> Modified:
>>>>     libcxx/trunk/test/lit.cfg
>>>>
>>>> Modified: libcxx/trunk/test/lit.cfg
>>>> URL:
>>>> http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=222051&r1=222050&r2=222051&view=diff
>>>>
>>>> ==============================================================================
>>>> --- libcxx/trunk/test/lit.cfg (original)
>>>> +++ libcxx/trunk/test/lit.cfg Fri Nov 14 16:18:03 2014
>>>> @@ -435,7 +435,7 @@ class Configuration(object):
>>>>              llvm_symbolizer = lit.util.which('llvm-symbolizer',
>>>>                                               symbolizer_search_paths)
>>>>              # Setup the sanitizer compile flags
>>>> -            self.compile_flags += ['-fno-omit-frame-pointer']
>>>> +            self.compile_flags += ['-g', '-fno-omit-frame-pointer']
>>>>              if sys.platform.startswith('linux'):
>>>>                  self.link_flags += ['-ldl']
>>>>              if san == 'Address':
>>>>
>>>>
>>>> _______________________________________________
>>>> cfe-commits mailing list
>>>> cfe-commits at cs.uiuc.edu
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141114/28d1acdd/attachment.html>
-------------- next part --------------
lit.py: lit.cfg:163: note: Command: '/usr/local/bin/clang++' '-o' '/tmp/tmp5r_4UBexe' '/home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp' '-nostdinc++' '-std=c++11' '-I/home/eric/workspace/libcxx/test/../include' '-I/home/eric/workspace/libcxx/test/../test/support' '-D__STDC_FORMAT_MACROS' '-D__STDC_LIMIT_MACROS' '-D__STDC_CONSTANT_MACROS' '-v' '-g' '-fno-omit-frame-pointer' '-fsanitize=address' '-nodefaultlibs' '-L/home/eric/workspace/build-libcxx/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxx/lib' '-L/home/eric/workspace/build-libcxxabi/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxxabi/lib' '-lc++' '-lc++abi' '-lgcc_eh' '-lc' '-lm' '-lpthread' '-lrt' '-lgcc_s' '-ldl'
Exit Code: 0
Standard Error:
--
clang version 3.6.0 
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/usr/local/bin/clang-3.6" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name set_value_const.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 -v -g -dwarf-column-info -nostdinc++ -resource-dir /usr/local/bin/../lib/clang/3.6.0 -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/eric/workspace/libcxx/test/../include -I /home/eric/workspace/libcxx/test/../test/support -internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.6.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/eric/workspace/libcxx/test/thread/futures/futures.promise -ferror-limit 19 -fmessage-length 0 -fsanitize=address -fsanitize-blacklist=/usr/local/bin/../lib/clang/3.6.0/asan_blacklist.txt -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/set_value_const-b6ffeb.o -x c++ /home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp
clang -cc1 version 3.6.0 based upon LLVM 3.6.0svn default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/eric/workspace/libcxx/test/../include
 /home/eric/workspace/libcxx/test/../test/support
 /usr/local/include
 /usr/local/bin/../lib/clang/3.6.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
 "/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /tmp/tmp5r_4UBexe /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/home/eric/workspace/build-libcxx/lib -L/home/eric/workspace/build-libcxxabi/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../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/4.8/../../.. -L/usr/local/bin/../lib -L/lib -L/usr/lib -whole-archive /usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan-x86_64.a -no-whole-archive --dynamic-list=/usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan-x86_64.a.syms -whole-archive /usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan_cxx-x86_64.a -no-whole-archive --dynamic-list=/usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan_cxx-x86_64.a.syms /tmp/set_value_const-b6ffeb.o -rpath /home/eric/workspace/build-libcxx/lib -rpath /home/eric/workspace/build-libcxxabi/lib -lc++ -lc++abi -lgcc_eh -lc -lm -lpthread -lrt -lgcc_s -ldl /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o
--
FAIL: libc++ :: thread/futures/futures.promise/set_value_const.pass.cpp (1 of 1)
******************** TEST 'libc++ :: thread/futures/futures.promise/set_value_const.pass.cpp' FAILED ********************
Compiled With: '/usr/local/bin/clang++' '-o' '/tmp/tmp5r_4UBexe' '/home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp' '-nostdinc++' '-std=c++11' '-I/home/eric/workspace/libcxx/test/../include' '-I/home/eric/workspace/libcxx/test/../test/support' '-D__STDC_FORMAT_MACROS' '-D__STDC_LIMIT_MACROS' '-D__STDC_CONSTANT_MACROS' '-v' '-g' '-fno-omit-frame-pointer' '-fsanitize=address' '-nodefaultlibs' '-L/home/eric/workspace/build-libcxx/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxx/lib' '-L/home/eric/workspace/build-libcxxabi/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxxabi/lib' '-lc++' '-lc++abi' '-lgcc_eh' '-lc' '-lm' '-lpthread' '-lrt' '-lgcc_s' '-ldl'
Command: 'env' 'ASAN_SYMBOLIZER_PATH=/usr/local/bin/llvm-symbolizer' '/tmp/tmp5r_4UBexe'
Exit Code: 1
Standard Error:
--
=================================================================
==7164==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff356d46a8 at pc 0x00000046b9f7 bp 0x7fff356d4470 sp 0x7fff356d3c20
WRITE of size 8 at 0x7fff356d46a8 thread T0
    #0 0x46b9f6 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
    #1 0x4b875e in uw_install_context_1 (/tmp/tmp5r_4UBexe+0x4b875e)
    #2 0x4b8d46 in _Unwind_Resume (/tmp/tmp5r_4UBexe+0x4b8d46)
    #3 0x4b3e57 in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) /home/eric/workspace/libcxx/test/../include/future:656:1
    #4 0x4a6799 in std::__1::promise<int>::set_value(int const&) /home/eric/workspace/libcxx/test/../include/future:1467:5
    #5 0x4a39e1 in main /home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp:40:13
    #6 0x7fd302ddfec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
    #7 0x417ad6 in _start (/tmp/tmp5r_4UBexe+0x417ad6)

Address 0x7fff356d46a8 is located in stack of thread T0==7164==AddressSanitizer CHECK failed: /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_thread.cc:233 "((ptr[0] == kCurrentStackFrameMagic)) != (0)" (0x0, 0x0)
    #0 0x48b7c4 in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_rtl.cc:70:3
    #1 0x48f1a1 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_common.cc:74:5
    #2 0x48d210 in __asan::AsanThread::GetStackFrameAccessByAddr(unsigned long, __asan::AsanThread::StackFrameAccess*) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_thread.cc:208:5
    #3 0x4868ac in __asan::DescribeAddressIfStack(unsigned long, unsigned long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:430:8
    #4 0x487468 in __asan::DescribeAddress(unsigned long, unsigned long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:557:7
    #5 0x488dd0 in __asan_report_error /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:1011:3
    #6 0x46ba14 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
    #7 0x4b875e in uw_install_context_1 (/tmp/tmp5r_4UBexe+0x4b875e)
    #8 0x4b8d46 in _Unwind_Resume (/tmp/tmp5r_4UBexe+0x4b8d46)
    #9 0x4b3e57 in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) /home/eric/workspace/libcxx/test/../include/future:656:1
    #10 0x4a6799 in std::__1::promise<int>::set_value(int const&) /home/eric/workspace/libcxx/test/../include/future:1467:5
    #11 0x4a39e1 in main /home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp:40:13
    #12 0x7fd302ddfec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
    #13 0x417ad6 in _start (/tmp/tmp5r_4UBexe+0x417ad6)

--

Compiled test failed unexpectedly!
********************
Testing Time: 0.49s
********************
Failing Tests (1):
    libc++ :: thread/futures/futures.promise/set_value_const.pass.cpp

  Unexpected Failures: 1
-------------- next part --------------
lit.py: lit.cfg:163: note: Command: '/usr/local/bin/clang++' '-o' '/tmp/tmpq3qLWwexe' '/home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp' '-nostdinc++' '-std=c++11' '-I/home/eric/workspace/libcxx/test/../include' '-I/home/eric/workspace/libcxx/test/../test/support' '-D__STDC_FORMAT_MACROS' '-D__STDC_LIMIT_MACROS' '-D__STDC_CONSTANT_MACROS' '-v' '-fno-omit-frame-pointer' '-fsanitize=address' '-nodefaultlibs' '-L/home/eric/workspace/build-libcxx/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxx/lib' '-L/home/eric/workspace/build-libcxxabi/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxxabi/lib' '-lc++' '-lc++abi' '-lgcc_eh' '-lc' '-lm' '-lpthread' '-lrt' '-lgcc_s' '-ldl'
Exit Code: 0
Standard Error:
--
clang version 3.6.0 
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/usr/local/bin/clang-3.6" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name set_value_const.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 -v -dwarf-column-info -nostdinc++ -resource-dir /usr/local/bin/../lib/clang/3.6.0 -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/eric/workspace/libcxx/test/../include -I /home/eric/workspace/libcxx/test/../test/support -internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.6.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/eric/workspace/libcxx/test/thread/futures/futures.promise -ferror-limit 19 -fmessage-length 0 -fsanitize=address -fsanitize-blacklist=/usr/local/bin/../lib/clang/3.6.0/asan_blacklist.txt -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/set_value_const-8e7946.o -x c++ /home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp
clang -cc1 version 3.6.0 based upon LLVM 3.6.0svn default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/eric/workspace/libcxx/test/../include
 /home/eric/workspace/libcxx/test/../test/support
 /usr/local/include
 /usr/local/bin/../lib/clang/3.6.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
 "/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /tmp/tmpq3qLWwexe /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/home/eric/workspace/build-libcxx/lib -L/home/eric/workspace/build-libcxxabi/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../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/4.8/../../.. -L/usr/local/bin/../lib -L/lib -L/usr/lib -whole-archive /usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan-x86_64.a -no-whole-archive --dynamic-list=/usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan-x86_64.a.syms -whole-archive /usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan_cxx-x86_64.a -no-whole-archive --dynamic-list=/usr/local/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan_cxx-x86_64.a.syms /tmp/set_value_const-8e7946.o -rpath /home/eric/workspace/build-libcxx/lib -rpath /home/eric/workspace/build-libcxxabi/lib -lc++ -lc++abi -lgcc_eh -lc -lm -lpthread -lrt -lgcc_s -ldl /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o
--
FAIL: libc++ :: thread/futures/futures.promise/set_value_const.pass.cpp (1 of 1)
******************** TEST 'libc++ :: thread/futures/futures.promise/set_value_const.pass.cpp' FAILED ********************
Compiled With: '/usr/local/bin/clang++' '-o' '/tmp/tmpq3qLWwexe' '/home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp' '-nostdinc++' '-std=c++11' '-I/home/eric/workspace/libcxx/test/../include' '-I/home/eric/workspace/libcxx/test/../test/support' '-D__STDC_FORMAT_MACROS' '-D__STDC_LIMIT_MACROS' '-D__STDC_CONSTANT_MACROS' '-v' '-fno-omit-frame-pointer' '-fsanitize=address' '-nodefaultlibs' '-L/home/eric/workspace/build-libcxx/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxx/lib' '-L/home/eric/workspace/build-libcxxabi/lib' '-Wl,-rpath' '-Wl,/home/eric/workspace/build-libcxxabi/lib' '-lc++' '-lc++abi' '-lgcc_eh' '-lc' '-lm' '-lpthread' '-lrt' '-lgcc_s' '-ldl'
Command: 'env' 'ASAN_SYMBOLIZER_PATH=/usr/local/bin/llvm-symbolizer' '/tmp/tmpq3qLWwexe'
Exit Code: 1
Standard Error:
--
=================================================================
==10938==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff4c10dfc8 at pc 0x00000046b9f7 bp 0x7fff4c10dd90 sp 0x7fff4c10d540
WRITE of size 8 at 0x7fff4c10dfc8 thread T0
    #0 0x46b9f6 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
    #1 0x4b67fe in uw_install_context_1 (/tmp/tmpq3qLWwexe+0x4b67fe)
    #2 0x4b6de6 in _Unwind_Resume (/tmp/tmpq3qLWwexe+0x4b6de6)
    #3 0x4b227c in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) (/tmp/tmpq3qLWwexe+0x4b227c)
    #4 0x4a62bf in std::__1::promise<int>::set_value(int const&) (/tmp/tmpq3qLWwexe+0x4a62bf)
    #5 0x4a39e1 in main (/tmp/tmpq3qLWwexe+0x4a39e1)
    #6 0x7ff3101e5ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
    #7 0x417ad6 in _start (/tmp/tmpq3qLWwexe+0x417ad6)

Address 0x7fff4c10dfc8 is located in stack of thread T0==10938==AddressSanitizer CHECK failed: /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_thread.cc:233 "((ptr[0] == kCurrentStackFrameMagic)) != (0)" (0x0, 0x0)
    #0 0x48b7c4 in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_rtl.cc:70:3
    #1 0x48f1a1 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_common.cc:74:5
    #2 0x48d210 in __asan::AsanThread::GetStackFrameAccessByAddr(unsigned long, __asan::AsanThread::StackFrameAccess*) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_thread.cc:208:5
    #3 0x4868ac in __asan::DescribeAddressIfStack(unsigned long, unsigned long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:430:8
    #4 0x487468 in __asan::DescribeAddress(unsigned long, unsigned long) /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:557:7
    #5 0x488dd0 in __asan_report_error /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:1011:3
    #6 0x46ba14 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
    #7 0x4b67fe in uw_install_context_1 (/tmp/tmpq3qLWwexe+0x4b67fe)
    #8 0x4b6de6 in _Unwind_Resume (/tmp/tmpq3qLWwexe+0x4b6de6)
    #9 0x4b227c in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) (/tmp/tmpq3qLWwexe+0x4b227c)
    #10 0x4a62bf in std::__1::promise<int>::set_value(int const&) (/tmp/tmpq3qLWwexe+0x4a62bf)
    #11 0x4a39e1 in main (/tmp/tmpq3qLWwexe+0x4a39e1)
    #12 0x7ff3101e5ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
    #13 0x417ad6 in _start (/tmp/tmpq3qLWwexe+0x417ad6)

--

Compiled test failed unexpectedly!
********************
Testing Time: 0.45s
********************
Failing Tests (1):
    libc++ :: thread/futures/futures.promise/set_value_const.pass.cpp

  Unexpected Failures: 1


More information about the cfe-commits mailing list