<html>
<head>
<base href="http://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 --- - LargeMmapAllocator crashes the process on OOM even if allocator_may_return_null=1"
href="http://llvm.org/bugs/show_bug.cgi?id=22026">22026</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LargeMmapAllocator crashes the process on OOM even if allocator_may_return_null=1
</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>Windows NT
</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>timurrrr@google.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>This hits us on Chromium on Win32 (32-bit):
[ RUN ] DiscardableMemoryTests/DiscardableMemoryTest.AddressSpace/0
==8508==ERROR: AddressSanitizer failed to allocate 0x408000 (4227072) bytes of
LargeMmapAllocator (error code: 8)
==8508==AddressSanitizer CHECK failed:
D:\src\chr_trunk\src\third_party\llvm\projects\compiler-rt\lib\sanitizer_common\sanitizer_win.cc:89
"(("unable to mmap" && 0)) != (0)" (0x0, 0x0)
Looking at the LargeMmapAllocator code, it unconditionally does MmapOrDie, so
this is not OOM-friendly.
It's likely we haven't seen this earlier because it's much harder to OOM on x64
:)</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>