[llvm-bugs] [Bug 48532] New: Clang crashes when compiling libtorrent-rasterbar

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 16 06:29:54 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48532

            Bug ID: 48532
           Summary: Clang crashes when compiling libtorrent-rasterbar
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: glassez at yandex.ru
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

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
https://bugs.llvm.org/ 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: 

********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201216/f0acf517/attachment.html>


More information about the llvm-bugs mailing list