[PATCH] D20425: [sanitizer] Don't use -fomit-frame-pointer in COMPILER_RT_DEBUG=On builds

Filipe Cabecinhas via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 04:15:04 PDT 2016


filcab added a comment.

> What is your OS X version?


[llvm-cmake]% sw_vers
ProductName:    Mac OS X
ProductVersion: 10.11.5
BuildVersion:   15F34

> What is your CMake configure line?


That has been lost in time. But I usually just add all the dirs for
clang, libcxx, etc. C*FLAGS aren't special, I just set the build mode
to Debug or Release.

> What is the output of:

> 

> - `otool -L /Users/filcab/work/llvm-cmake/lib/clang/3.9.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib`

> - `otool -l /Users/filcab/work/llvm-cmake/lib/clang/3.9.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib`

> - `otool -L /Users/filcab/work/llvm-cmake/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Output/malloc_context_size.cc.tmp`

> - `otool -l /Users/filcab/work/llvm-cmake/projects/compiler-rt/test/asan/X86_64DarwinConfig/TestCases/Output/malloc_context_size.cc.tmp`


Attaching a text file.

Thank you,

Filipe

BTW, there's also problems with at least one TSan test, in debug
builds (but this one I think I only see it at home (same rough
config)):

- TEST 'ThreadSanitizer-x86_64h :: mutexset7.cc'

FAILED ********************

Script:
-------

/Users/filcab/dev/llvm/build-debug/./bin/clang --driver-mode=g++
-fsanitize=thread -Wall -arch x86_64h -gline-tables-only -O1
/Users/filcab/dev/llvm/compiler-rt/test/tsan/mutexset7.cc -o
/Users/filcab/dev/llvm/build-debug/projects/compiler-rt/test/tsan/X86_64HConfig/Output/mutexset7.cc.tmp
&& /Users/filcab/dev/llvm/llvm/projects/compiler-rt/test/tsan/deflake.bash
/Users/filcab/dev/llvm/build-debug/projects/compiler-rt/test/tsan/X86_64HConfig/Output/mutexset7.cc.tmp

| FileCheck /Users/filcab/dev/llvm/compiler-rt/test/tsan/mutexset7.cc |

-

Exit Code: 1

Command Output (stderr):
------------------------

ld: section __DATA/__thread_bss extends beyond end of file, file
'/var/folders/9c/8tdsmzsd2cn_c6wkqjbbnd_m0000gn/T/mutexset7-6dfa74.o'
for architecture x86_64h
clang-3.8: error: linker command failed with exit code 1 (use -v to
see invocation)

- F1984567: bug-in-asan-tests.txt <http://reviews.llvm.org/F1984567>


Repository:
  rL LLVM

http://reviews.llvm.org/D20425





More information about the llvm-commits mailing list