<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW " title="NEW --- - Sanitizer is incompatible with Linux kernel 4.1.2" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24155&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=0_h8UaCS4BIY_vYWXZLRmr4b-pGEhAuagg_lBArziR4&s=UfhXBo2MOaWPUqPF4RGiDHRfIFD-6KRXmQr_eZ96iAk&e=">24155</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Sanitizer is incompatible with Linux kernel 4.1.2
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hjl.tools@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The same Sanitizer runs fine under 4.0.8 kernel. But under 4.1.2 kernel,
I got
[hjl@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@gnu-6 stage1]$</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>