[LLVMbugs] [Bug 17039] New: missing interceptor for memalign

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 29 12:13:25 PDT 2013


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

            Bug ID: 17039
           Summary: missing interceptor for memalign
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This program
-----------
#include <malloc.h>

int main() {
  void *p = memalign(64, 128);
  free(p);
  return 0;
}
---------------


if compiled with -fsanitize=address crashes with

MemorySanitizer: bad pointer 0x7f09b96d9040
==42895==Sanitizer CHECK failed:
/home/espindola/llvm/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h:1021
((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0) (0, 0)

-- 
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/20130829/b29d95d8/attachment.html>


More information about the llvm-bugs mailing list