[LLVMbugs] [Bug 12272] New: address sanitizer does not work if clang is built with CMake

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 15 08:45:04 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12272

             Bug #: 12272
           Summary: address sanitizer does not work if clang is built with
                    CMake
           Product: new-bugs
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sean at rogue-research.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When one builds clang with CMake, the resulting clang's -faddress-sanitizer
option does not work.

Doing:

clang -O1 -g -faddress-sanitizer -fno-omit-frame-pointer
example_UseAfterFree.cc

Gives:

Undefined symbols:
  "___asan_report_load4", referenced from:
      _main in test-w3FGxl.o
  "___asan_init", referenced from:
      _asan.module_ctor in test-w3FGxl.o

It was confirmed on cfe-dev that the CMake build does not current support
-faddress-sanitizer.

If this is long/hard to fix, could the webpage at least be updated to warn
people to use configure/make instead?

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list