<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/69245>69245</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            building qtwebengine on x86: terminate called after throwing an instance of 'std::bad_alloc'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          donob4n
      </td>
    </tr>
</table>

<pre>
    ```
[148/284] Building CXX object src/core/api/CMakeFiles/WebEngineCore.dir/WebEngineCore_autogen/mocs_compilation.cpp.o
[149/284] Linking CXX shared library lib/libQt6WebEngineCore.so.6.6.0
ninja: job failed: : && /usr/bin/clang++ -fPIC -Os  -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LARGEFILE64_SOURCE -Wno-builtin-macro-redefined -Wno-deprecated-declarations -DNDEBUG -O2  -Wl,--as-needed,-O1,--sort-common -Wl,-z,pack-relative-relocs -fuse-ld=lld   -Wl,--no-undefined -Wl,--version-script,/home/donoban/aports/community/qt6-qtwebengine/src/qtwebengine-6.6.0/build/src/core/api/WebEngineCore.version @/home/donoban/aports/community/qt6-qtwebengine/src/qtwebengine-6.6.0/build/src/core/Release/i686/QtWebEngineCore_objects.rsp -Wl,--gc-sections -Wl,--enable-new-dtags -shared -Wl,-soname,libQt6WebEngineCore.so.6 -o lib/libQt6WebEngineCore.so.6.6.0 src/core/api/CMakeFiles/WebEngineCore.dir/WebEngineCore_autogen/mocs_compilation.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qtwebenginecoreglobal.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecertificateerror.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineclientcertificateselection.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineclientcertificatestore.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecontextmenurequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecookiestore.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginedownloadrequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginefilesystemaccessrequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginefindtextresult.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginefullscreenrequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginehistory.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginehttprequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineloadinginfo.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginemessagepumpscheduler.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginenavigationrequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginenewwindowrequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginenotification.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginepage.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineprofile.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginequotarequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineregisterprotocolhandlerrequest.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginescript.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginescriptcollection.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginesettings.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlrequestinfo.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlrequestinterceptor.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlrequestjob.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlscheme.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlschemehandler.cpp.o src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineglobalsettings.cpp.o -Wl,-rpath,:::::::  -Wl,--start-group @/home/donoban/aports/community/qt6-qtwebengine/src/qtwebengine-6.6.0/build/src/core/Release/i686/QtWebEngineCore_archives.rsp -Wl,--end-group  -Wl,--no-fatal-warnings @/home/donoban/aports/community/qt6-qtwebengine/src/qtwebengine-6.6.0/build/src/core/Release/i686/QtWebEngineCore_ldir.rsp @/home/donoban/aports/community/qt6-qtwebengine/src/qtwebengine-6.6.0/build/src/core/Release/i686/QtWebEngineCore_libs.rsp -Wl,--no-fatal-warnings  /usr/lib/libxkbcommon.so /usr/lib/libQt6Quick.so.6.6.0  /usr/lib/libQt6OpenGL.so.6.6.0 /usr/lib/libQt6Gui.so.6.6.0  /usr/lib/libGL.so /usr/lib/libQt6QmlModels.so.6.6.0  /usr/lib/libQt6WebChannel.so.6.6.0 /usr/lib/libQt6Qml.so.6.6.0  /usr/lib/libQt6Network.so.6.6.0 /usr/lib/libQt6Positioning.so.6.6.0  /usr/lib/libQt6Core.so.6.6.0 && :
terminate called after throwing an instance of 'std::bad_alloc'
 what():  std::bad_alloc
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Running pass 'Function Pass Manager' on module '/home/donoban/aports/community/qt6-qtwebengine/src/qtwebengine-6.6.0/build/src/core/Release/i686/obj/v8/v8_compiler/v8_compiler_jumbo_10.o'.
1. Running pass 'Post RA top-down list latency scheduler' on function '@_ZN2v88internal8compiler26MachineOperatorGlobalCacheC2Ev'
clang-16: error: unable to execute command: Aborted (core dumped)
clang-16: error: linker command failed due to signal (use -v to see invocation)
ninja: subcommand failed
>>> ERROR: qt6-qtwebengine: build failed
~/aports/community/qt6-qtwebengine $


```

Host has 64gb of memory, could it just be running out of memory? It's also running inside a docker container.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMWN1y4joSfhpxozIFghBywQUBnE1VZvK3pzK1N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