[LLVMbugs] [Bug 24155] New: Sanitizer is incompatible with Linux kernel 4.1.2

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 16 10:41:35 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24155

            Bug ID: 24155
           Summary: Sanitizer is incompatible with Linux kernel 4.1.2
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The same Sanitizer runs fine under 4.0.8 kernel. But under 4.1.2 kernel,
I got

[hjl at gnu-6 stage1]$
build-x86_64-linux-gnux32/projects/compiler-rt/test/msan/Linux/Output/mallinfo.cc.tmp
FATAL: Code 0x56191bd83850 is out of application range. Non-PIE build?
FATAL: MemorySanitizer can not mmap the shadow memory.
FATAL: Make sure to compile with -fPIE and to link with -pie.
FATAL: Disabling ASLR is known to cause this error.
FATAL: If running under GDB, try 'set disable-randomization off'.
==25874==Process memory map follows:
    0x56191bd69000-0x56191be1a000   
/export/build/gnu/llvm-clang-x32-bootstrap-cmake/stage1/build-x86_64-linux-gnux32/projects/compiler-rt/test/msan/Linux/Output/mallinfo.cc.tmp
    0x56191c019000-0x56191c01d000   
/export/build/gnu/llvm-clang-x32-bootstrap-cmake/stage1/build-x86_64-linux-gnux32/projects/compiler-rt/test/msan/Linux/Output/mallinfo.cc.tmp
    0x56191c01d000-0x56191e50f000    
    0x7f5096da7000-0x7f50970f9000    
    0x7f50970f9000-0x7f50972b0000    /usr/lib64/libc-2.21.so
    0x7f50972b0000-0x7f50974af000    /usr/lib64/libc-2.21.so
    0x7f50974af000-0x7f50974b3000    /usr/lib64/libc-2.21.so
    0x7f50974b3000-0x7f50974b5000    /usr/lib64/libc-2.21.so
    0x7f50974b5000-0x7f50974b9000    
    0x7f50974b9000-0x7f50974cf000    /usr/lib64/libgcc_s-5.1.1-20150707.so.1
    0x7f50974cf000-0x7f50976ce000    /usr/lib64/libgcc_s-5.1.1-20150707.so.1
    0x7f50976ce000-0x7f50976cf000    /usr/lib64/libgcc_s-5.1.1-20150707.so.1
    0x7f50976cf000-0x7f50976d2000    /usr/lib64/libdl-2.21.so
    0x7f50976d2000-0x7f50978d1000    /usr/lib64/libdl-2.21.so
    0x7f50978d1000-0x7f50978d2000    /usr/lib64/libdl-2.21.so
    0x7f50978d2000-0x7f50978d3000    /usr/lib64/libdl-2.21.so
    0x7f50978d3000-0x7f50978da000    /usr/lib64/librt-2.21.so
    0x7f50978da000-0x7f5097ad9000    /usr/lib64/librt-2.21.so
    0x7f5097ad9000-0x7f5097ada000    /usr/lib64/librt-2.21.so
    0x7f5097ada000-0x7f5097adb000    /usr/lib64/librt-2.21.so
    0x7f5097adb000-0x7f5097af2000    /usr/lib64/libpthread-2.21.so
    0x7f5097af2000-0x7f5097cf1000    /usr/lib64/libpthread-2.21.so
    0x7f5097cf1000-0x7f5097cf2000    /usr/lib64/libpthread-2.21.so
    0x7f5097cf2000-0x7f5097cf3000    /usr/lib64/libpthread-2.21.so
    0x7f5097cf3000-0x7f5097cf7000    
    0x7f5097cf7000-0x7f5097dfe000    /usr/lib64/libm-2.21.so
    0x7f5097dfe000-0x7f5097ffd000    /usr/lib64/libm-2.21.so
    0x7f5097ffd000-0x7f5097ffe000    /usr/lib64/libm-2.21.so
    0x7f5097ffe000-0x7f5097fff000    /usr/lib64/libm-2.21.so
    0x7f5097fff000-0x7f5098171000    /usr/lib64/libstdc++.so.6.0.21
    0x7f5098171000-0x7f5098371000    /usr/lib64/libstdc++.so.6.0.21
    0x7f5098371000-0x7f509837b000    /usr/lib64/libstdc++.so.6.0.21
    0x7f509837b000-0x7f509837d000    /usr/lib64/libstdc++.so.6.0.21
    0x7f509837d000-0x7f5098381000    
    0x7f5098381000-0x7f50983a2000    /usr/lib64/ld-2.21.so
    0x7f509856b000-0x7f5098573000    
    0x7f5098594000-0x7f50985a1000    
    0x7f50985a1000-0x7f50985a2000    /usr/lib64/ld-2.21.so
    0x7f50985a2000-0x7f50985a3000    /usr/lib64/ld-2.21.so
    0x7f50985a3000-0x7f50985a4000    
    0x7fff709b2000-0x7fff709d3000    [stack]
    0x7fff709f4000-0x7fff709f6000    [vvar]
    0x7fff709f6000-0x7fff709f8000    [vdso]
    0xffffffffff600000-0xffffffffff601000    [vsyscall]
==25874==End of process memory map.
[hjl at gnu-6 stage1]$

-- 
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/20150716/1714b4e2/attachment.html>


More information about the llvm-bugs mailing list