[llvm-bugs] [Bug 50124] New: Crash Clang 12.0

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 26 06:06:21 PDT 2021


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

            Bug ID: 50124
           Summary: Crash Clang 12.0
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: slobodyanukma at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Compiler crashed

error: Stream Error: The stream is too short to perform the requested
operation.
*** stack smashing detected ***: terminated
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments:
/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang
--driver-mode=g++ -target i686-w64-mingw32 -rtlib=compiler-rt -stdlib=libc++
-fuse-ld=lld -Qunused-arguments -I/devroot/develop/src -isystem
/devroot/develop/src/3rdparty -isystem /devroot/3rdparty/include_4.5 -isystem
/devroot/develop/src/3rdparty/efsw/include -isystem
/devroot/3rdparty/build_4.1/windows-llvm-i686/include -g -gcodeview
-ffunction-sections -fdata-sections -Og -Wno-long-long
-Wno-bind-to-temporary-copy -Wno-psabi -Wno-tautological-constant-compare
-Wno-keyword-macro -include
/devroot/develop/build/windows-llvm-i686-release/config.h -mthreads -Wall
-Wextra -Werror -Winit-self -Woverloaded-virtual -Wctor-dtor-privacy
-Wnon-virtual-dtor -Wsign-promo -pedantic -std=gnu++14 -MD -MT
CMakeFiles/ed_core.dir/http/uri.cpp.obj -MF
CMakeFiles/ed_core.dir/http/uri.cpp.obj.d -o
CMakeFiles/ed_core.dir/http/uri.cpp.obj -c /devroot/develop/src/http/uri.cpp
1.      <eof> parser at end of file
2.      Code generation
 #0 0x00007fa057afc97c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x20fc97c)
 #1 0x00007fa057afa724 llvm::sys::RunSignalHandlers()
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x20fa724)
 #2 0x00007fa057afa9a5 llvm::sys::CleanupOnSignal(unsigned long)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x20fa9a5)
 #3 0x00007fa057a68fa8
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2068fa8)
 #4 0x00007fa0559943c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
 #5 0x00007fa05545618b raise
/build/glibc-eX1tMB/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #6 0x00007fa055435859 abort /build/glibc-eX1tMB/glibc-2.31/stdlib/abort.c:81:7
 #7 0x00007fa0554a03ee __libc_message
/build/glibc-eX1tMB/glibc-2.31/libio/../sysdeps/posix/libc_fatal.c:155:5
 #8 0x00007fa055542b4a __fortify_fail
/build/glibc-eX1tMB/glibc-2.31/debug/fortify_fail.c:25:9
 #9 0x00007fa055542b16 (/lib/x86_64-linux-gnu/libc.so.6+0x132b16)
#10 0x00007fa058577ec0
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2b77ec0)
#11 0x00007fa058591148
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2b91148)
#12 0x00007fa058526e63 llvm::AsmPrinter::doFinalization(llvm::Module&)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2b26e63)
#13 0x00007fa05749470c llvm::FPPassManager::doFinalization(llvm::Module&)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x1a9470c)
#14 0x00007fa05749f978 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x1a9f978)
#15 0x00007fa057d881f8
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x23881f8)
#16 0x00007fa057d89e77 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2389e77)
#17 0x00007fa05891d5fa
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2f1d5fa)
#18 0x00007fa05955c2f9 clang::ParseAST(clang::Sema&, bool, bool)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x3b5c2f9)
#19 0x00007fa05891d6b2 clang::CodeGenAction::ExecuteAction()
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2f1d6b2)
#20 0x00007fa058335291 clang::FrontendAction::Execute()
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2935291)
#21 0x00007fa0582db0b3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x28db0b3)
#22 0x00007fa0583fd473
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x29fd473)
#23 0x00007fa0566112cc cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0xc112cc)
#24 0x00007fa05660da5d
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0xc0da5d)
#25 0x00007fa05819ca25
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x279ca25)
#26 0x00007fa057a69083
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2069083)
#27 0x00007fa05819d578
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x279d578)
#28 0x00007fa0581760ca
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x27760ca)
#29 0x00007fa058176c1f
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x2776c1f)
#30 0x00007fa05817fa25
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0x277fa25)
#31 0x00007fa056575e74 main
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0xb75e74)
#32 0x00007fa0554370b3 __libc_start_main
/build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:342:3
#33 0x00007fa05660d5da _start
(/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin/clang+0xc0d5da)
clang-12: error: clang frontend command failed with exit code 134 (use -v to
see invocation)
clang version 12.0.0 (https://github.com/llvm/llvm-project.git
e7ad4cff4027a120cf44edf36af2cd7a874e9a52)
Target: i686-w64-windows-gnu
Thread model: posix
InstalledDir:
/devroot/toolchain/llvm-mingw-20210423-ucrt-ubuntu-18.04-x86_64/bin
clang-12: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-12: note: diagnostic msg: /tmp/uri-0a8dd8.cpp
clang-12: note: diagnostic msg: /tmp/uri-0a8dd8.sh
clang-12: 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/20210426/2f6834a8/attachment.html>


More information about the llvm-bugs mailing list