Closed llvmbot closed 12 years ago
Indeed unlucky, after recompiling with r149195, libc++ builds just fine.
I think you were just unlucky in the revision you checked out. This issue was resolved shortly after being introduced.
Since the attachement wasn't uploaded because it's too big, here's an external link to it: http://www.mediafire.com/?t1my041t6sjqx51
Extended Description
With Clang revision 148703, compiling r148629 of libc++ results in an assertion during the opimization pass of locale.cpp. The preprocessed source is attached.
Crash report: clang: /home/xeo/llvm/include/llvm/ADT/OwningPtr.h:34: llvm::OwningPtr::OwningPtr(const llvm::OwningPtr&) [with T = llvm::UndefValue]: Assertion `RHS.Ptr == 0 && "Only null OwningPtr's are copyable!"' failed.
0 clang 0x00000000027a882e
1 clang 0x00000000027a8621
2 libpthread.so.0 0x00007f142eaa5f60
3 libc.so.6 0x00007f142ddb8165 gsignal + 53
4 libc.so.6 0x00007f142ddbaf70 abort + 384
5 libc.so.6 0x00007f142ddb12b1 __assert_fail + 241
6 clang 0x000000000264ee0a
7 clang 0x000000000264ed6c
8 clang 0x000000000264af58
9 clang 0x0000000002648b07
10 clang 0x0000000002646877
11 clang 0x000000000263e13c llvm::UndefValue::get(llvm::Type) + 50
12 clang 0x00000000023535e4
13 clang 0x0000000002731d68 llvm::MPPassManager::runOnModule(llvm::Module&) + 456
14 clang 0x000000000273227e llvm::PassManagerImpl::run(llvm::Module&) + 130
15 clang 0x00000000027327b9 llvm::PassManager::run(llvm::Module&) + 39
16 clang 0x0000000000cd8257
17 clang 0x0000000000cd8377 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module, clang::BackendAction, llvm::raw_ostream) + 140
18 clang 0x0000000000cd4444
19 clang 0x0000000000e7fc31 clang::ParseAST(clang::Sema&, bool) + 761
20 clang 0x0000000000b43733 clang::ASTFrontendAction::ExecuteAction() + 265
21 clang 0x0000000000cd2fb4 clang::CodeGenAction::ExecuteAction() + 986
22 clang 0x0000000000b4338f clang::FrontendAction::Execute() + 213
23 clang 0x0000000000b1cd2b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 679
24 clang 0x0000000000aeebc7 clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 1002
25 clang 0x0000000000addb67 cc1_main(char const, char const, char const, void) + 990
26 clang 0x0000000000aea209 main + 484
27 libc.so.6 0x00007f142dda4c4d __libc_start_main + 253
28 clang 0x0000000000adcde9
Stack dump: