<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - LLVM ERROR: out of memory"
   href="https://bugs.llvm.org/show_bug.cgi?id=47772">47772</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM ERROR: out of memory
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>phosek@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24036" name="attach_24036" title="Clang crash reproducer">attachment 24036</a> <a href="attachment.cgi?id=24036&action=edit" title="Clang crash reproducer">[details]</a></span>
Clang crash reproducer

This was caught on Fuchsia builders. What's interesting is that this error was
triggered by a removal of a single line, see
<a href="https://fuchsia-review.googlesource.com/c/fuchsia/+/434277">https://fuchsia-review.googlesource.com/c/fuchsia/+/434277</a>

```
/b/s/w/ir/k/fuchsia/prebuilt/third_party/goma/linux-x64/gomacc 
../../prebuilt/third_party/clang/linux-x64/bin/clang++ -MD -MF
host_x64-asan/obj/src/storage/volume_image/fvm/fvm-sparse-image.fvm_sparse_image_reader.cc.o.d
-DTOOLCHAIN_VERSION=AuHm25kuOn_5pmla8_UrQwqDU3OfmjJIiM-yL2y960UC
-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -DNDEBUG=1 -DRAPIDJSON_HAS_STDSTRING
-DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS
-DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_CXX11_NOEXCEPT -I../..
-Ihost_x64-asan/gen -I../../zircon/system/ulib/fit/include
-I../../zircon/system/public -I../../zircon/system/ulib/fbl/include
-I../../zircon/third_party/rapidjson
-I../../zircon/third_party/rapidjson/include
-I../../zircon/system/ulib/fvm/include -I../../zircon/system/ulib/zxc/include
-I../../zircon/system/ulib/digest/include
-I../../zircon/system/ulib/gpt/include
-I../../zircon/third_party/ulib/lz4/include
-I../../zircon/system/ulib/zircon/include -fexperimental-new-pass-manager
-fcolor-diagnostics -fcrash-diagnostics-dir=clang-crashreports -fPIE
--sysroot=../../prebuilt/third_party/sysroot/linux
--target=x86_64-unknown-linux-gnu -fdebug-compilation-dir .
-no-canonical-prefixes -fomit-frame-pointer -fdata-sections -ffunction-sections
-O3 -g3 -Wall -Wextra -Wnewline-eof -Wconversion -Wno-unused-parameter
-Wno-unknown-warning-option -Wno-sign-conversion -Wno-unknown-warning-option
-Wno-c99-designator -Wno-int-in-bool-context -Wno-address-of-packed-member
-Wno-range-loop-analysis -Wno-deprecated-declarations -fvisibility=hidden
-Werror -Wno-error=deprecated-declarations -fPIE
--sysroot=../../prebuilt/third_party/sysroot/linux
--target=x86_64-unknown-linux-gnu -fsanitize=address -fno-omit-frame-pointer
-fno-sanitize=undefined -Wno-conversion -Wno-conversion
-fvisibility-inlines-hidden -stdlib=libc++ -std=c++17 -Wno-deprecated-copy
-Wno-non-c-typedef-for-linkage -Wno-unknown-warning-option
-Wno-suggest-override -fno-exceptions -fno-rtti -stdlib=libc++ -c
../../src/storage/volume_image/fvm/fvm_sparse_image_reader.cc -o
host_x64-asan/obj/src/storage/volume_image/fvm/fvm-sparse-image.fvm_sparse_image_reader.cc.o
LLVM ERROR: out of memory
clang++: error: clang frontend command failed due to signal (use -v to see
invocation)
Fuchsia clang version 12.0.0 (<a href="https://llvm.googlesource.com/a/llvm-project">https://llvm.googlesource.com/a/llvm-project</a>
7a34dca0f3918ab1c0397e56dd64a3c04164c8b6)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: ../../prebuilt/third_party/clang/linux-x64/bin
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg:
clang-crashreports/fvm_sparse_image_reader-39d2a5.cpp
clang++: note: diagnostic msg:
clang-crashreports/fvm_sparse_image_reader-39d2a5.sh
clang++: note: diagnostic msg: 

********************
```</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>