[LLVMbugs] [Bug 21392] New: asan does not compile on OS X due to change in asan_allocator.h

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 27 04:46:26 PDT 2014


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

            Bug ID: 21392
           Summary: asan does not compile on OS X due to change in
                    asan_allocator.h
           Product: compiler-rt
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: jonathan.sauer at gmx.de
                CC: llvmbugs at cs.uiuc.edu, vonosmas at gmail.com
    Classification: Unclassified

A clean checkout of LLVM/clang/compiler-rt r220671 does not compile on OS X:

/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_mac.cc:302:31:
error: no matching function for
      call to 'asan_malloc'
      (asan_block_context_t*) asan_malloc(sizeof(asan_block_context_t), stack);
                              ^~~~~~~~~~~
/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_allocator.h:148:7:
note: candidate function not
      viable: cannot convert from base class pointer '__sanitizer::StackTrace
*' to derived class pointer
      '__sanitizer::BufferedStackTrace *' for 2nd argument
void *asan_malloc(uptr size, BufferedStackTrace *stack);
      ^
1 error generated.

This seams to have been introduced in r220635:

This change splits __sanitizer::StackTrace class into a lightweight
__sanitizer::StackTrace, which doesn't own array of PCs, and
BufferedStackTrace,
which owns it. This would allow us to simplify the interface of StackDepot,
and eventually merge __sanitizer::StackTrace with __tsan::StackTrace.

(cc-ing Alexey Samsonov who committed r220635)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141027/a2e677be/attachment.html>


More information about the llvm-bugs mailing list