Open llvmbot opened 6 years ago
Sorry forgot to mention I am using the WSL (ubuntu 16.04) in windows 10. The previous revision of scidb (r1452) compiles fine with clang, but the latest one causes clang to segfault.
Still crashing as of post-17 trunk: https://godbolt.org/z/9jz5TThhq Reduced by C-Reduce:
double ceil() { ceil(); }
@llvm/issue-subscribers-backend-x86
Extended Description
Scidb is a chess program written in C++11. I tried to compile the latest revision (r1453) from https://svn.code.sf.net/p/scidb/code/trunk
Clang segfaults during compilation (please see attached files).
Clang version is: $ clang --version clang version 5.0.1-svn319952-1~exp1 (branches/release_50)
Operating system is Ubuntu 16.04. I am using the official xenial update channel for llvm.
Since I can't attach individual files I've attached a zip file.
Build log:
9 0x00007fef8ece868f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1+0x8c868f)
10 0x000000000083bc55 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 >) (/usr/lib/llvm-5.0/bin/clang+0x83bc55)
11 0x0000000000d055c0 (/usr/lib/llvm-5.0/bin/clang+0xd055c0)
12 0x0000000000e28f18 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/llvm-5.0/bin/clang+0xe28f18)
13 0x0000000000d04d47 clang::CodeGenAction::ExecuteAction() (/usr/lib/llvm-5.0/bin/clang+0xd04d47)
14 0x0000000000ba1a1e clang::FrontendAction::Execute() (/usr/lib/llvm-5.0/bin/clang+0xba1a1e)
15 0x0000000000b6ea16 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/llvm-5.0/bin/clang+0xb6ea16)
16 0x0000000000c28652 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/llvm-5.0/bin/clang+0xc28652)
17 0x00000000007fb428 cc1_main(llvm::ArrayRef<char const>, char const, void*) (/usr/lib/llvm-5.0/bin/clang+0x7fb428)
18 0x00000000007e9577 main (/usr/lib/llvm-5.0/bin/clang+0x7e9577)
19 0x00007fef8d570830 __libc_start_main /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:325:0
20 0x00000000007f92e9 _start (/usr/lib/llvm-5.0/bin/clang+0x7f92e9)
Stack dump:
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/db_bpgn_reader-1ee9c4.cpp clang: note: diagnostic msg: /tmp/db_bpgn_reader-1ee9c4.sh clang: note: diagnostic msg:
Makefile:161: recipe for target 'db_bpgn_reader.o' failed make[2]: [db_bpgn_reader.o] Error 254 Makefile:205: recipe for target 'recursive' failed make[1]: [recursive] Error 1 Makefile:18: recipe for target 'all' failed make: *** [all] Error 2
Hope this helps.
Best regards, Bogdan