<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 - Clang crashes when compiling libtorrent-rasterbar"
   href="https://bugs.llvm.org/show_bug.cgi?id=48532">48532</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang crashes when compiling libtorrent-rasterbar
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>glassez@yandex.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Stack dump:
0.      Program arguments: /usr/bin/clang++ -DBOOST_ASIO_ENABLE_CANCELIO
-DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE
-DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ASSERTS
-DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL
-D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS
-I/home/glassez/Projects/libtorrent/include -g -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -Weverything -Wno-documentation
-Wno-c++98-compat-pedantic -Wno-padded -Wno-global-constructors
-Wno-exit-time-destructors -Wno-weak-vtables -fexceptions -std=gnu++14 -MD -MT
CMakeFiles/torrent-rasterbar.dir/src/peer_connection.cpp.o -MF
CMakeFiles/torrent-rasterbar.dir/src/peer_connection.cpp.o.d -o
CMakeFiles/torrent-rasterbar.dir/src/peer_connection.cpp.o -c
/home/glassez/Projects/libtorrent/src/peer_connection.cpp 
1.      <eof> parser at end of file
2.      /home/glassez/Projects/libtorrent/src/peer_connection.cpp:92:11: LLVM
IR generation of declaration 'libtorrent'
3.      /home/glassez/Projects/libtorrent/src/peer_connection.cpp:582:24:
Generating code for declaration 'libtorrent::peer_connection::peer_log'
/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7f5021e9d4ff]
/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7f5021e9b7b0]
/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm3sys15CleanupOnSignalEm+0xdd)[0x7f5021e9cc4d]
/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(+0x8d6e60)[0x7f5021df2e60]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)[0x7f502866d3c0]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction13EmitEndEHSpecEPKNS_4DeclE+0xce)[0x7f5027097ede]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction14FinishFunctionENS_14SourceLocationE+0x2d0)[0x7f502721acf0]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction17EmitMustTailThunkENS_10GlobalDeclEPN4llvm5ValueENS3_14FunctionCalleeE+0x540)[0x7f502720d700]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction13generateThunkEPN4llvm8FunctionERKNS0_14CGFunctionInfoENS_10GlobalDeclERKNS_9ThunkInfoEb+0xdc)[0x7f502720d80c]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen14CodeGenVTables14maybeEmitThunkENS_10GlobalDeclERKNS_9ThunkInfoEb+0x46e)[0x7f502720dc9e]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen14CodeGenVTables10EmitThunksENS_10GlobalDeclE+0x74)[0x7f502720ded4]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule20EmitGlobalDefinitionENS_10GlobalDeclEPN4llvm11GlobalValueE+0x209)[0x7f5027231ec9]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule16EmitTopLevelDeclEPNS_4DeclE+0x62)[0x7f502723a662]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule15EmitDeclContextEPKNS_11DeclContextE+0x2b)[0x7f502723d8eb]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(+0x16f9dbf)[0x7f50272a9dbf]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(+0x16679c2)[0x7f50272179c2]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang8ParseASTERNS_4SemaEbb+0x214)[0x7f5026405ba4]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang14FrontendAction7ExecuteEv+0x48)[0x7f502787be58]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x621)[0x7f50278348a1]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x66f)[0x7f50278dfdaf]
/usr/bin/clang++(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0x98d)[0x41229d]
/usr/bin/clang++[0x4105b1]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(+0x19d58f2)[0x7f50275858f2]
/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm20CrashRecoveryContext9RunSafelyENS_12function_refIFvvEEE+0xd7)[0x7f5021df2c67]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZNK5clang6driver10CC1Command7ExecuteEN4llvm8ArrayRefINS2_8OptionalINS2_9StringRefEEEEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb+0x13f)[0x7f5027584e2f]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZNK5clang6driver11Compilation14ExecuteCommandERKNS0_7CommandERPS3_+0x2df)[0x7f502755d52f]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZNK5clang6driver11Compilation11ExecuteJobsERKNS0_7JobListERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0x7a)[0x7f502755d6da]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang6driver6Driver18ExecuteCompilationERNS0_11CompilationERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0xdc)[0x7f502757093c]
/usr/bin/clang++(main+0x259f)[0x41002f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f50210040b3]
/usr/bin/clang++(_start+0x2e)[0x40d7ce]
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 10.0.0-4ubuntu1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
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: /tmp/peer_connection-15aa3f.cpp
clang: note: diagnostic msg: /tmp/peer_connection-15aa3f.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>