From bugzilla-daemon at llvm.org Mon Apr 1 06:19:51 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 13:19:51 +0000 Subject: [LLVMbugs] [Bug 15633] New: a bug involving defining enumeration outside of template class body Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15633 Bug ID: 15633 Summary: a bug involving defining enumeration outside of template class body Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: zhangxiongpang at gmail.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified Platform: linux, x86_84, clang++3.3 (trunk 177699), g++4.7.2 Today I wrote some code testing c++11 "Forwarding declaration of enumerations". And a strange thing occurred. The following code makes clang++ core dump and makes g++ got into a dead loop. ---------------------------------- template struct X { struct Y { enum class E : T; }; }; template enum class X::Y::E : T { e1, e2 }; template class X; ---------------------------------- The core dump information is as follows: ---------------------------------- clang: /root/work/newdisk/zhang/llvm/llvm/tools/clang/lib/Sema/SemaTemplate.cpp:863: clang::DeclResult clang::Sema::CheckClassTemplate(clang::Scope*, unsigned int, clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::TemplateParameterList*, clang::AccessSpecifier, clang::SourceLocation, unsigned int, clang::TemplateParameterList**): Assertion `Kind != TTK_Enum && "can't build template of enumerated type"' failed. 0 clang 0x0000000002f4e50d llvm::sys::PrintStackTrace(_IO_FILE*) + 38 1 clang 0x0000000002f4e78a 2 clang 0x0000000002f4e1e2 3 libpthread.so.0 0x0000003ffd40f4c0 4 libc.so.6 0x0000003ffcc329a5 gsignal + 53 5 libc.so.6 0x0000003ffcc34185 abort + 373 6 libc.so.6 0x0000003ffcc2b935 __assert_fail + 245 7 clang 0x00000000014514e6 clang::Sema::CheckClassTemplate(clang::Scope*, unsigned int, clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::TemplateParameterList*, clang::AccessSpecifier, clang::SourceLocation, unsigned int, clang::TemplateParameterList**) + 290 8 clang 0x0000000001222119 clang::Sema::ActOnTag(clang::Scope*, unsigned int, clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*, clang::AccessSpecifier, clang::SourceLocation, llvm::MutableArrayRef, bool&, bool&, clang::SourceLocation, bool, clang::ActionResult, false>) + 637 9 clang 0x00000000010fe46c clang::Parser::ParseEnumSpecifier(clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 4258 10 clang 0x00000000010fc207 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 9139 11 clang 0x000000000114b09b clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 425 12 clang 0x000000000114aea4 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 1046 13 clang 0x000000000114a9e5 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 217 14 clang 0x00000000010f6d0e clang::Parser::ParseDeclaration(llvm::SmallVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 242 15 clang 0x00000000010e5a32 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 1622 16 clang 0x00000000010e53ab clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 413 17 clang 0x00000000010e1db2 clang::ParseAST(clang::Sema&, bool, bool) + 610 18 clang 0x0000000000cd5ef4 clang::ASTFrontendAction::ExecuteAction() + 298 19 clang 0x0000000000f056e6 clang::CodeGenAction::ExecuteAction() + 1296 20 clang 0x0000000000cd5a76 clang::FrontendAction::Execute() + 200 21 clang 0x0000000000caabc4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 722 22 clang 0x0000000000c7acee clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1048 23 clang 0x0000000000c6ab87 cc1_main(char const**, char const**, char const*, void*) + 673 24 clang 0x0000000000c7528d main + 484 25 libc.so.6 0x0000003ffcc1ec5d __libc_start_main + 253 26 clang 0x0000000000c6a309 Stack dump: 0. Program arguments: /root/work/newdisk/zhang/llvm/build/Debug+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -coverage-file /root/work/newdisk/zhang/c++11/20130401/forward_declarations_for_enums/test.o -resource-dir /root/work/newdisk/zhang/llvm/build/Debug+Asserts/bin/../lib/clang/3.3 -I/opt/intel/composer_xe_2013.1.117/mkl/include -I/opt/intel/composer_xe_2013.1.117/tbb/include -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/x86_64-redhat-linux -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/backward -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/x86_64-redhat-linux/c++/4.4.4 -internal-isystem /usr/local/include -internal-isystem /root/work/newdisk/zhang/llvm/build/Debug+Asserts/bin/../lib/clang/3.3/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /root/work/newdisk/zhang/c++11/20130401/forward_declarations_for_enums -ferror-limit 19 -fmessage-length 114 -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o test.o -x c++ test.cpp 1. test.cpp:11:27: current parser token '{' clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.3 (trunk 177699) (llvm/trunk 177691) Target: x86_64-unknown-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ 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/test-9ucxjN.cpp clang: note: diagnostic msg: /tmp/test-9ucxjN.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: From bugzilla-daemon at llvm.org Mon Apr 1 10:41:51 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 17:41:51 +0000 Subject: [LLVMbugs] [Bug 12527] initialization from an _Atomic variable causes assert In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=12527 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Richard Smith --- Confirmed. Regression test added in r178476. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 10:51:18 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 17:51:18 +0000 Subject: [LLVMbugs] [Bug 5952] pragmas not copied to the preprocessed output In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=5952 Rafael Ávila de Espíndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Rafael Ávila de Espíndola --- Thanks for testing it again! -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 11:01:18 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 18:01:18 +0000 Subject: [LLVMbugs] [Bug 15634] New: Diagnostic for failed template deduction is insufficient Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15634 Bug ID: 15634 Summary: Diagnostic for failed template deduction is insufficient Product: clang Version: 3.2 Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangbugs at nondot.org Reporter: berkus at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Using this sample code [code] #include #include class byte_array { std::vector value; public: template byte_array(const std::array& in) : value(in.begin(), in.begin() + N) {} }; int main() { boost::array arr; byte_array data(arr); } [/code] (see http://liveworkspace.org/code/2uLY7q$4) Clang's error diagnostic is quite not sufficient to spot and fix the error: [irrelevant text skipped] source.cpp:9:5: note: candidate template ignored: failed template argument deduction byte_array(const std::array& in) : value(in.begin(), in.begin() + N) {} ^ 1 error generated. Gcc 4.8.0 on the other hand provides much more helpful text, which lets fix the error on the spot (even gcc 4.7.2 nails it): source.cpp:9:5: note: template argument deduction/substitution failed: source.cpp:15:23: note: 'boost::array' is not derived from 'const std::array<_Tp, _Nm>' byte_array data(arr); ^ It is possible to test the output of both the compilers with provided test code on the liveworkspace website directly. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 11:20:13 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 18:20:13 +0000 Subject: [LLVMbugs] [Bug 15635] New: Crash shell script writer doesn't escape quotes correctly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15635 Bug ID: 15635 Summary: Crash shell script writer doesn't escape quotes correctly Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Driver Assignee: unassignedclangbugs at nondot.org Reporter: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu Classification: Unclassified If you pass a command-lien flag that contains escaped quotes, the .sh script written on crash time won't execute correctly: thakis$ cat test.cc #pragma clang __debug parser_crash thakis$ ~/src/llvm-svn/Release+Asserts/bin/clang -c test.cc -D 'WEBCORE_NAVIGATOR_VENDOR="Google Inc.\"' 0 clang 0x00000001106bfbf8 llvm::sys::PrintStackTrace(__sFILE*) + 40 1 clang 0x00000001106c0154 SignalHandler(int) + 548 2 libsystem_c.dylib 0x00007fff87fa194a _sigtramp + 26 3 clang 0x000000011087c41f NaNL + 6320 4 clang 0x000000010f1a9e20 clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void (clang::Parser::*)(clang::Declarator&)) + 576 5 clang 0x000000010f1a16e4 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 612 6 clang 0x000000010f207be6 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 694 7 clang 0x000000010f207639 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 361 8 clang 0x000000010f206b4c clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 3020 9 clang 0x000000010f205f04 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 308 10 clang 0x000000010f1932b1 clang::ParseAST(clang::Sema&, bool, bool) + 257 11 clang 0x000000010f151bd7 clang::CodeGenAction::ExecuteAction() + 215 12 clang 0x000000010ef22457 clang::FrontendAction::Execute() + 119 13 clang 0x000000010eefe70d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957 14 clang 0x000000010eec718a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3690 15 clang 0x000000010eebe330 cc1_main(char const**, char const**, char const*, void*) + 816 16 clang 0x000000010eec44a9 main + 7049 17 libdyld.dylib 0x00007fff81ba07e1 start + 0 Stack dump: 0. Program arguments: /Volumes/MacintoshHD2/src/llvm-svn/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free -main-file-name test.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 136 -coverage-file /Users/thakis/src/chrome-git/src/test.o -resource-dir /Volumes/MacintoshHD2/src/llvm-svn/Release+Asserts/bin/../lib/clang/3.3 -D WEBCORE_NAVIGATOR_VENDOR="Google Inc.\"" -fdeprecated-macro -fdebug-compilation-dir /Users/thakis/src/chrome-git/src -ferror-limit 19 -fmessage-length 302 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o test.o -x c++ test.cc 1. parser at unknown location clang: error: unable to execute command: Illegal instruction: 4 clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.3 (trunk 178474) Target: x86_64-apple-darwin12.3.0 Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ 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: /var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.cpp clang: note: diagnostic msg: /var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.sh clang: note: diagnostic msg: ******************** thakis$ chmod +x /var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.sh thakis$ /var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.sh error: error reading 'Inc.\"' error: error reading 'test-HimD0k.cpp' 2 errors generated. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 11:24:04 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 18:24:04 +0000 Subject: [LLVMbugs] [Bug 15636] New: clang should warn on suspicious increments of loop variables Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15636 Bug ID: 15636 Summary: clang should warn on suspicious increments of loop variables Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangbugs at nondot.org Reporter: resistor at mac.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Consider the following code snippet: void foo(char *a, char *b, unsigned c) { for (unsigned i = 0; i < c; ++i) { a[i] = b[i]; ++i; } } clang does not currently warn on this, even though the code is likely incorrect (incrementing i both in the loop latch and in the body of the loop). clang should produce a warning when it detects a variable that is incremented in the latch of the for header, and *unconditionally* incremented in the body of the loop. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 12:36:41 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 19:36:41 +0000 Subject: [LLVMbugs] [Bug 15637] New: Regression: Assertion failed: ((!TParams || DbgNode->getNumOperands() == 14) && "If you're setting the template parameters this should include a slot " "for that!"), function setTypeArray, file DebugInfo.cpp, line 623. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15637 Bug ID: 15637 Summary: Regression: Assertion failed: ((!TParams || DbgNode->getNumOperands() == 14) && "If you're setting the template parameters this should include a slot " "for that!"), function setTypeArray, file DebugInfo.cpp, line 623. Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangbugs at nondot.org Reporter: nicolasweber at gmx.de CC: llvmbugs at cs.uiuc.edu Classification: Unclassified This is reduced from code in WebKit: thakis$ cat repro.ii template union Value { int a; }; void g(float value) { Value tempValue; } thakis$ ~/src/llvm-svn/Release+Asserts/bin/clang -cc1 -triple i386-apple-macosx10.6.0 -emit-obj -g -x c++ repro.ii Assertion failed: ((!TParams || DbgNode->getNumOperands() == 14) && "If you're setting the template parameters this should include a slot " "for that!"), function setTypeArray, file DebugInfo.cpp, line 623. 0 clang 0x000000010b58cbf8 llvm::sys::PrintStackTrace(__sFILE*) + 40 1 clang 0x000000010b58d154 SignalHandler(int) + 548 2 libsystem_c.dylib 0x00007fff87fa194a _sigtramp + 26 3 clang 0x000000010b4b844c llvm::DIDescriptor::isCompositeType() const + 28 4 clang 0x000000010b58cf16 abort + 22 5 clang 0x000000010b58cef1 __assert_rtn + 81 6 clang 0x000000010b4b9846 llvm::DICompositeType::setTypeArray(llvm::DIArray, llvm::DIArray) + 278 7 clang 0x0000000109f746e4 clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 1268 This is at r178474 (which was current trunk when I started delta an hour or so ago). Doesn't happen at r178178. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 12:52:51 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 19:52:51 +0000 Subject: [LLVMbugs] [Bug 15638] New: Possible memory leak when starting a new thread Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15638 Bug ID: 15638 Summary: Possible memory leak when starting a new thread Product: libc++ Version: unspecified Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: hhinnant at apple.com Reporter: louis.dionne92 at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified While looking at the code in , I ran into the following: template void* __thread_proxy(void* __vp) { __thread_local_data().reset(new __thread_struct); std::unique_ptr<_Fp> __p(static_cast<_Fp*>(__vp)); ..... } template thread::thread(_Fp&& __f, _Args&&... __args) { typedef tuple::type, typename decay<_Args>::type...> _Gp; _VSTD::unique_ptr<_Gp> __p(new _Gp(__decay_copy(_VSTD::forward<_Fp>(__f)), __decay_copy(_VSTD::forward<_Args>(__args))...)); int __ec = pthread_create(&__t_, 0, &__thread_proxy<_Gp>, __p.get()); if (__ec == 0) __p.release(); else __throw_system_error(__ec, "thread constructor failed"); } Unless I am mistaken, if the allocation fails on the first line of __thread_proxy, __vp will never be freed because it is not yet owned by the unique_ptr. Simply changing the order of the first two lines in __thread_proxy would fix the issue. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 13:33:39 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 20:33:39 +0000 Subject: [LLVMbugs] [Bug 15637] Regression: Assertion failed: ((!TParams || DbgNode->getNumOperands() == 14) && "If you're setting the template parameters this should include a slot " "for that!"), function setTypeArray, file DebugInfo.cpp, line 623. In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15637 Nico Weber changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Nico Weber --- Reverted r178079 in r178497 for now. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 13:47:23 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 20:47:23 +0000 Subject: [LLVMbugs] [Bug 15639] New: regression: clang trunk r178466 crashes building ITK ('itk::Math::FloatAlmostEqual') Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15639 Bug ID: 15639 Summary: regression: clang trunk r178466 crashes building ITK ('itk::Math::FloatAlmostEqual') Product: new-bugs Version: trunk Hardware: Macintosh OS: MacOS X Status: NEW Severity: release blocker Priority: P Component: new bugs Assignee: unassignedbugs at nondot.org Reporter: sean at rogue-research.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10263 --> http://llvm.org/bugs/attachment.cgi?id=10263&action=edit requested files I have a buildbot that builds nightly ITK with a recent build of clang (that I rebuild every few weeks). I updated clang from r177175 to r178252 and then it started crashing. Updated to r178466 and it's still crashing. My ITK nightly build log: Basically: 0 clang-3.3 0x0000000106b0c258 llvm::sys::PrintStackTrace(__sFILE*) + 40 1 clang-3.3 0x0000000106b0c744 SignalHandler(int) + 436 2 libsystem_c.dylib 0x00007fff8327894a _sigtramp + 26 3 libsystem_c.dylib 0x00007fff59af7350 _sigtramp + 3599231520 4 clang-3.3 0x0000000106a52572 llvm::MDNode::replaceOperand(llvm::MDNodeOperand*, llvm::Value*) + 274 5 clang-3.3 0x00000001069f442a llvm::DICompositeType::setTypeArray(llvm::DIArray, llvm::DIArray) + 122 6 clang-3.3 0x0000000106d03626 clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 1302 7 clang-3.3 0x0000000106d05994 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 740 8 clang-3.3 0x0000000106cfdd96 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 118 9 clang-3.3 0x0000000106cfda72 clang::CodeGen::CGDebugInfo::getContextDescriptor(clang::Decl const*) + 338 10 clang-3.3 0x0000000106d00e75 clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*, llvm::DIFile) + 197 11 clang-3.3 0x0000000106d05984 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 724 12 clang-3.3 0x0000000106cfdd96 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 118 13 clang-3.3 0x0000000106d00fd2 clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*, llvm::DIFile) + 242 14 clang-3.3 0x0000000106d05817 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 359 15 clang-3.3 0x0000000106cfdd96 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 118 16 clang-3.3 0x0000000106d0622d clang::CodeGen::CGDebugInfo::getOrCreateFunctionType(clang::Decl const*, clang::QualType, llvm::DIFile) + 93 17 clang-3.3 0x0000000106d067c9 clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl, clang::QualType, llvm::Function*, llvm::IRBuilder >&) + 713 18 clang-3.3 0x0000000106d9d8a4 clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl, clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&, clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 1060 19 clang-3.3 0x0000000106d9e423 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 563 20 clang-3.3 0x0000000106da7379 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 585 21 clang-3.3 0x0000000106da499c clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 220 22 clang-3.3 0x0000000106da19db clang::CodeGen::CodeGenModule::EmitDeferred() + 27 23 clang-3.3 0x0000000106da18a1 clang::CodeGen::CodeGenModule::Release() + 17 24 clang-3.3 0x0000000106d9af2d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 93 25 clang-3.3 0x0000000106ef6a54 clang::ParseAST(clang::Sema&, bool, bool) + 516 26 clang-3.3 0x0000000106d9a21b clang::CodeGenAction::ExecuteAction() + 91 27 clang-3.3 0x0000000106e7d518 clang::FrontendAction::Execute() + 88 28 clang-3.3 0x0000000106e5b8cd clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 861 29 clang-3.3 0x0000000106b0f127 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3623 30 clang-3.3 0x0000000106107815 cc1_main(char const**, char const**, char const*, void*) + 773 31 clang-3.3 0x00000001061059c6 main + 6518 32 libdyld.dylib 0x00007fff8adf77e1 start + 0 Stack dump: 0. Program arguments: /Users/builder/llvm/llvm-rel-install/bin/clang-3.3 -cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name itkMathTest.cxx -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -g -coverage-file /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common/test/CMakeFiles/itkMathTest.dir/itkMathTest.cxx.o -resource-dir /Users/builder/llvm/llvm-rel-install/bin/../lib/clang/3.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -D _FORTIFY_SOURCE=2 -I /Users/builder/external/ITK/Modules/ThirdParty/DoubleConversion/src/double-conversion -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/KWSys/src -I /Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I /Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I /Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/core -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/vcl -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/core -I /Users/builder/external/ITK/Modules/ThirdParty/VNLInstantiation/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common -I /Users/builder/external/ITK/Modules/Core/Common/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/IO/ImageBase -I /Users/builder/external/ITK/Modules/IO/ImageBase/include -I /Users/builder/external/ITK/Modules/Core/ImageAdaptors/include -I /Users/builder/external/ITK/Modules/Filtering/ImageFilterBase/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/Netlib -I /Users/builder/external/ITK/Modules/Numerics/Statistics/include -I /Users/builder/external/ITK/Modules/Core/Transform/include -I /Users/builder/external/ITK/Modules/Core/ImageFunction/include -I /Users/builder/external/ITK/Modules/Filtering/ImageGrid/include -I /Users/builder/external/ITK/Modules/Filtering/ImageCompose/include -I /Users/builder/external/ITK/Modules/Core/Mesh/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/ZLIB/src -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/MetaIO/src/MetaIO -I /Users/builder/external/ITK/Modules/ThirdParty/MetaIO/src/MetaIO -I /Users/builder/external/ITK/Modules/Core/SpatialObjects/include -I /Users/builder/external/ITK/Modules/Filtering/ImageStatistics/include -I /Users/builder/external/ITK/Modules/Filtering/Path/include -I /Users/builder/external/ITK/Modules/Filtering/ImageIntensity/include -I /Users/builder/external/ITK/Modules/IO/BMP/include -I /Users/builder/external/ITK/Modules/IO/BioRad/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/Expat/src/expat -I /Users/builder/external/ITK/Modules/ThirdParty/Expat/src/expat -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/OpenJPEG/src/openjpeg -I /Users/builder/external/ITK/Modules/ThirdParty/OpenJPEG/src/openjpeg -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/GDCM -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/GDCM/src/gdcm/Source/Common -I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat -I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataDictionary -I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/Common -I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/InformationObjectDefinition -I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MessageExchangeDefinition -I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition -I /Users/builder/external/ITK/Modules/IO/GDCM/include -I /Users/builder/external/ITK/Modules/IO/GIPL/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/JPEG/src -I /Users/builder/external/ITK/Modules/ThirdParty/JPEG/src -I /Users/builder/external/ITK/Modules/IO/JPEG/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/TIFF/src -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/TIFF/src/itktiff -I /Users/builder/external/ITK/Modules/ThirdParty/TIFF/src -I /Users/builder/external/ITK/Modules/IO/TIFF/include -I /Users/builder/external/ITK/Modules/IO/LSM/include -I /Users/builder/external/ITK/Modules/IO/Meta/include -I /Users/builder/external/ITK/Modules/ThirdParty/NIFTI/src/nifti/niftilib -I /Users/builder/external/ITK/Modules/ThirdParty/NIFTI/src/nifti/znzlib -I /Users/builder/external/ITK/Modules/IO/NIFTI/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/NrrdIO/src/NrrdIO -I /Users/builder/external/ITK/Modules/ThirdParty/NrrdIO/src/NrrdIO -I /Users/builder/external/ITK/Modules/IO/NRRD/include -I /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/PNG/src -I /Users/builder/external/ITK/Modules/ThirdParty/PNG/src -I /Users/builder/external/ITK/Modules/IO/PNG/include -I /Users/builder/external/ITK/Modules/IO/Stimulate/include -I /Users/builder/external/ITK/Modules/IO/VTK/include -I /Users/builder/external/ITK/Modules/Core/TestKernel/include -Wall -Wextra -Wno-unused-parameter -Wc++11-compat -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -fconst-strings -fdebug-compilation-dir /Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common/test -ferror-limit 19 -fmessage-length 0 -fsanitize=integer-divide-by-zero,null,object-size,return,unreachable,vla-bound -stack-protector 2 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -backend-option -vectorize-loops -o CMakeFiles/itkMathTest.dir/itkMathTest.cxx.o -x c++ /Users/builder/external/ITK/Modules/Core/Common/test/itkMathTest.cxx 1. parser at end of file 2. Per-file LLVM IR generation 3. /Users/builder/external/ITK/Modules/Core/Common/include/itkMath.h:258:1: Generating code for declaration 'itk::Math::FloatAlmostEqual' clang-3.3: error: unable to execute command: Segmentation fault: 11 clang-3.3: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.3 (178466) Target: x86_64-apple-darwin12.3.0 Thread model: posix clang-3.3: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script. clang-3.3: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.3: note: diagnostic msg: /var/folders/fk/hnnmm2h91xl6zvz8dl4y6b8r0000gn/T/itkMathTest-9Ljx8h.cpp clang-3.3: note: diagnostic msg: /var/folders/fk/hnnmm2h91xl6zvz8dl4y6b8r0000gn/T/itkMathTest-9Ljx8h.sh clang-3.3: 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: From bugzilla-daemon at llvm.org Mon Apr 1 14:09:28 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 21:09:28 +0000 Subject: [LLVMbugs] [Bug 15639] regression: clang trunk r178466 crashes building ITK ('itk::Math::FloatAlmostEqual') In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15639 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |echristo at gmail.com Resolution|--- |DUPLICATE --- Comment #1 from Eric Christopher --- Should be dup. *** This bug has been marked as a duplicate of bug 15637 *** -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 14:13:03 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 21:13:03 +0000 Subject: [LLVMbugs] [Bug 15500] ARCMT uses an iterator after invalidation In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15500 Argyrios Kyrtzidis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Argyrios Kyrtzidis --- Should be fixed in r178500 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 14:26:26 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 21:26:26 +0000 Subject: [LLVMbugs] [Bug 15640] New: llvm crashes with Linux kernel code on ARM target Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15640 Bug ID: 15640 Summary: llvm crashes with Linux kernel code on ARM target Product: new-bugs Version: trunk Hardware: Other OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedbugs at nondot.org Reporter: weimingz at codeaurora.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10264 --> http://llvm.org/bugs/attachment.cgi?id=10264&action=edit clang -O3 q clang: /home/weimingz/llvm/include/llvm/CodeGen/MachineOperand.h:260: unsigned int llvm::MachineOperand::getReg() const: Assertion `isReg() && "This is not a register operand!"' failed. 0 clang 0x0000000002c7e165 llvm::sys::PrintStackTrace(_IO_FILE*) + 38 1 clang 0x0000000002c7e3e2 2 clang 0x0000000002c7de3a 3 libpthread.so.0 0x00007fa103acc8f0 4 libc.so.6 0x00007fa102bb3a75 gsignal + 53 5 libc.so.6 0x00007fa102bb75c0 abort + 384 6 libc.so.6 0x00007fa102bac941 __assert_fail + 241 7 clang 0x00000000020a6a79 8 clang 0x00000000020c68d9 llvm::ARMBaseRegisterInfo::eliminateFrameIndex(llvm::MachineBasicBlock::bundle_iterator >, int, unsigned int, llvm::RegScavenger*) const + 935 9 clang 0x00000000024bce82 llvm::PEI::replaceFrameIndices(llvm::MachineFunction&) + 1476 10 clang 0x00000000024b9b33 llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 571 11 clang 0x0000000002476ca5 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95 12 clang 0x0000000002b54c77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 393 13 clang 0x0000000002b54e77 llvm::FPPassManager::runOnModule(llvm::Module&) + 89 14 clang 0x0000000002b551f2 llvm::MPPassManager::runOnModule(llvm::Module&) + 576 15 clang 0x0000000002b55818 llvm::PassManagerImpl::run(llvm::Module&) + 254 16 clang 0x0000000002b55b73 llvm::PassManager::run(llvm::Module&) + 39 17 clang 0x0000000000e83ada 18 clang 0x0000000000e83bb2 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 140 19 clang 0x0000000000e7e2d4 20 clang 0x0000000001062e7f clang::ParseAST(clang::Sema&, bool, bool) + 780 21 clang 0x0000000000c371da clang::ASTFrontendAction::ExecuteAction() + 298 22 clang 0x0000000000e7d139 clang::CodeGenAction::ExecuteAction() + 1425 23 clang 0x0000000000c36d5a clang::FrontendAction::Execute() + 200 24 clang 0x0000000000c0bfaa clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 728 25 clang 0x0000000000bdaa28 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018 26 clang 0x0000000000bca930 cc1_main(char const**, char const**, char const*, void*) + 754 27 clang 0x0000000000bd4f56 main + 499 28 libc.so.6 0x00007fa102b9ec4d __libc_start_main + 253 29 clang 0x0000000000bc9fa9 Stack dump: 0. Program arguments: /scratch/llvm-build/Debug+Asserts/bin/clang -cc1 -triple armv4t-none-linux-gnueabi -emit-obj -disable-free -main-file-name context-parsed.i -mrelocation-model static -fmath-errno -ffp-contract=fast -masm-verbose -mconstructor-aliases -target-abi aapcs-linux -target-cpu arm7tdmi -mfloat-abi soft -target-feature +soft-float-abi -target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir /local/scratch/llvm-build/mainline-state-transtion/Debug+Asserts/bin/../lib/clang/3.3 -O3 -fdebug-compilation-dir /prj/llvm-arm/home/weimingz/llvm_tests/bug_asm_inline/unittest -ferror-limit 19 -fmessage-length 174 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/context-parsed-VKo8Pc.o -x cpp-output context-parsed.i -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 14:43:26 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 21:43:26 +0000 Subject: [LLVMbugs] [Bug 15642] New: clang -MMD doesn't escape dollar signs in output Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15642 Bug ID: 15642 Summary: clang -MMD doesn't escape dollar signs in output Product: clang Version: 3.2 Hardware: All OS: All Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: abbeyj at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified When using "clang -MMD" with filenames that contain dollar signs, the dollar signs are not escaped. If this output is used with make it won't be able to find the prerequisites. For example: $ /bin/ls -l -rw-r--r-- 1 abbeyj users 75 Apr 1 17:36 Makefile -rw-r--r-- 1 abbeyj users 0 Apr 1 17:35 dollar$sign.h -rw-r--r-- 1 abbeyj users 25 Apr 1 17:32 main.c $ cat Makefile main.o: main.c $(CC) -MMD -c main.c -include main.d clean: $(RM) *.o *.d $ cat main.c #include "dollar$sign.h" # works fine with gcc $ make CC=gcc gcc -MMD -c main.c $ cat main.d main.o: main.c dollar$$sign.h $ make CC=gcc make: `main.o' is up to date. $ make clean # fails with clang (once .d file has been created) $ make CC=clang clang -MMD -c main.c $ cat main.d main.o: main.c dollar$sign.h $ make CC=clang make: *** No rule to make target `dollarign.h', needed by `main.o'. Stop. Since the dollar sign is not doubled, make tries to expand "$s" and gets an empty string making it think the desired filename is "dollarign.h". Since that file doesn't exist, the make then fails. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 14:43:54 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 21:43:54 +0000 Subject: [LLVMbugs] [Bug 15633] a bug involving defining enumeration outside of template class body In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15633 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |richard-llvm at metafoo.co.uk Resolution|--- |FIXED --- Comment #1 from Richard Smith --- Fixed in r178502. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 14:55:43 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 21:55:43 +0000 Subject: [LLVMbugs] [Bug 15644] New: Scalar replacement of aggregates slower in LLVM 3.0+ relative to 2.8 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15644 Bug ID: 15644 Summary: Scalar replacement of aggregates slower in LLVM 3.0+ relative to 2.8 Product: libraries Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations Assignee: unassignedbugs at nondot.org Reporter: ajclinto at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified This was originally sent to the LLVM mailing list after the LLVM 3.0 release, but it still seems to be an issue in 3.2. The attached file optimizes much faster (about 3x better) in LLVM 2.8 compared to 3.2. Performance didn't change on this test case between 3.0 and 3.2. time opt -scalarrepl slow_sroa.ll On my system: 2.8: 0.16s 3.2: 0.5s This is from email correspondence on llvm-dev: ------------------------------------------------------ Actually, -scalarrepl-ssa is the slower one. On 04/05/2012 06:56 PM, Andrew Clinton wrote: > Attached is the test case. > > Run: > > opt -scalarrepl slow_sroa.ll > > Andrew > > On 04/05/2012 05:11 PM, Nick Lewycky wrote: >> I've patched SROA in a way that may have made it slower. Do you have a testcase we can look at? >> >> Nick >> >> On 4 April 2012 16:19, Andrew Clinton wrote: >> >> I just upgraded our optimizer to LLVM 3.0 from 2.8 and noticed that the >> scalar replacement of aggregates pass takes a lot longer for some code. >> Has there been a performance regression in this pass, or does it do more >> work? >> >> LLVM 3.0: >> >> Total Execution Time: 1.0600 seconds (1.0526 wall clock) >> >> ---User Time--- --System Time-- --User+System-- ---Wall >> Time--- --- Name --- >> 0.5100 ( 49.5%) 0.0000 ( 0.0%) 0.5100 ( 48.1%) 0.5099 ( >> 48.4%) Scalar Replacement of Aggregates (SSAUp) >> 0.1900 ( 18.4%) 0.0300 (100.0%) 0.2200 ( 20.8%) 0.2156 ( >> 20.5%) Scalar Replacement of Aggregates (DT) >> 0.1200 ( 11.7%) 0.0000 ( 0.0%) 0.1200 ( 11.3%) 0.1158 ( >> 11.0%) VEX Constant Propagation >> 0.0200 ( 1.9%) 0.0000 ( 0.0%) 0.0200 ( 1.9%) 0.0196 ( >> 1.9%) Simplify the CFG >> 0.0200 ( 1.9%) 0.0000 ( 0.0%) 0.0200 ( 1.9%) 0.0181 ( >> 1.7%) Module Verifier >> ... >> >> LLVM 2.8: >> >> Total Execution Time: 0.6500 seconds (0.6489 wall clock) >> >> ---User Time--- --System Time-- --User+System-- ---Wall >> Time--- --- Name --- >> 0.1400 ( 21.9%) 0.0000 ( 0.0%) 0.1400 ( 21.5%) 0.1379 ( >> 21.3%) Scalar Replacement of Aggregates >> 0.1200 ( 18.7%) 0.0000 ( 0.0%) 0.1200 ( 18.5%) 0.1208 ( >> 18.6%) VEX Constant Propagation >> 0.1000 ( 15.6%) 0.0000 ( 0.0%) 0.1000 ( 15.4%) 0.1050 ( >> 16.2%) Scalar Replacement of Aggregates >> 0.0400 ( 6.3%) 0.0000 ( 0.0%) 0.0400 ( 6.2%) 0.0481 ( >> 7.4%) Combine redundant instructions >> 0.0200 ( 3.1%) 0.0000 ( 0.0%) 0.0200 ( 3.1%) 0.0235 ( >> 3.6%) Preliminary module verification >> ... >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 15:46:46 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 22:46:46 +0000 Subject: [LLVMbugs] [Bug 15647] New: Add .eh_frame support Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15647 Bug ID: 15647 Summary: Add .eh_frame support Product: tools Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: llvm-dwarfdump Assignee: unassignedbugs at nondot.org Reporter: jcarter at mips.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10269 --> http://llvm.org/bugs/attachment.cgi?id=10269&action=edit ELF object for dump The .eh_frame section is very similar to the .debug_frame section. This section describes exception handling. If this bug belongs in llvm-objdump, please move it there. I could not find a bugzilla spot for it. Basically we need a pretty printer output for exception handling info if for no other reason, to create "make check" tests. This is what gnu's readelf -wf dumps for my small test case: svn: readelf -wf ../../j.o Contents of the .eh_frame section: 00000000 0000001c 00000000 CIE Version: 1 Augmentation: "zPLR" Code alignment factor: 1 Data alignment factor: -8 Return address column: 31 Augmentation data: 00 00 00 00 00 00 00 00 00 00 00 DW_CFA_def_cfa: r29 ofs 0 00000020 0000002c 00000024 FDE cie=00000000 pc=00000000..0000007c Augmentation data: 00 00 00 00 00 00 00 00 DW_CFA_advance_loc: 4 to 00000004 DW_CFA_def_cfa_offset: 16 DW_CFA_advance_loc: 8 to 0000000c DW_CFA_offset: r31 at cfa-8 DW_CFA_offset: r28 at cfa-16 DW_CFA_nop DW_CFA_nop DW_CFA_nop DW_CFA_nop DW_CFA_nop DW_CFA_nop DW_CFA_nop -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 15:54:44 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 22:54:44 +0000 Subject: [LLVMbugs] [Bug 15649] New: clang-sa should warn when taking the address of __block storage? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15649 Bug ID: 15649 Summary: clang-sa should warn when taking the address of __block storage? Product: clang Version: 3.2 Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: jim.correia at pobox.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10270 --> http://llvm.org/bugs/attachment.cgi?id=10270&action=edit sample code Build and run the attached sample code. -performTest1 works correctly when built with MRR. (Ignoring the possibility that it won't if the autorelease pool implementation details of NSFileCoordinator change.) It doesn't work correctly when built for ARC. The reason is that the code that the compiler generates (-performTest2 is written similarly to the what the method looks like with the compiler generated code) overwrites the value of error set in the block. -performTest3 doesn't work correctly (either for MRR or ARC) because we take the address of __block storage, then copy the block, moving that value to the heap. We writing to the stale value on the stack. These are really two separate issues, but both avoidable if clang-sa issued a warning that taking the address of __block storage is likely going to lead to heartache. xcrun clang NSFileCoordinatorErrorPattern.m -fobjc-arc -framework Foundation xcrun clang --version Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 15:56:04 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 01 Apr 2013 22:56:04 +0000 Subject: [LLVMbugs] [Bug 15650] New: Segfault when assigning value to a reference Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15650 Bug ID: 15650 Summary: Segfault when assigning value to a reference Product: clang Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangbugs at nondot.org Reporter: vk at vedantk.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10271 --> http://llvm.org/bugs/attachment.cgi?id=10271&action=edit clang++ backtrace clang++ attempted to generate a diagnostic for me on the line; /* Right hand side is of type Vector3f. */ Vector3f& normal = loc.second.normalized(); It segfaulted while doing that. The full trace is attached in the file "trace.txt". Here are the last few frames; 0 libLLVM-3.2.so 0x00007f34d25f40bf 1 libLLVM-3.2.so 0x00007f34d25f4529 2 libpthread.so.0 0x00007f34d189c1e0 3 libLLVM-3.2.so 0x00007f34d25bbb75 llvm::APInt::countLeadingZerosSlowCase() const + 37 4 libLLVM-3.2.so 0x00007f34d25bbd5d llvm::APInt::EqualSlowCase(llvm::APInt const&) const + 253 5 clang 0x0000000000ec22b9 6 clang 0x0000000000ec3113 7 clang 0x0000000000ec4380 clang::FormatASTNodeDiagnosticArgument(clang::DiagnosticsEngine::ArgumentKind, long, char const*, unsigned int, char const*, unsigned int, std::pair const*, unsigned int, llvm::SmallVectorImpl&, void*, llvm::ArrayRef) + 240 8 clang 0x00000000010235fa clang::Diagnostic::FormatDiagnostic(char const*, char const*, llvm::SmallVectorImpl&) const + 2570 9 clang 0x0000000000638787 clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&) + 87 10 clang 0x0000000001027f20 clang::DiagnosticIDs::EmitDiag(clang::DiagnosticsEngine&, clang::DiagnosticIDs::Level) const + 48 11 clang 0x0000000001028175 clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 389 12 clang 0x0000000001021d5c clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) + 76 13 clang 0x000000000090133b clang::Sema::EmitCurrentDiagnostic(unsigned int) + 683 clang++ was able to successfully compile the program when I removed the reference from the left hand side; Vector3f normal = loc.second.normalized(); -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 18:46:56 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 01:46:56 +0000 Subject: [LLVMbugs] [Bug 15201] clang crashes when building tor 0.2.4.9-alpha universal In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15201 Rafael Ávila de Espíndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rafael.espindola at gmail.com Resolution|--- |WORKSFORME --- Comment #6 from Rafael Ávila de Espíndola --- No reply since 2013-02-07. Please reopen with a .i if appropriate. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 20:57:21 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 03:57:21 +0000 Subject: [LLVMbugs] [Bug 15206] clang and gold plugin of 3.2 cannot generate bc file for MySQL In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15206 Rafael Ávila de Espíndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rafael.espindola at gmail.com Resolution|--- |INVALID --- Comment #6 from Rafael Ávila de Espíndola --- Closing per comment 5. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 22:40:47 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 05:40:47 +0000 Subject: [LLVMbugs] [Bug 15352] x86 crash: cannot select v4i32 = vselect In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15352 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from Bill Wendling --- ispc's bug is closed. Closing this now. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 1 22:43:12 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 05:43:12 +0000 Subject: [LLVMbugs] [Bug 15651] New: Clang fails to build a template that uses constexpr. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15651 Bug ID: 15651 Summary: Clang fails to build a template that uses constexpr. Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: jujjyl at gmail.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10275 --> http://llvm.org/bugs/attachment.cgi?id=10275&action=edit -E -generated test case. I have built Clang 3.2 on Windows following these instructions: https://github.com/kripken/emscripten/wiki/Using-Emscripten-from-Visual-Studio-2010 (step 4 on that page) Using that to build libcxx on Windows for emscripten, I am bit by an issue where a constexpr inside a template class is not working. The same code builds ok on Clang 3.2 built on Linux or OSX (following instructions at https://github.com/kripken/emscripten/wiki/Getting-started-on-Mac-OS-X and https://github.com/kripken/emscripten/wiki/Getting-Started-on-Ubuntu-12.10 ) A large test case is available at https://dl.dropbox.com/u/40949268/emcc/bugs/preprocessed.cpp Compiling on Windows with "clang++ -std=c++11 -m32 -U__i386__ -U__x86_64__ -U__i386 -U__x86_64 -Ui386 -Ux86_64 -U__SSE__ -U__SSE2__ -U__MMX__ -UX87_DOUBLE_ROUNDING -UHAVE_GCC_ASM_FOR_X87 -DEMSCRIPTEN -U__STRICT_ANSI__ -U__CYGWIN__ -D__STDC__ -Xclang -triple=i386-pc-linux-gnu -D__IEEE_LITTLE_ENDIAN -fno-math-errno -fno-ms-compatibility -nostdinc -nostdinc++ -Xclang -nobuiltininc -Xclang -nostdsysteminc -U__APPLE__ -U__linux__ -emit-llvm -c preprocessed.cpp" gives the error clang++: warning: argument unused during compilation: '-nostdinc++' G:\Inttel-slave\win-emcc-incoming-tests\build\system\lib\libcxx\condition_variable.cpp:59:30: error: constexpr variable 'ts_sec_max' must be initialized by a constant expression _LIBCPP_CONSTEXPR ts_sec ts_sec_max = numeric_limits::max(); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ G:\Inttel-slave\win-emcc-incoming-tests\build\system\lib\libcxx\condition_variable.cpp:59:43: note: undefined function 'max' cannot be used in a constant expression _LIBCPP_CONSTEXPR ts_sec ts_sec_max = numeric_limits::max(); ^ G:\Inttel-slave\win-emcc-incoming-tests\build\system\include\libcxx\limits:443:61: note: declared here _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type max() _NOEXCEPT {return __base::max();} ^ 1 error generated. A minimal failing example that exhibits the same problem is available at https://dl.dropbox.com/u/40949268/emcc/bugs/constexpr_fail.cpp which fails as follows: https://dl.dropbox.com/u/40949268/emcc/bugs/constexpr_fail.txt The same problem is tracked in the emscripten issue tracker here: https://github.com/kripken/emscripten/issues/1019 I also tried with the Clang trunk on Windows, which also fails in the same way: https://dl.dropbox.com/u/40949268/emcc/bugs/constexpr_fail_clang33trunk.txt Any ideas what could cause this kind of thing to work on linux and OSX builds of Clang, but not on Windows builds of Clang? -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 01:17:03 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 08:17:03 +0000 Subject: [LLVMbugs] [Bug 15440] llvm opt crash on csmith fuzz testcase In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15440 Bill Wendling changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |isanbard at gmail.com Resolution|--- |FIXED --- Comment #1 from Bill Wendling --- This should be fixed here: Sending lib/Transforms/IPO/GlobalOpt.cpp Adding test/Transforms/GlobalOpt/crash-2.ll Transmitting file data .. Committed revision 178531. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 01:17:03 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 08:17:03 +0000 Subject: [LLVMbugs] [Bug 15465] Emscripten tracking bug In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15465 Bug 15465 depends on bug 15440, which changed state. Bug 15440 Summary: llvm opt crash on csmith fuzz testcase http://llvm.org/bugs/show_bug.cgi?id=15440 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 02:22:16 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 09:22:16 +0000 Subject: [LLVMbugs] [Bug 15653] New: HTTPS access to llvm.org gives 404 error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15653 Bug ID: 15653 Summary: HTTPS access to llvm.org gives 404 error Product: Website Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: enhancement Priority: P Component: General Website Assignee: unassignedbugs at nondot.org Reporter: Matthieu.Moy at imag.fr CC: llvmbugs at cs.uiuc.edu Classification: Unclassified I mistakenly accessed https://llvm.org/ (httpS instead of plain HTTP). I'd expect either * HTTPS working * Redirection to the plain HTTP site * at worse, no reply from server. Instead, I got a 404 error: Not Found The requested URL / was not found on this server. I guess there's a misconfigured virtual host in the apache config. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 04:14:11 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 11:14:11 +0000 Subject: [LLVMbugs] [Bug 15654] New: False positive: free() on a "constant" malloc()-ed address Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15654 Bug ID: 15654 Summary: False positive: free() on a "constant" malloc()-ed address Product: clang Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: ranma42 at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10276 --> http://llvm.org/bugs/attachment.cgi?id=10276&action=edit Reduced testcase Running the latest checker (checker-272 (2013-03-01 14:12:07) ) on the attached code, it incorrectly reports: test-free.c:16:2: warning: Argument to free() is a constant address (42), which is not memory allocated by malloc() Although the address can be proved to be equal to a compile-time known constant in one of the branches, it has actually been allocated by malloc(), so it should not be reported as a problem in this case. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 06:44:17 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 13:44:17 +0000 Subject: [LLVMbugs] [Bug 15642] clang -MMD doesn't escape dollar signs in output In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15642 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution|--- |FIXED --- Comment #1 from Benjamin Kramer --- Fixed in r178540. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 11:23:49 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 18:23:49 +0000 Subject: [LLVMbugs] [Bug 15655] New: libLLVMTarget.so is not linked with -lLLVMCodeGet, unresolved llvm::MachineInstr::hasPropertyInBundle when linking llvm-dis Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15655 Bug ID: 15655 Summary: libLLVMTarget.so is not linked with -lLLVMCodeGet, unresolved llvm::MachineInstr::hasPropertyInBundle when linking llvm-dis Product: Build scripts Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: cmake Assignee: unassignedbugs at nondot.org Reporter: dilyan.palauzov at aegee.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified I compile llvm-3.2 with cmake. On 'make' I get the message [ 61%] Built target opt [ 61%] Built target llvm-as Linking CXX executable ../../bin/llvm-dis ../../lib/libLLVMTarget.so: undefined reference to `llvm::MachineInstr::hasPropertyInBundle(unsigned int, llvm::MachineInstr::QueryType) const' collect2: error: ld returned 1 exit status make[2]: *** [bin/llvm-dis] Error 1 make[1]: *** [tools/llvm-dis/CMakeFiles/llvm-dis.dir/all] Error 2 make: *** [all] Error 2 Indeed, libLLVMCodeGen.so defines llvm::MachineInstr::hasPropertyInBundle: nm -C lib/libLLVMCodeGen.so |grep hasPropertyInBundle 000000000027136c T llvm::MachineInstr::hasPropertyInBundle(unsigned int, llvm::MachineInstr::QueryType) const and libLLVMTarget.so has hasPropertyInBundle as undefined symbol: nm -C lib/libLLVMTarget.so |grep hasPropertyInBundle U llvm::MachineInstr::hasPropertyInBundle(unsigned int, llvm::MachineInstr::QueryType) const and libLLVMTarget.so does not depend on libLLVMCodeGen.so: readelf -d lib/libLLVMTarget.so |grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libLLVMCore.so] 0x0000000000000001 (NEEDED) Shared library: [libLLVMMC.so] 0x0000000000000001 (NEEDED) Shared library: [libLLVMSupport.so] 0x0000000000000001 (NEEDED) Shared library: [libLLVMObject.so] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] I noticed, that both libLLVMTarget.so and libLLVMCodeGen.so have a private llvm::MachineInstr::hasProperty , but only libLLVMCodeGen has and exports hasPropertyInBundle() . So the error is one of: -- libLLVMTarget.so is not linked with -lLLVMCodeGet, or -- llvm-dis is not linked with -lLLVMCodeGet, in case llvm-dis does not use on its own hasPropertyInBundle, but depends on libLLVMTarget I can compile llvm-dis using Autoconf, but not with cmake. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 11:37:41 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 18:37:41 +0000 Subject: [LLVMbugs] [Bug 15630] PPC64: atomic store results in bus error if type i8 is used In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15630 Bill Schmidt changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Bill Schmidt --- Fixed in r178559. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 13:15:29 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 02 Apr 2013 20:15:29 +0000 Subject: [LLVMbugs] [Bug 15656] New: not substituting into some instantiation-dependent (but not type-dependent) expressions inside sizeof Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15656 Bug ID: 15656 Summary: not substituting into some instantiation-dependent (but not type-dependent) expressions inside sizeof Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: richard-llvm at metafoo.co.uk CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified For instance: template void f(int a[sizeof(static_cast( T() ))]); void g() { f(0); } We should reject this (both the value-initialization and the cast are ill-formed), but we apparently don't even instantiate inside the sizeof's operand (perhaps because it's not type-dependent?). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 17:34:16 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 00:34:16 +0000 Subject: [LLVMbugs] [Bug 15351] Illegal instruction with -march=native In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15351 Aaron Ballman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Aaron Ballman --- Fixed in r178598 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 17:42:52 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 00:42:52 +0000 Subject: [LLVMbugs] [Bug 15657] New: s/__threaad_execute/__thread_execute/ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15657 Bug ID: 15657 Summary: s/__threaad_execute/__thread_execute/ Product: libc++ Version: 3.2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P Component: All Bugs Assignee: hhinnant at apple.com Reporter: arthur.j.odwyer at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Lines 331 and 343 in "include/thread" contain the identifier "__threaad_execute", which was probably intended to be "__thread_execute". Right now it's misspelled consistently everywhere, so there's no bug in the code's behavior; it just looks dumb if you happen to be scanning headers and/or reading stack traces. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 20:13:01 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 03:13:01 +0000 Subject: [LLVMbugs] [Bug 15351] Illegal instruction with -march=native In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15351 Aaron Ballman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #6 from Aaron Ballman --- Reopening the bug -- my patch broke a gcc 4.6 builder that doesn't understand xgetbv. I will reapply the patch once I've solved that issue. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 2 20:42:38 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 03:42:38 +0000 Subject: [LLVMbugs] [Bug 15491] Assertion `Result && "Could not evaluate expression"' failed In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15491 Rafael Ávila de Espíndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rafael.espindola at gmail.com Resolution|--- |FIXED --- Comment #4 from Rafael Ávila de Espíndola --- Fixed in r178609. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 06:06:07 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 13:06:07 +0000 Subject: [LLVMbugs] [Bug 15632] PPC64: UNREACHABLE executed in LegalizeFloatTypes.cpp because of PPC128 float In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15632 Bill Schmidt changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Bill Schmidt --- Fixed in r178639. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 06:08:03 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 13:08:03 +0000 Subject: [LLVMbugs] [Bug 15351] Illegal instruction with -march=native In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15351 Aaron Ballman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Aaron Ballman --- Fixed in r178636; this time for sure! -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 09:07:05 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 16:07:05 +0000 Subject: [LLVMbugs] [Bug 15659] New: std::vector + emplaced std::istringstream .seekg(0, std::ios_base::beg) leads to missize and trash at end of the stream .str() Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15659 Bug ID: 15659 Summary: std::vector + emplaced std::istringstream .seekg(0, std::ios_base::beg) leads to missize and trash at end of the stream .str() Product: libc++ Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: release blocker Priority: P Component: All Bugs Assignee: hhinnant at apple.com Reporter: iamtakingiteasy at eientei.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10279 --> http://llvm.org/bugs/attachment.cgi?id=10279&action=edit Example testcase When std::istringstream emplaced into std::vector alongside with other std::istringstream and then seeked to begening with .seekg(0, std::ios_base::beg), it size becames largally bigger than original and end of the stream filled with trash (probably, uninitalized or miss-accessed) data. It is also known to work as expected on VC++ 2012. The problem was reproduced with exact observed output by other person with libc++. Attaching a simple test-case; compiled with line $ clang++ -std=c++11 -stdlib=libc++ tmp.cpp && ./a.out Expected output: 3 MSG 3 31 hub started at [00 6b 8b 45 69] 31 Observed output: 3 MSG 3 31 hub started at [00 6b 8b 45 69] 593 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 11:19:37 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 18:19:37 +0000 Subject: [LLVMbugs] [Bug 15661] New: Concatenation with empty macro argument does not prevent recursive expansion of macro Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15661 Bug ID: 15661 Summary: Concatenation with empty macro argument does not prevent recursive expansion of macro Product: clang Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangbugs at nondot.org Reporter: harald at gigawatt.nl CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Prompted by a bug report to GCC: #define foo(x, y) x ## y 1 foo(f,oo(,)) 2 foo(,foo(,)) 3 foo(a,foo(,)) 4 is preprocessed to $ clang -std=c99 -E bug.c # 1 "bug.c" # 1 "bug.c" 1 # 1 "" 1 # 1 "" 3 # 152 "" 3 # 1 "" 1 # 1 "" 2 # 1 "bug.c" 2 1 foo(,) 2 3 afoo(,) 4 The expansion between 1 and 2 is correct, and shows that as the inner foo only appears after concatenation, it is not expanded because it is seen in the context of another foo macro expansion. The expansion between 3 and 4 is correct, and shows that as the macro argument is used as an operand to ##, it is not expanded. The expansion between 2 and 3 is wrong, I believe: the inner foo should not be expanded during argument substitution because it is used as an operand of ##, and it should not be expanded after argument substitution because that happens in the context of the outer foo macro expansion. There are no other moments when it could be expanded. This happens with Fedora 18's clang 3.2: $ clang -v clang version 3.2 (tags/RELEASE_32/final) Target: x86_64-redhat-linux-gnu Thread model: posix Apologies if this is fixed already, but I cannot find a bugreport about this, closed or open. gcc and mcpp both give the expected output: $ gcc -std=c99 -E bug.c # 1 "bug.c" # 1 "" # 1 "bug.c" 1 foo(,) 2 foo(,) 3 afoo(,) 4 $ mcpp bug.c #line 1 "/home/harald/bug.c" 1 foo (,) 2 foo (,) 3 afoo (,) 4 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 11:33:15 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 18:33:15 +0000 Subject: [LLVMbugs] [Bug 15661] Concatenation with empty macro argument does not prevent recursive expansion of macro In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15661 Harald van Dijk changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Harald van Dijk --- ...and of course an older report does show up after an additional attempt at searching. That bug does not have a nested expansion of the same macro, but this bug does seem like a special case of that one. *** This bug has been marked as a duplicate of bug 12767 *** -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 13:16:53 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 20:16:53 +0000 Subject: [LLVMbugs] [Bug 15662] New: incorrect dwarf information about function arguments is produced in one case Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15662 Bug ID: 15662 Summary: incorrect dwarf information about function arguments is produced in one case Product: clang Version: 3.2 Hardware: PC OS: FreeBSD Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: avg at FreeBSD.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10282 --> http://llvm.org/bugs/attachment.cgi?id=10282&action=edit pre-processed source code Function signature in FreeBSD source code is: void _sx_xunlock(struct sx *sx, const char *file, int line); clang generated dwarf information (as reported by objdump -W) is: <1><2c70>: Abbrev Number: 55 (DW_TAG_subprogram) <2c71> DW_AT_name : (indirect string, offset: 0x1817): _sx_xunlock <2c75> DW_AT_decl_file : 1 <2c76> DW_AT_decl_line : 373 <2c78> DW_AT_prototyped : 1 <2c78> DW_AT_external : 1 <2c78> DW_AT_inline : 1 (inlined) <2><2c79>: Abbrev Number: 51 (DW_TAG_formal_parameter) <2c7a> DW_AT_name : (indirect string, offset: 0xd061): line <2c7e> DW_AT_decl_file : 1 <2c7f> DW_AT_decl_line : 373 <2c81> DW_AT_type : <2><2c85>: Abbrev Number: 51 (DW_TAG_formal_parameter) <2c86> DW_AT_name : (indirect string, offset: 0xd056): sx <2c8a> DW_AT_decl_file : 1 <2c8b> DW_AT_decl_line : 373 <2c8d> DW_AT_type : <782c> <2><2c91>: Abbrev Number: 51 (DW_TAG_formal_parameter) <2c92> DW_AT_name : (indirect string, offset: 0xc67): file <2c96> DW_AT_decl_file : 1 <2c97> DW_AT_decl_line : 373 <2c99> DW_AT_type : <32> That is, order of arguments is recorded as 'line', 'sx', 'file'. Please see the attached preprocessed file. My compilation options were: -pipe -fno-strict-aliasing -march=amdfam10 -std=c99 -g -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror clang is: FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 The problem doesn't seem to be a common one. Thus far, I have seen it only with this function (out of many inspected). Please also see this thread for a preliminary discussion of this issue: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-April/028829.html -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 13:21:47 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 20:21:47 +0000 Subject: [LLVMbugs] [Bug 15659] std::vector + emplaced std::istringstream .seekg(0, std::ios_base::beg) leads to missize and trash at end of the stream .str() In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15659 Howard Hinnant changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Howard Hinnant --- Fix Committed revision 178690. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 13:29:59 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 20:29:59 +0000 Subject: [LLVMbugs] [Bug 15657] s/__threaad_execute/__thread_execute/ In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15657 Howard Hinnant changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Howard Hinnant --- Committed revision 178691. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 14:27:06 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 21:27:06 +0000 Subject: [LLVMbugs] [Bug 15485] UNREACHABLE at IdentifierResolver.cpp:78 when friend-ing a using declaration In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15485 Stephen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Stephen Lin --- this is patched by r178698 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 14:40:20 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 03 Apr 2013 21:40:20 +0000 Subject: [LLVMbugs] [Bug 15663] New: GNU "a?:b" ternary operator with blocks causes bus error Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15663 Bug ID: 15663 Summary: GNU "a?:b" ternary operator with blocks causes bus error Product: clang Version: trunk Hardware: All OS: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: arthur.j.odwyer at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10283 --> http://llvm.org/bugs/attachment.cgi?id=10283&action=edit Output of "clang test.c -v" cat >test.c < From bugzilla-daemon at llvm.org Wed Apr 3 17:05:18 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 00:05:18 +0000 Subject: [LLVMbugs] [Bug 15664] New: -frewrite-includes doesn't handle Windows UTF-8 BOM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15664 Bug ID: 15664 Summary: -frewrite-includes doesn't handle Windows UTF-8 BOM Product: clang Version: unspecified Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangbugs at nondot.org Reporter: paul_robinson at playstation.sony.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified when Clang crashes, it will create a preprocessed file using -frewrite-includes. Unfortunately this does not strip byte-order marks from included headers. (http://en.wikipedia.org/wiki/Byte_order_mark) Attached bom.c is a regular text file, bom.h is encoded as UTF-8 with BOM. C:\Data\scratch>clang -c bom.c C:\Data\scratch>clang -E bom.c > bom-E.c C:\Data\scratch>clang -c bom-E.c C:\Data\scratch>clang -E -frewrite-includes bom.c > bom-E2.c C:\Data\scratch>clang -c bom-E2.c ./bom.h:1:1: error: non-ASCII characters are not allowed outside of literals and identifiers void foo(); ^~~~~~~~ 1 error generated. C:\Data\scratch>clang --version clang version 3.3 (178499) Target: i686-pc-win32 Thread model: posix -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 18:03:57 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 01:03:57 +0000 Subject: [LLVMbugs] [Bug 15543] All binaries are linked with -rdynamic In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15543 Rafael Ávila de Espíndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Rafael Ávila de Espíndola --- Fixed in 178725. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 18:35:20 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 01:35:20 +0000 Subject: [LLVMbugs] [Bug 15665] New: /Support/raw_ostream.cpp:326: void llvm::raw_ostream::copy_to_buffer(const char *, size_t): Assertion `Size <= size_t(OutBufEnd - OutBufCur) && "Buffer overrun!"' failed/ Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15665 Bug ID: 15665 Summary: /Support/raw_ostream.cpp:326: void llvm::raw_ostream::copy_to_buffer(const char *, size_t): Assertion `Size <= size_t(OutBufEnd - OutBufCur) && "Buffer overrun!"' failed/ Product: new-bugs Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedbugs at nondot.org Reporter: scherkus at chromium.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Hit this while compiling Chromium code. I rebased my git patch to trunk and I know there are syntax errors / it shouldn't compile as-is, however it also shouldn't crash clang :) ../../media/filters/video_frame_stream.cc:59:7: error: no viable conversion from 'Callback >, const class scoped_refptr &, const class scoped_refptr &)>::Run nableType, typename internal::FunctorTraits >, const class scoped_refpt r &, const class scoped_refptr &)>::RunType, void (typename internal::CallbackParamTraits >::StorageType, type name internal::CallbackParamTraits > > >::StorageType)>::UnboundRunType>' to 'const Callback, const scoped_refptr &)>' base::Bind(&VideoFrameStream::OnDecoderSelected, weak_this_, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../base/callback.h:447:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'base::Callback >, const scoped_refptr &, const scoped_refptr &)>::Runnabl eType, typename internal::FunctorTraits >, const scoped_refptr &, const scoped_refptr &)>::RunType, void (typename internal::CallbackParamTraits >::StorageType, typename internal::CallbackParamTraits > > >::StorageType)>::UnboundRunType>' to 'const base::Callback >, cons t scoped_refptr &)> &' for 1st argument class Callback : public internal::CallbackBase { ^ clang: /usr/local/google/chrome/src/third_party/llvm/lib/Support/raw_ostream.cpp:326: void llvm::raw_ostream::copy_to_buffer(const char *, size_t): Assertion `Size <= size_t(OutBufEnd - OutBufCur) && "Buffer overrun!"' failed. 0 clang 0x0000000001e3f545 llvm::sys::PrintStackTrace(_IO_FILE*) + 37 1 clang 0x0000000001e3fa33 2 libc.so.6 0x00007fa560e944a0 3 libc.so.6 0x00007fa560e94425 gsignal + 53 4 libc.so.6 0x00007fa560e97b8b abort + 379 5 libc.so.6 0x00007fa560e8d0ee 6 libc.so.6 0x00007fa560e8d192 7 clang 0x0000000001e54a99 llvm::raw_ostream::write(char const*, unsigned long) + 505 8 clang 0x00000000010ad3c3 clang::FormatASTNodeDiagnosticArgument(clang::DiagnosticsEngine::ArgumentKind, long, char const*, unsigned int, char const*, unsigned int, std::pair const*, unsigned int, llvm::SmallVectorImpl&, void*, llvm::ArrayRef) + 3299 9 clang 0x00000000011fff86 clang::Diagnostic::FormatDiagnostic(char const*, char const*, llvm::SmallVectorImpl&) const + 5366 10 clang 0x00000000006a4a30 clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&) + 96 11 clang 0x0000000001202c22 clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 546 12 clang 0x00000000011fe944 clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) + 84 13 clang 0x00000000009c10cd clang::Sema::EmitCurrentDiagnostic(unsigned int) + 1005 14 clang 0x0000000000bb0796 clang::OverloadCandidateSet::NoteCandidates(clang::Sema&, clang::OverloadCandidateDisplayKind, llvm::ArrayRef, llvm::StringRef, clang::SourceLocation) + 8342 15 clang 0x0000000000b750dd clang::InitializationSequence::Diagnose(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::Expr**, unsigned int) + 7661 16 clang 0x0000000000b702a3 clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef, clang::Qua lType*) + 339 17 clang 0x0000000000b76e39 clang::Sema::PerformCopyInitialization(clang::InitializedEntity const&, clang::SourceLocation, clang::ActionResult, bool, bool) + 249 18 clang 0x0000000000aef086 clang::Sema::GatherArgumentsForCall(clang::SourceLocation, clang::FunctionDecl*, clang::FunctionProtoType const*, unsigned int, clang::Expr**, unsigned int, llvm::Smal lVector&, clang::Sema::VariadicCallType, bool, bool) + 998 19 clang 0x0000000000aee763 clang::Sema::ConvertArgumentsForCall(clang::CallExpr*, clang::Expr*, clang::FunctionDecl*, clang::FunctionProtoType const*, clang::Expr**, unsigned int, clang::SourceL ocation, bool) + 659 20 clang 0x0000000000bc46cd clang::Sema::BuildCallToMemberFunction(clang::Scope*, clang::Expr*, clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation) + 4301 21 clang 0x0000000000ae20d6 clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef, clang::SourceLocation, clang::Expr*, bool) + 1302 22 clang 0x000000000096f266 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult) + 3174 23 clang 0x00000000009726d3 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 11987 24 clang 0x000000000096d2d4 clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 132 25 clang 0x000000000096d239 clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9 26 clang 0x000000000099a2bc clang::Parser::ParseExprStatement() + 44 27 clang 0x0000000000999e44 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange &) + 2404 28 clang 0x0000000000999441 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector&, bool, clang::SourceLocation*) + 145 29 clang 0x00000000009a0431 clang::Parser::ParseCompoundStatementBody(bool) + 1729 30 clang 0x00000000009a1c4b clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 187 31 clang 0x000000000093db41 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) + 2065 32 clang 0x000000000094c99d clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1373 33 clang 0x000000000093d1d8 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 664 34 clang 0x000000000093cc50 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 416 35 clang 0x000000000093c1e0 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 2864 36 clang 0x000000000095d02a clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 474 37 clang 0x000000000095cbca clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 6026 38 clang 0x0000000000948d1f clang::Parser::ParseDeclaration(llvm::SmallVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 415 39 clang 0x000000000093bd33 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 1667 40 clang 0x000000000093b630 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 304 41 clang 0x0000000000937d66 clang::ParseAST(clang::Sema&, bool, bool) + 454 42 clang 0x00000000007f4a12 clang::CodeGenAction::ExecuteAction() + 194 43 clang 0x0000000000688c61 clang::FrontendAction::Execute() + 113 44 clang 0x0000000000669cfd clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909 45 clang 0x0000000000651ab7 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2983 46 clang 0x00000000006487a5 cc1_main(char const**, char const**, char const*, void*) + 693 47 clang 0x000000000064edeb main + 7035 48 libc.so.6 0x00007fa560e7f76d __libc_start_main + 237 49 clang 0x0000000000648429 Stack dump: 0. Program arguments: /src/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name video_frame_strea m.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-l eaf-frame-pointer -g -coverage-file /src/chrome/src/out/Debug/obj/media/filters/media.video_frame_stream.o -resource-dir /src/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.3 -d ependency-file obj/media/filters/media.video_frame_stream.o.d -MT obj/media/filters/media.video_frame_stream.o -D _FILE_OFFSET_BITS=64 -D USE_LINUX_BREAKPAD -D DISABLE_NACL -D CHROMIUM_BUILD -D COMPO NENT_BUILD -D USE_DEFAULT_RENDER_THEME=1 -D USE_LIBJPEG_TURBO=1 -D USE_NSS=1 -D ENABLE_ONE_CLICK_SIGNIN -D GTK_DISABLE_SINGLE_INCLUDES=1 -D ENABLE_REMOTING=1 -D ENABLE_WEBRTC=1 -D USE_PROPRIETARY_COD ECS -D ENABLE_CONFIGURATION_POLICY -D ENABLE_INPUT_SPEECH -D ENABLE_NOTIFICATIONS -D ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D ENABLE_PLUGIN_INSTALLATION=1 -D ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D ENABLE_THEMES=1 -D ENABLE_BACKGROUND=1 -D ENABLE_AUTOMATION=1 -D ENABLE_GOOGLE_NOW=1 -D ENABLE_LANGUAGE_DETECTION=1 -D ENABLE_PRINTING=1 -D ENABLE_C APTIVE_PORTAL_DETECTION=1 -D ENABLE_MANAGED_USERS=1 -D MEDIA_IMPLEMENTATION -D USE_NEON -D USE_PULSEAUDIO -D DLOPEN_PULSEAUDIO -D GURL_DLL -D SK_BUILD_NO_IMAGE_ENCODE -D SK_DEFERRED_CANVAS_USES_GPIPE=1 -D GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -D GR_AGGRESSIVE_SHADER_OPTS=1 -D SK_ENABLE_INST_COUNT=0 -D SK_USE_POSIX_THREADS -D GR_DLL -D SKIA_DLL -D U_USING_ICU_NAMESPACE=0 -D __STDC_CONST ANT_MACROS -D __STDC_FORMAT_MACROS -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -D _DEBUG -D _REENTRANT -I ../../third_party/icu/public/common -I ../../third_party/icu/public/i18 n -I ../.. -I gen/pulse -I ../../net/third_party/nss/ssl -I ../../skia/config -I ../../third_party/skia/src/core -I ../../third_party/skia/include/config -I ../../third_party/skia/include/core -I ../ ../third_party/skia/include/effects -I ../../third_party/skia/include/pdf -I ../../third_party/skia/include/gpu -I ../../third_party/skia/include/gpu/gl -I ../../third_party/skia/include/pipe -I ../. ./third_party/skia/include/ports -I ../../third_party/skia/include/utils -I ../../skia/ext -I ../../third_party/opus/src/include -I gen/ffmpeg -I ../../third_party/ffmpeg/chromium/config/ChromeOS/lin ux/x64 -I ../../third_party/ffmpeg -I ../../third_party/libvpx/source/libvpx -I /usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/include/nss -I /usr/include/nspr -I /usr/in clude/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/include/gtk-2.0 -I /usr/lib/x86_64-linux-gnu/gtk-2.0/include -I /usr/include/atk-1.0 -I /usr/include/cairo -I /usr/include/gdk-pix buf-2.0 -I /usr/include/pango-1.0 -I /usr/include/gio-unix-2.0/ -I /usr/include/pixman-1 -I /usr/include/freetype2 -I /usr/include/libpng12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/../../. ./../include/c++/4.6 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/b ackward -internal-isystem /usr/local/include -internal-isystem /src/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.3/include -internal-externc-isystem /usr/include/x86_64-linux- gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O0 -Werror -Wall -Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene -Wno-unused-function -Wno-char-s ubscripts -Wno-unnamed-type-template-args -Wno-c++11-extensions -Wno-covered-switch-default -Wstring-conversion -Wsign-compare -fdeprecated-macro -fdebug-compilation-dir /src/chrome/src/out/Debug -fe rror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread -stack-protector 1 -stack-protector-buffer-size 4 -mstackrealign -fno-rtti -fno-threadsafe-statics -fobjc-run time=gcc -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -load /src/chrome/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstru cts.so -add-plugin find-bad-constructs -plugin-arg-find-bad-constructs skip-virtuals-in-implementations -o obj/media/filters/media.video_frame_stream.o -x c++ ../../media/filters/video_frame_stream.c c 1. ../../media/filters/video_frame_stream.cc:60:50: current parser token ')' 2. ../../media/filters/video_frame_stream.cc:18:1: parsing namespace 'media' 3. ../../media/filters/video_frame_stream.cc:36:58: parsing function body 'Initialize' 4. ../../media/filters/video_frame_stream.cc:36:58: in compound statement ('{}') clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 3 23:08:41 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 06:08:41 +0000 Subject: [LLVMbugs] [Bug 15666] New: clang does not know Red Hat Linux ARM triplets armv7hl-redhat-linux and armv5tel-redhat-linux Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15666 Bug ID: 15666 Summary: clang does not know Red Hat Linux ARM triplets armv7hl-redhat-linux and armv5tel-redhat-linux Product: clang Version: 3.2 Hardware: Other OS: Linux Status: NEW Severity: normal Priority: P Component: Driver Assignee: unassignedclangbugs at nondot.org Reporter: petersen at redhat.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Clang on Fedora ARM does not work well because clang does not recognize the Fedora ARM triplets and fallback to software floating point, causing build failures like this: clang: warning: unknown platform, assuming -mfloat-abi=soft In file included from In file included from fsck_messages.c:25: In file included from /usr/include/assert.hIn file included from :36cache.c: :In file included from /usr/include/features.h24:: 399In file included from : /usr/include/errno.h:28/usr/include/gnu/stubs.h: In file included from :/usr/include/features.h7::39911: : fatal error: /usr/include/gnu/stubs.h'gnu/stubs-soft.h' file not found: 7:11: fatal error: 'gnu/stubs-soft.h' file not found # include # include : See this Fedora ARM bug: https://bugzilla.redhat.com/show_bug.cgi?id=803433 Earlier I tried a simple naive patch like: --- llvm-3.2.src/tools/clang/lib/Driver/ToolChains.cpp~ 2012-12-17 00:59:27.000000000 +0900 +++ llvm-3.2.src/tools/clang/lib/Driver/ToolChains.cpp 2013-02-12 19:18:00.755164292 +0900 @@ -1054,10 +1054,12 @@ static const char *const ARMLibDirs[] = { "/lib" }; static const char *const ARMTriples[] = { "arm-linux-gnueabi", - "arm-linux-androideabi" + "arm-linux-androideabi", + "armv5tel-redhat-linux", }; static const char *const ARMHFTriples[] = { "arm-linux-gnueabihf", + "armv7hl-redhat-linux", }; but it was not sufficient - maybe fixes are also needed to on the llvm side, perhaps? (Similarly ppc64-redhat-linux is also not supported.) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 07:17:59 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 14:17:59 +0000 Subject: [LLVMbugs] [Bug 15667] New: crash in search_n Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15667 Bug ID: 15667 Summary: crash in search_n Product: libc++ Version: unspecified Hardware: Macintosh OS: All Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: hhinnant at apple.com Reporter: dlorenz at mac.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified See http://stackoverflow.com/questions/15809929/is-this-crash-in-libc-stdsearch-n-a-bug This code crashes in Xcode 4.6.1: int main(int argc, char *argv[]) { // Crashes std::vector bs{1, 0, 0}; std::search_n(bs.begin(), bs.end(), 3, 1); // Does not crash std::vector bs{1, 0}; std::search_n(bs.begin(), bs.end(), 2, 1); return 0; } The problem lies in __search_n, when a partial match is made, __first will be beyond __s and the check for equality will fail, so there is no early exit; eventually it will crash. if (__first == __s) // return __last if no element matches __value_ needs to be replaced by if (__first >= __s) // return __last if no element matches __value_ -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 08:42:40 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 15:42:40 +0000 Subject: [LLVMbugs] [Bug 15667] crash in search_n In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15667 Howard Hinnant changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Howard Hinnant --- Agreed, thanks for the fix. Committed revision 178764. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 09:38:49 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 16:38:49 +0000 Subject: [LLVMbugs] [Bug 15668] New: static, extern, static function is rejected incorrectly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15668 Bug ID: 15668 Summary: static, extern, static function is rejected incorrectly Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: bruce.r.stephens at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified This is presumably 3645, again (though with a function). static void a(void); extern void a(); static void a(void) {} is rejected by clang, but not by gcc (and other compilers). The code appears to be valid (the function is static). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 10:00:01 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 17:00:01 +0000 Subject: [LLVMbugs] [Bug 15669] New: Enable JIT/MCJIT unit tests for targets with JIT support. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15669 Bug ID: 15669 Summary: Enable JIT/MCJIT unit tests for targets with JIT support. Product: Test Suite Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: lit Assignee: unassignedbugs at nondot.org Reporter: jverma at codeaurora.org CC: daniel at zuster.org, llvmbugs at cs.uiuc.edu Classification: Unclassified This patch http://llvm.org/viewvc/llvm-project?view=revision&revision=178221 intended to disable MCJIT/JIT unittests only for the targets without JIT support. However, it accidentally disabled them for all the targets when using make. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 10:41:50 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 17:41:50 +0000 Subject: [LLVMbugs] [Bug 15668] static, extern, static function is rejected incorrectly In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15668 Rafael Ávila de Espíndola changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 10:49:09 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 17:49:09 +0000 Subject: [LLVMbugs] [Bug 15672] New: Since r177724: AddressSanitizer CHECK failed: llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:46 "((alloc_size > (1UL << (log-1)))) != (0)" (0x0, 0x0) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15672 Bug ID: 15672 Summary: Since r177724: AddressSanitizer CHECK failed: llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc: 46 "((alloc_size > (1UL << (log-1)))) != (0)" (0x0, 0x0) Product: compiler-rt Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: compiler-rt Assignee: unassignedbugs at nondot.org Reporter: emikulic at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10287 --> http://llvm.org/bugs/attachment.cgi?id=10287&action=edit Test case that triggers AddressSanitizer CHECK-fail Working: $ clang++ -v clang version 3.3 (trunk 177722) Target: x86_64-unknown-linux-gnu Thread model: posix $ clang++ -g -fsanitize=address-full test2.cpp && ./a.out; echo $? 0 Not working: $ clang++ -v clang version 3.3 (trunk 177724) Target: x86_64-unknown-linux-gnu Thread model: posix $ clang++ -g -fsanitize=address-full test2.cpp $ ASAN_OPTIONS=abort_on_error=1 gdb a.out GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /tmp/a.out...done. (gdb) run Starting program: /tmp/a.out [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". alloc_size 1 log 0 ==20275==AddressSanitizer CHECK failed: /home/emil/llvm/llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:46 "((alloc_size > (1UL << (log-1)))) != (0)" (0x0, 0x0) #0 0x41ffcf (/tmp/a.out+0x41ffcf) #1 0x4217d1 (/tmp/a.out+0x4217d1) #2 0x41377b (/tmp/a.out+0x41377b) #3 0x41339a (/tmp/a.out+0x41339a) #4 0x4132f2 (/tmp/a.out+0x4132f2) #5 0x429395 (/tmp/a.out+0x429395) #6 0x428f09 (/tmp/a.out+0x428f09) #7 0x428b4d (/tmp/a.out+0x428b4d) #8 0x7ffff6eb2eac (/lib/x86_64-linux-gnu/libc-2.13.so+0x1eeac) #9 0x4289dc (/tmp/a.out+0x4289dc) Program received signal SIGABRT, Aborted. 0x00007ffff6ec6475 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007ffff6ec6475 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff6ec96f0 in *__GI_abort () at abort.c:92 #2 0x00000000004249f6 in __sanitizer::Abort() () #3 0x000000000041ff98 in __asan::AsanDie() () #4 0x000000000042177f in __sanitizer::Die() () #5 0x000000000041ffff in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) () #6 0x00000000004217d2 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) () #7 0x000000000041377c in __asan::FakeStack::ComputeSizeClass(unsigned long) () #8 0x000000000041339b in __asan::FakeStack::DeallocateFrame(__asan::FakeFrame*) () #9 0x00000000004132f3 in __asan::FakeStack::AllocateStack(unsigned long, unsigned long) () #10 0x0000000000429396 in c::c ( this=) at test2.cpp:27 #11 0x0000000000428f0a in a::b (this=0x7ffff438e020) at test2.cpp:33 #12 0x0000000000428b4e in main () at test2.cpp:38 (gdb) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 10:51:15 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 17:51:15 +0000 Subject: [LLVMbugs] [Bug 15673] New: poor diagnostic for deduction failure in default template argument Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15673 Bug ID: 15673 Summary: poor diagnostic for deduction failure in default template argument Product: clang Version: trunk Hardware: All OS: All Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: zilla at kayari.org CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified The change made by http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120507/057436.html is excellent, but only seems to work for old fashioned uses of enable_if, in return types or function parameters. My preferred style is to de-clutter the function declaration by using enable_if in a template parameter with a default template argument e.g. #include template struct a_trait : std::false_type { }; template::value>::type> void foo() { } int main() { foo(); } Clang is not very helpful here: b.cc:12:5: error: no matching function for call to 'foo' foo(); ^~~~~~~~ b.cc:8:6: note: candidate template ignored: couldn't infer template argument 'Requires' void foo() { } ^ In an ideal world it would even recognise this is an equivalent use of enable_if #include template struct some_trait : std::false_type { }; template struct a_pony : std::enable_if::value> { }; template::type> void foo() { } int main() { foo(); } And also recognise my preferred form of using enable_if constraints via alias templates: #include template struct some_trait : std::false_type { }; template using unicorns = typename std::enable_if::value>::type; template> void foo() { } int main() { foo(); } (unicorns might be simpler than a_pony since there's no other type involved, just an alias for enable_if) -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 11:59:09 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 18:59:09 +0000 Subject: [LLVMbugs] [Bug 14330] Clang does not pass the GDB 7.5 test suite In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=14330 Bug 14330 depends on bug 14332, which changed state. Bug 14332 Summary: Implement -fsplit-stack http://llvm.org/bugs/show_bug.cgi?id=14332 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 11:59:08 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 18:59:08 +0000 Subject: [LLVMbugs] [Bug 14332] Implement -fsplit-stack In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=14332 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Eric Christopher --- It's wired up now and seems to work based on: (gdb) b main Breakpoint 1 at 0x400c20: file morestack.c, line 89. (gdb) run Starting program: /usr/local/google/home/echristo/tmp/a.out Breakpoint 1, main () at morestack.c:89 89 { (gdb) b marker_hit Breakpoint 2 at 0x400e10: file morestack.c, line 47. (gdb) break marker_miss Breakpoint 3 at 0x400e90: file morestack.c, line 41. (gdb) c Continuing. 499: 0x7ffff64218d0 < 0x7ffff78028d0 Breakpoint 2, marker_hit () at morestack.c:47 47 { (gdb) up 3000 #1004 0x0000000000400ce4 in main () at morestack.c:103 103 down (1000); the bot appears to be skipping the test so I can't verify it via the testsuite, but it seems to work for me. Going to mark it as resolved for now. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 13:48:16 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 20:48:16 +0000 Subject: [LLVMbugs] [Bug 8869] False positive with static analyzer and struct initialization through a temporary. In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=8869 Juli Mallett changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Juli Mallett --- This no longer seems to be broken with trunk; verified with r171214. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 14:08:04 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 21:08:04 +0000 Subject: [LLVMbugs] [Bug 15674] New: Broken switch when compiling with optimizations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15674 Bug ID: 15674 Summary: Broken switch when compiling with optimizations Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: release blocker Priority: P Component: LLVM Codegen Assignee: unassignedclangbugs at nondot.org Reporter: llvm.org at halfy.net CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10288 --> http://llvm.org/bugs/attachment.cgi?id=10288&action=edit Bug with switch statements. The attached test case is extracted from a much larger production code. When compiled and run, the expected output is: > ./t > 1 1 1 1 However, if built with any -O level above zero, it outputs: > ./t > 1 0 0 0 It seems that the ::memcpy() is confusing the optimizer. I'm not sure at what stage this happens, so logging against clang. I can work around this by rewriting the code like below, but this seems like a rather critical bug. ---- 8< ---- void quantize(char *data, float *src, int nb_src, int vsize) { unsigned char *i8 = (unsigned char *)data; switch(vsize) { case 4: i8[3] = (unsigned char)src[3]; case 3: i8[2] = (unsigned char)src[2]; i8[1] = (unsigned char)src[1]; case 1: i8[0] = (unsigned char)src[0]; } } ---- 8< ---- -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 14:16:50 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 21:16:50 +0000 Subject: [LLVMbugs] [Bug 15675] New: Empty macro arguments cause whitespace to go missing Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15675 Bug ID: 15675 Summary: Empty macro arguments cause whitespace to go missing Product: clang Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: harald at gigawatt.nl CC: llvmbugs at cs.uiuc.edu Classification: Unclassified #define A() #define B(x)x #define C(x) x #define STR(x) STR_(x) #define STR_(x) #x STR([ A()]) STR([ B()]) STR([ C()]) is preprocessed to "[ ]" "[]" "[]" It should be "[ ]" for all three lines, which is what gcc and mcpp do. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 14:26:39 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 21:26:39 +0000 Subject: [LLVMbugs] [Bug 15676] New: clang segfaults when cross compiling arch/arm/mm/context.c for ARM Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15676 Bug ID: 15676 Summary: clang segfaults when cross compiling arch/arm/mm/context.c for ARM Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangbugs at nondot.org Reporter: behanw at converseincode.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10289 --> http://llvm.org/bugs/attachment.cgi?id=10289&action=edit Code, backtrace, etc When cross compiling the Linux kernel for ARM, clang segfaults when compiling arch/arm/mm/context.c Code to reproduce in attachment. /home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/clang -gcc-toolchain /home/behanw/src/kernel/llvmlinux/arch/arm/toolchain/codesourcery/arm-2011.03/bin -target arm-linux-gnueabi -include ./include/kconfig.h -D __KERNEL__ -D __LINUX_ARM_ARCH__=7 -I ./include -O2 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -Wno-format-security -Wno-asm-operand-widths -Wno-unused-variable -Wno-tautological-compare -Wdeclaration-after-statement -Wno-pointer-sign -fno-dwarf2-cfi-asm -fno-dwarf-directory-asm -fdebug-compilation-dir -fwrapv -mstackrealign -fno-builtin -fobjc-runtime=gcc -fno-common -fdiagnostics-show-option -fcolor-diagnostics -c -o context.o context-parsed.c -static clang-3.3: warning: argument unused during compilation: '-fdebug-compilation-dir -fwrapv' [-Wunused-command-line-argument] 0 clang-3.3 0x0000000001150712 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 clang-3.3 0x0000000001150399 2 libpthread.so.0 0x00002aaaaaee3cb0 3 clang-3.3 0x0000000000b2bcea llvm::ARMInstPrinter::getRegisterName(unsigned int) + 10 4 clang-3.3 0x0000000000b2bd50 llvm::ARMInstPrinter::printRegName(llvm::raw_ostream&, unsigned int) const + 80 5 clang-3.3 0x0000000000b2f58c llvm::ARMInstPrinter::printRegisterList(llvm::MCInst const*, unsigned int, llvm::raw_ostream&) + 124 6 clang-3.3 0x0000000000b35e76 llvm::ARMInstPrinter::printInstruction(llvm::MCInst const*, llvm::raw_ostream&) + 7670 7 clang-3.3 0x0000000000b37501 llvm::ARMInstPrinter::printInst(llvm::MCInst const*, llvm::raw_ostream&, llvm::StringRef) + 369 8 clang-3.3 0x00000000010aa89f 9 clang-3.3 0x00000000006ed187 10 clang-3.3 0x0000000000998a15 llvm::AsmPrinter::EmitFunctionBody() + 293 11 clang-3.3 0x00000000006e6f2f 12 clang-3.3 0x0000000001073bdf llvm::FPPassManager::runOnFunction(llvm::Function&) + 607 13 clang-3.3 0x0000000001073c1b llvm::FPPassManager::runOnModule(llvm::Module&) + 43 14 clang-3.3 0x00000000010737af llvm::MPPassManager::runOnModule(llvm::Module&) + 575 15 clang-3.3 0x00000000010738fc llvm::PassManagerImpl::run(llvm::Module&) + 188 16 clang-3.3 0x00000000011729d4 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 3604 17 clang-3.3 0x00000000011700e2 18 clang-3.3 0x00000000013f9d2a clang::ParseAST(clang::Sema&, bool, bool) + 538 19 clang-3.3 0x0000000001349969 clang::FrontendAction::Execute() + 185 20 clang-3.3 0x000000000132bdf5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293 21 clang-3.3 0x000000000115309a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1514 22 clang-3.3 0x00000000006d4e78 cc1_main(char const**, char const**, char const*, void*) + 920 23 clang-3.3 0x00000000006c42c5 main + 8133 24 libc.so.6 0x00002aaaab92776d __libc_start_main + 237 25 clang-3.3 0x00000000006d2be5 Stack dump: 0. Program arguments: /home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/clang-3.3 -cc1 -triple armv4t--linux-gnueabi -S -disable-free -disable-llvm-verifier -main-file-name context-parsed.c -static-define -mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-abi aapcs-linux -target-cpu arm7tdmi -mfloat-abi soft -target-feature +soft-float-abi -coverage-file /home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-60H0nV.s -resource-dir /home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3 -include ./include/kconfig.h -D __KERNEL__ -D __LINUX_ARM_ARCH__=7 -I ./include -internal-isystem /usr/local/include -internal-isystem /home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -Wno-format-security -Wno-asm-operand-widths -Wno-unused-variable -Wno-tautological-compare -Wdeclaration-after-statement -Wno-pointer-sign -fno-dwarf2-cfi-asm -fno-dwarf-directory-asm -fdebug-compilation-dir /home/behanw/src/kernel/llvmlinux/test/unit/ARM64bit -ferror-limit 19 -fmessage-length 0 -backend-option -force-align-stack -mstackrealign -fno-builtin -fno-signed-char -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fno-common -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-60H0nV.s -x c context-parsed.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'context-parsed.c'. 4. Running pass 'ARM Assembly / Object Emitter' on function '@check_and_switch_context' clang-3.3: error: unable to execute command: Segmentation fault (core dumped) clang-3.3: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.3 Target: arm--linux-gnueabi Thread model: posix clang-3.3: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script. clang-3.3: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.3: note: diagnostic msg: /home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-GdtCr3.c clang-3.3: note: diagnostic msg: /home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-GdtCr3.sh clang-3.3: note: diagnostic msg: ******************** make: *** [testcase] Error 254 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 14:31:23 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 21:31:23 +0000 Subject: [LLVMbugs] [Bug 15677] New: Some invalid code causes a crash Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15677 Bug ID: 15677 Summary: Some invalid code causes a crash Product: clang Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: nacitar at ubercpp.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10290 --> http://llvm.org/bugs/attachment.cgi?id=10290&action=edit Core file, preprocessed cpp and run script. The error here is I redeclared RetEnableIf (meant to name the second one RetDisableIf)... just playing around with some template stuff. Anyway, here's the crash information. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 14:46:57 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 21:46:57 +0000 Subject: [LLVMbugs] [Bug 15678] New: -Wformat-nonliteral is inconsistent Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15678 Bug ID: 15678 Summary: -Wformat-nonliteral is inconsistent Product: clang Version: unspecified Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangbugs at nondot.org Reporter: bjhomer+llvm at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified The following code generates a warning under -Wformat-nonliteral: NSString *template = NSLocalizedString(@"My name is %@", nil); NSString *str = [NSString stringWithFormat:template, @"John"]; However, the following code does not: NSString *str = [NSString stringWithFormat:NSLocalizedString(@"My name is %@", nil), @"John"]; Note that in neither case is the parameter actually a string literal; the return value of NSLocalizedString() is determined at runtime in either case. I suspect that it should really warn in both cases, though that means I'll probably have to turn off this warning for my project. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 16:05:15 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 23:05:15 +0000 Subject: [LLVMbugs] [Bug 15679] New: static analyser reports null dereference when it clearly cannot happen Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15679 Bug ID: 15679 Summary: static analyser reports null dereference when it clearly cannot happen Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: gryzman at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10291 --> http://llvm.org/bugs/attachment.cgi?id=10291&action=edit formatting.c from postgresql project checker-272 on mac fe-lobj.c from postgresql got flagged (attaching the result file and source file). But it clearly is visible in the same source file, that the condition could never work out ! Clearly clang is unable to figure it out, and throws in loads of false positives. In short this looks like so: void some_funct(struct f *foo) { if (foo==null || foo->bar==0) { if (initialise_f(foo) < 0) return; } // this gets flagged as dereference of null pointer if foo is null do_something(foo->bar); } int initialise_f(struct f* foo) { if (!foo) { return -1' } // .... } so in the example above (and attached code, look at function lo_tell64 and lo_initialise) - this condition (dereference of null pointer) cannot happen. Yet clang insists it does. After dozens of reports like that - and wasted time on my pard - I decided to bug it here. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 16:55:31 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 23:55:31 +0000 Subject: [LLVMbugs] [Bug 11174] #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_ In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11174 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Michael Spencer --- Fixed in r178816 for x86. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 16:56:03 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 04 Apr 2013 23:56:03 +0000 Subject: [LLVMbugs] [Bug 12730] libstdc++ std::thread, when compiled with clang, "pure virtual method called" In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=12730 Michael Spencer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |bigcheesegs at gmail.com Resolution|--- |FIXED --- Comment #12 from Michael Spencer --- Fixed in r178816. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 18:05:36 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 01:05:36 +0000 Subject: [LLVMbugs] [Bug 15680] New: Clang does not find identifiers imported into namespaces by "using namespace" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15680 Bug ID: 15680 Summary: Clang does not find identifiers imported into namespaces by "using namespace" Product: clang Version: trunk Hardware: PC OS: FreeBSD Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: M8R-9yw8a5 at mailinator.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified 1. Source code (x.cpp): namespace A { void f() { } } namespace B { using namespace A; void g(); } void B::g() { f(); } 2. Command line: clang++ -c x.cpp 3. Output: error: use of undeclared identifier 'f'; did you mean 'f'? 4. Notes: This FEATURE(TM) was introduced somewhere in the revision range (177716..178453] (at r177716, Clang compiles the code). This is either a bug or a standard-conformant behavior change, but in the latter case, diagnostics messages should be more explanatory: the compiler should direct the user to 'A::f()'. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 18:53:33 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 01:53:33 +0000 Subject: [LLVMbugs] [Bug 15681] New: clangg++ error building Chromium on Linux Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15681 Bug ID: 15681 Summary: clangg++ error building Chromium on Linux Product: clang Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: johnb316 at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10292 --> http://llvm.org/bugs/attachment.cgi?id=10292&action=edit Preprocessed source code to build abort.o I tried to build Chromium 26.0.1410.43 from source on 64-bit Slackware Linux using clang as the C++ compiler. After the Chromium build script downloaded a prebuilt clang, the following errors were thrown as the build started: http://llvm.org/bugs/ CXX(target) out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/abort.o CXX(target) out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/elf_mem_image.o clang: warning: argument unused during compilation: '-fno-ipa-cp' clang: warning: argument unused during compilation: '-fno-ipa-cp' /usr/bin/clang: symbol lookup error: /tmp/buildpkgs/chromium/chromium-26.0.1410.43/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so: undefined symbol: _ZNK5clang13SourceManager14getPresumedLocENS_14SourceLocationEb clang: error: unable to execute command: Program could not be executed clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.2 (tags/RELEASE_32/final) Target: x86_64-slackware-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. /usr/bin/clang: symbol lookup error: /tmp/buildpkgs/chromium/chromium-26.0.1410.43/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so: undefined symbol: _ZNK5clang13SourceManager14getPresumedLocENS_14SourceLocationEb clang: error: unable to execute command: Program could not be executed clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.2 (tags/RELEASE_32/final) Target: x86_64-slackware-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ 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/abort-t94ibA.cpp clang: note: diagnostic msg: /tmp/abort-t94ibA.sh clang: note: diagnostic msg: ******************** make: *** [out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/abort.o] Error 255 make: *** Waiting for unfinished jobs.... 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/elf_mem_image-SILiKz.cpp clang: note: diagnostic msg: /tmp/elf_mem_image-SILiKz.sh clang: note: diagnostic msg: ******************** make: *** [out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/elf_mem_image.o] Error 255 As requested, the files listed in the error message are attached. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 4 19:32:20 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 02:32:20 +0000 Subject: [LLVMbugs] [Bug 15681] clangg++ error building Chromium on Linux In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15681 johnb316 at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #6 from johnb316 at gmail.com --- If that's the case, then the issue is probably with the prebuilt clang that the tools/clang/scripts/update.sh script in Chromium pulls from llvm.org. That clang was most likely built against Ubuntu, which I don't use (I use Slackware64-current, FWIMBW). I suppose I'll have to tinker with the Chromium gypi files so that the build uses the clang that Slackware supplies. Given these circumstances, I'm going to mark this bug as RESOLVED and INVALID. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 00:21:58 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 07:21:58 +0000 Subject: [LLVMbugs] [Bug 15682] New: Clang crash when compiling a simple C++ program Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15682 Bug ID: 15682 Summary: Clang crash when compiling a simple C++ program Product: libraries Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Common Code Generator Code Assignee: unassignedbugs at nondot.org Reporter: kan.liu.229 at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10296 --> http://llvm.org/bugs/attachment.cgi?id=10296&action=edit diagnostic msg ****************************The source code******************************* #include void merge(int* array, int* tmparray, int left, int center, int right) { int pos, lpos = left, rpos=center + 1; for (pos = left; pos < right; pos++) { if (lpos <= center && (rpos > right || array[lpos] < array[rpos])) { tmparray[pos] = array[lpos++]; } else { tmparray[pos] = array[rpos++]; } } for (int i = left; i <= right; i++) { array[i] = tmparray[i]; } } void m_sort(int* array, int* tmparray, int left, int right) { if (left < right) { int center = (right - left) / 2 + left; m_sort(array, tmparray, left, center); m_sort(array, tmparray, center + 1, right); merge(array, tmparray, left, center, right); } } void merge_sort(int* array, size_t size) { if (size <= 1) return ; int *tmparray = new int[size]; m_sort(array, tmparray, 0, size - 1); delete[] tmparray; } int main() { int tt[] = {1, 10, 4, 2, 6, 6, 10, 0}; merge_sort(tt, sizeof(tt)); for (int i = 0; i < sizeof(tt); i++) printf("%d ", tt[i]); return 0; } **************************** Result ******************************* lk at lk-laptop:~$ clang++ test.cpp 0 libLLVM-3.2.so.1 0x00007f08d59ae00f 1 libLLVM-3.2.so.1 0x00007f08d59ae5d1 2 libpthread.so.0 0x00007f08d49ffcb0 3 libLLVM-3.2.so.1 0x00007f08d58182f9 llvm::FastISel::getRegForValue(llvm::Value const*) + 41 4 libLLVM-3.2.so.1 0x00007f08d5a9a976 5 libLLVM-3.2.so.1 0x00007f08d581c1a8 llvm::FastISel::SelectInstruction(llvm::Instruction const*) + 216 6 libLLVM-3.2.so.1 0x00007f08d5938cac llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1196 7 libLLVM-3.2.so.1 0x00007f08d5939ee8 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680 8 libLLVM-3.2.so.1 0x00007f08d53d72f5 llvm::FPPassManager::runOnFunction(llvm::Function&) + 501 9 libLLVM-3.2.so.1 0x00007f08d53d7393 llvm::FPPassManager::runOnModule(llvm::Module&) + 51 10 libLLVM-3.2.so.1 0x00007f08d53d6fa9 llvm::MPPassManager::runOnModule(llvm::Module&) + 457 11 libLLVM-3.2.so.1 0x00007f08d53d70bf llvm::PassManagerImpl::run(llvm::Module&) + 111 12 clang 0x000000000071312a clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4618 13 clang 0x0000000000710ab0 14 clang 0x000000000085221e clang::ParseAST(clang::Sema&, bool, bool) + 382 15 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97 16 clang 0x00000000005c593d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285 17 clang 0x00000000005ae49a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338 18 clang 0x00000000005a7fb0 cc1_main(char const**, char const**, char const*, void*) + 1168 19 clang 0x00000000005a69c0 main + 672 20 libc.so.6 0x00007f08d413c76d __libc_start_main + 237 21 clang 0x00000000005a79d9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.2 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++ -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.2/include -internal-isystem /usr/include/clang/3.2/include/ -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/lk -ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-BtMMsu.o -x c++ test.cpp 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'test.cpp'. 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_Z10merge_sortPim' clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.2-1~exp5ubuntu1~precise1 (tags/RELEASE_32/final) (based on LLVM 3.2) Target: x86_64-pc-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ 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/test-L9gloJ.cpp clang: note: diagnostic msg: /tmp/test-L9gloJ.sh clang: note: diagnostic msg: ******************** lk at lk-laptop:~$ clang tes tesseract-android-tools/ test.cpp lk at lk-laptop:~$ clang test.cpp 0 libLLVM-3.2.so.1 0x00007f483550b00f 1 libLLVM-3.2.so.1 0x00007f483550b5d1 2 libpthread.so.0 0x00007f483455ccb0 3 libLLVM-3.2.so.1 0x00007f48353752f9 llvm::FastISel::getRegForValue(llvm::Value const*) + 41 4 libLLVM-3.2.so.1 0x00007f48355f7976 5 libLLVM-3.2.so.1 0x00007f48353791a8 llvm::FastISel::SelectInstruction(llvm::Instruction const*) + 216 6 libLLVM-3.2.so.1 0x00007f4835495cac llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1196 7 libLLVM-3.2.so.1 0x00007f4835496ee8 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680 8 libLLVM-3.2.so.1 0x00007f4834f342f5 llvm::FPPassManager::runOnFunction(llvm::Function&) + 501 9 libLLVM-3.2.so.1 0x00007f4834f34393 llvm::FPPassManager::runOnModule(llvm::Module&) + 51 10 libLLVM-3.2.so.1 0x00007f4834f33fa9 llvm::MPPassManager::runOnModule(llvm::Module&) + 457 11 libLLVM-3.2.so.1 0x00007f4834f340bf llvm::PassManagerImpl::run(llvm::Module&) + 111 12 clang 0x000000000071312a clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4618 13 clang 0x0000000000710ab0 14 clang 0x000000000085221e clang::ParseAST(clang::Sema&, bool, bool) + 382 15 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97 16 clang 0x00000000005c593d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285 17 clang 0x00000000005ae49a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338 18 clang 0x00000000005a7fb0 cc1_main(char const**, char const**, char const*, void*) + 1168 19 clang 0x00000000005a69c0 main + 672 20 libc.so.6 0x00007f4833c9976d __libc_start_main + 237 21 clang 0x00000000005a79d9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.2 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++ -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.2/include -internal-isystem /usr/include/clang/3.2/include/ -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/lk -ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-2X7dZs.o -x c++ test.cpp 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'test.cpp'. 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_Z10merge_sortPim' clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.2-1~exp5ubuntu1~precise1 (tags/RELEASE_32/final) (based on LLVM 3.2) Target: x86_64-pc-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ 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/test-IlGsSE.cpp clang: note: diagnostic msg: /tmp/test-IlGsSE.sh clang: note: diagnostic msg: ******************** lk at lk-laptop:~$ ls 20080408145541789.jpg miniSQL 98ATautocomplete node addyosmani-backbonejs-gallery-a3f51f7 node_modules android nodepad android-ndk-r8b NVIDIA_CUDA-5.0_Samples android-sdk-linux output4.jpeg ants output5.jpeg AntsGame output6.jpeg %APPDATA% patpat Bespin Transparent Blur.bespin python builddir Qt5.0.1 cc racket cloudcity setup cmpt379 square.cu cmpt470 Sublime Text 2 cpp tesseract-android-tools cs344 test.cpp cuda-5.0 thawte.pem cuda_5.0.35_linux_64_ubuntu11.10-1.run tmp eclipse vim_works fixit reader vuforia-sdk-android-2-0-31 glass.despin wps-office_8.1.0.3718~b1_x86 hs_err_pid7048.log 下载 images.jpg 公共的 jpeg-encoder 图片 Jpeg_essential 文档 Jpeg_essential_build 桌面 Jpeg_essential_release 模板 js 视频 koala-contactlist 音乐 mezzofanti_java lk at lk-laptop:~$ cd miniSQL/ lk at lk-laptop:~/miniSQL$ ls bplustree.cpp logger.cpp nfa.cpp README.md scanner.hpp test bplustree.hpp logger.hpp nfa.hpp scanner.cpp tags token.hpp lk at lk-laptop:~/miniSQL$ clang++ logger. clang: error: no such file or directory: 'logger.' clang: error: no input files lk at lk-laptop:~/miniSQL$ clang++ logger.cpp logger.cpp:9:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto it = loggers.find(name); ^ logger.cpp:33:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto i = loggers.begin(); i != loggers.end(); i++) ^ 2 warnings generated. /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 10 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 10 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 20 has invalid symbol index 19 /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' clang: error: linker command failed with exit code 1 (use -v to see invocation) lk at lk-laptop:~/miniSQL$ cd .. lk at lk-laptop:~$ clang++ test.cpp 0 libLLVM-3.2.so.1 0x00007fe971ca500f 1 libLLVM-3.2.so.1 0x00007fe971ca55d1 2 libpthread.so.0 0x00007fe970cf6cb0 3 libLLVM-3.2.so.1 0x00007fe971b0f2f9 llvm::FastISel::getRegForValue(llvm::Value const*) + 41 4 libLLVM-3.2.so.1 0x00007fe971d91976 5 libLLVM-3.2.so.1 0x00007fe971b131a8 llvm::FastISel::SelectInstruction(llvm::Instruction const*) + 216 6 libLLVM-3.2.so.1 0x00007fe971c2fcac llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1196 7 libLLVM-3.2.so.1 0x00007fe971c30ee8 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680 8 libLLVM-3.2.so.1 0x00007fe9716ce2f5 llvm::FPPassManager::runOnFunction(llvm::Function&) + 501 9 libLLVM-3.2.so.1 0x00007fe9716ce393 llvm::FPPassManager::runOnModule(llvm::Module&) + 51 10 libLLVM-3.2.so.1 0x00007fe9716cdfa9 llvm::MPPassManager::runOnModule(llvm::Module&) + 457 11 libLLVM-3.2.so.1 0x00007fe9716ce0bf llvm::PassManagerImpl::run(llvm::Module&) + 111 12 clang 0x000000000071312a clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4618 13 clang 0x0000000000710ab0 14 clang 0x000000000085221e clang::ParseAST(clang::Sema&, bool, bool) + 382 15 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97 16 clang 0x00000000005c593d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285 17 clang 0x00000000005ae49a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338 18 clang 0x00000000005a7fb0 cc1_main(char const**, char const**, char const*, void*) + 1168 19 clang 0x00000000005a69c0 main + 672 20 libc.so.6 0x00007fe97043376d __libc_start_main + 237 21 clang 0x00000000005a79d9 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.2 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++ -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.2/include -internal-isystem /usr/include/clang/3.2/include/ -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/lk -ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-jGN2uR.o -x c++ test.cpp 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'test.cpp'. 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_Z10merge_sortPim' clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.2-1~exp5ubuntu1~precise1 (tags/RELEASE_32/final) (based on LLVM 3.2) Target: x86_64-pc-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ 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/test-UD9iFl.cpp clang: note: diagnostic msg: /tmp/test-UD9iFl.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: From bugzilla-daemon at llvm.org Fri Apr 5 00:31:00 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 07:31:00 +0000 Subject: [LLVMbugs] [Bug 15516] simultaneous diagnostics from sanitizers get intermixed In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15516 Alexey Samsonov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Alexey Samsonov --- Should be fixed by r178853. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 01:14:49 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 08:14:49 +0000 Subject: [LLVMbugs] [Bug 15683] New: pointer arithmetic with empty struct compiles into division by zero Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15683 Bug ID: 15683 Summary: pointer arithmetic with empty struct compiles into division by zero Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: jari at kirma.fi CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Unoptimized compilation of following program emits code that includes division by zero (apparently clang considers struct to be zero-sized, and doesn't handle the special case?): #include int main(int argc, char **argv) { struct {} x[2]; volatile ptrdiff_t y = 1+x-x; return 0; } This issue occurs with -O0, but not with -O1. Generated assembler below. .file "struct_test.c" .text .globl main .align 16, 0x90 .type main, at function main: # @main .cfi_startproc # BB#0: pushq %rbp .Ltmp2: .cfi_def_cfa_offset 16 .Ltmp3: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp4: .cfi_def_cfa_register %rbp movl $0, %eax movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) xorl %esi, %esi xorl %edx, %edx movl %eax, -36(%rbp) # 4-byte Spill movq %rsi, %rax divq %rsi movq %rax, -32(%rbp) movl -36(%rbp), %eax # 4-byte Reload popq %rbp ret .Ltmp5: .size main, .Ltmp5-main .cfi_endproc .section ".note.GNU-stack","", at progbits -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 02:44:02 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 09:44:02 +0000 Subject: [LLVMbugs] [Bug 15684] New: recent clang "hangs" when scanning FreeBSD source code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15684 Bug ID: 15684 Summary: recent clang "hangs" when scanning FreeBSD source code Product: clang Version: trunk Hardware: PC OS: FreeBSD Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: uspoerlein at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Hey, I'm running scans using ToT clang against FreeBSD's head 3 times a week, results can be seen here: http://scan.freebsd.your.org/freebsd-head/ These run in a VM with 4 cores or so and usually take around 14-18h, as you can see from the logfile timestamps (the runs start at midnight). The last run that was ok used r177463 from March 20th, the next run using r177833 from March 24th did not finish, I had to kill a couple of clang processes that we using up over 100h of hours of CPU. The current run has 3 hanging clang instances and doesn't progress at all, top snapshot: % top -b 5 last pid: 24911; load averages: 3.06, 3.02, 3.00 up 587+16:11:43 09:46:16 84 processes: 5 running, 78 sleeping, 1 stopped Mem: 213M Active, 7978M Inact, 1152M Wired, 233M Cache, 1237M Buf, 2306M Free Swap: 4093M Total, 7848K Used, 4086M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 90516 uqs 1 129 10 64740K 55444K CPU3 3 127.4H 100.00% clang 1496 uqs 1 129 10 64740K 55508K CPU2 2 126.4H 100.00% clang 83115 uqs 1 128 10 48252K 39256K CPU1 0 127.7H 96.97% clang 853 root 1 44 0 23236K 1284K select 1 683:00 0.00% vmtoolsd-real 1114 root 1 44 0 29312K 9492K select 1 386:26 0.00% bsnmpd two of these are hung on scanning the nvi sources (these haven't changed in quite some time) % lsof|grep "clang.*freebsd-head" clang 1496 uqs cwd VDIR 0,82 2560 2756720 /usr/obj/data/src/freebsd-head/usr.bin/vi clang 1496 uqs txt VREG 0,82 24421 72763 /data/src/freebsd-head/contrib/nvi/vi/vs_refresh.c clang 1496 uqs txt VREG 0,82 23106 3358307 /data/src/freebsd-head/sys/sys/cdefs.h clang 1496 uqs txt VREG 0,82 16774 2735768 /usr/obj/data/src/freebsd-head/tmp/usr/include/stdio.h clang 83115 uqs cwd VDIR 0,82 512 2734730 /usr/obj/data/src/freebsd-head/sys/boot/userboot/ficl clang 83115 uqs txt VREG 0,82 23106 3358307 /data/src/freebsd-head/sys/sys/cdefs.h clang 83115 uqs txt VREG 0,82 21844 3452753 /data/src/freebsd-head/sys/sys/queue.h clang 83115 uqs txt VREG 0,82 42931 358839 /data/src/freebsd-head/sys/boot/ficl/ficl.h clang 83115 uqs 3r VREG 0,82 4717 2735729 /usr/obj/data/src/freebsd-head/tmp/usr/include/limits.h clang 90516 uqs cwd VDIR 0,82 2560 3226716 /usr/obj/data/src/freebsd-head/rescue/rescue/data/src/freebsd-head/usr.bin/vi clang 90516 uqs txt VREG 0,82 24421 72763 /data/src/freebsd-head/contrib/nvi/vi/vs_refresh.c clang 90516 uqs txt VREG 0,82 23106 3358307 /data/src/freebsd-head/sys/sys/cdefs.h clang 90516 uqs txt VREG 0,82 16774 2735768 /usr/obj/data/src/freebsd-head/tmp/usr/include/stdio.h What's a quick way to get a preprocessed file out of that? -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 02:44:08 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 09:44:08 +0000 Subject: [LLVMbugs] [Bug 15683] pointer arithmetic with empty struct compiles into division by zero In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15683 Jari Kirma changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jari Kirma --- After a second of thought and comment from a colleague, closing as invalid: structure with no named members is undefined behavior. Maybe this undefined behavior could emit a warning. Or is there such a warning already? -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 04:20:39 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 11:20:39 +0000 Subject: [LLVMbugs] [Bug 15685] New: OpenCL 'char' is not signed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15685 Bug ID: 15685 Summary: OpenCL 'char' is not signed Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: kalle.raiskila at nokia.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified When compiling OpenCL, the signedness of 'char' is platform dependant (as in C), whereas the OpenCL spec (§6.1.1) defines 'char' to be signed. check with e.g.: echo "int foo=(char)0xff;" | clang -x cl - -o - -emit-llvm -S which compiles on PowerPC to: @foo = global i32 255, align 4 but, on Intel: @foo = global i32 -1, align 4 -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 05:46:51 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 12:46:51 +0000 Subject: [LLVMbugs] [Bug 15686] New: Class constructor default argument fails to compile Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15686 Bug ID: 15686 Summary: Class constructor default argument fails to compile Product: new-bugs Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedbugs at nondot.org Reporter: MyAdEss at seznam.cz CC: llvmbugs at cs.uiuc.edu Classification: Unclassified If a class constructor has an argument that takes a default value that itself is a template of more than one parameter, it fails to compile. Example of a full program: http://ideone.com/mv9Qco /***************************************************/ #include using namespace std; /* a function template */ template A f(B) { return A(); } /* a class template */ template class X {}; template class Y { /** All these constructors fail to compile **/ Y(X = X()) //Y(A (*arg)(B) = f) //Y(std::function arg = f) { } }; int main() { return 0; } /***************************************************/ It compiles successfully on GCC and MSVC. Compiler error: clangtest.cpp:17:19: error: expected ')' Y(X = X()) ^ clangtest.cpp:17:4: note: to match this '(' Y(X = X()) ^ clangtest.cpp:17:17: error: expected '>' Y(X = X()) ^ 2 errors generated. --Floop -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 08:44:02 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 15:44:02 +0000 Subject: [LLVMbugs] [Bug 15687] New: clang fails to build kernel/bound.c (Linux Kernel build) Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15687 Bug ID: 15687 Summary: clang fails to build kernel/bound.c (Linux Kernel build) Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangbugs at nondot.org Reporter: dl9pf at gmx.de CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Aborted with clang error. Clang version: trunk at 178860 LLVM version: trunk at 178859 Linux Kernel: d08d528dc1848fb369a0b27cdb0749d8f6f38063 (3.9-rc6+) make CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DEBUG_INFO=1 -j1 CC=clang make[1]: Entering directory `/local/dl9pf/llvmlinux/targets/x86_64/src/linux' make[2]: Nothing to be done for `all'. make[2]: Nothing to be done for `relocs'. CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h CC kernel/bounds.s clang-3.3: /local/dl9pf/llvmlinux/toolchain/clang/src/llvm/lib/IR/Value.cpp:553: void llvm::ValueHandleBase::RemoveFromUseList(): Assertion `VP.getPointer() && VP.getPointer()->HasValueHandle && "Pointer doesn't have a use list!"' failed. 0 clang-3.3 0x0000000001995f4a llvm::sys::PrintStackTrace(_IO_FILE*) + 38 1 clang-3.3 0x00000000019961d1 2 clang-3.3 0x0000000001995c20 3 libpthread.so.0 0x00007fc8af8fc1f0 4 libc.so.6 0x00007fc8aed5b3d5 gsignal + 53 5 libc.so.6 0x00007fc8aed5c858 abort + 328 6 libc.so.6 0x00007fc8aed542e2 7 libc.so.6 0x00007fc8aed54392 8 clang-3.3 0x00000000018b73d9 llvm::ValueHandleBase::RemoveFromUseList() + 91 9 clang-3.3 0x0000000000f4e97d 10 clang-3.3 0x000000000152dc34 11 clang-3.3 0x00000000019e02b7 12 clang-3.3 0x00000000019d9dea clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl, clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&, clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 832 13 clang-3.3 0x00000000019daae7 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 539 14 clang-3.3 0x00000000019edef7 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 669 15 clang-3.3 0x00000000019eb041 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 383 16 clang-3.3 0x00000000019ea97e clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 696 17 clang-3.3 0x00000000019f0efa clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 320 18 clang-3.3 0x00000000019c94ad 19 clang-3.3 0x00000000019c853a 20 clang-3.3 0x0000000001d2ab27 clang::ParseAST(clang::Sema&, bool, bool) + 554 21 clang-3.3 0x0000000001c376a4 clang::ASTFrontendAction::ExecuteAction() + 298 22 clang-3.3 0x00000000019c7851 clang::CodeGenAction::ExecuteAction() + 1273 23 clang-3.3 0x0000000001c37226 clang::FrontendAction::Execute() + 200 24 clang-3.3 0x0000000001c11416 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 564 25 clang-3.3 0x000000000199ae26 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1060 26 clang-3.3 0x0000000000c0782d cc1_main(char const**, char const**, char const*, void*) + 641 27 clang-3.3 0x0000000000c019b3 main + 508 28 libc.so.6 0x00007fc8aed47a15 __libc_start_main + 245 29 clang-3.3 0x0000000000c00089 Stack dump: 0. Program arguments: /local/dl9pf/llvmlinux/toolchain/clang/install/bin/clang-3.3 -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name bounds.c -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -mdisable-tail-calls -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -mcode-model kernel -disable-red-zone -target-cpu x86-64 -target-feature -sse -target-feature -mmx -target-feature -sse2 -target-feature -3dnow -target-feature -avx -momit-leaf-frame-pointer -g -coverage-file /local/dl9pf/llvmlinux/targets/x86_64/src/linux/kernel/bounds.s -nostdsysteminc -nobuiltininc -resource-dir /local/dl9pf/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3 -dependency-file kernel/.bounds.s.d -MT kernel/bounds.s -sys-header-deps -isystem /local/dl9pf/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3/include -include /local/dl9pf/llvmlinux/targets/x86_64/src/linux/include/linux/kconfig.h -D __KERNEL__ -D CONFIG_AS_CFI=1 -D CONFIG_AS_CFI_SIGNAL_FRAME=1 -D CONFIG_AS_CFI_SECTIONS=1 -D CONFIG_AS_FXSAVEQ=1 -D CONFIG_AS_AVX=1 -D CONFIG_AS_AVX2=1 -D KBUILD_STR(s)=#s -D KBUILD_BASENAME=KBUILD_STR(bounds) -D KBUILD_MODNAME=KBUILD_STR(bounds) -I /local/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/include -I arch/x86/include/generated -I include -I /local/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/include/uapi -I arch/x86/include/generated/uapi -I /local/dl9pf/llvmlinux/targets/x86_64/src/linux/include/uapi -I include/generated/uapi -O2 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -Wno-format-security -Wno-sign-compare -Wno-unused-variable -Wno-tautological-compare -Wdeclaration-after-statement -Wno-pointer-sign -fdebug-compilation-dir /local/dl9pf/llvmlinux/targets/x86_64/src/linux -ferror-limit 19 -fmessage-length 117 -fwrapv -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fno-common -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o kernel/bounds.s -x c kernel/bounds.c 1. parser at end of file 2. kernel/bounds.c:14:6: LLVM IR generation of declaration 'foo' 3. kernel/bounds.c:14:6: Generating code for declaration 'foo' clang-3.3: error: unable to execute command: Aborted clang-3.3: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.3 Target: x86_64-unknown-linux-gnu Thread model: posix clang-3.3: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script. clang-3.3: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.3: note: diagnostic msg: /local/dl9pf/llvmlinux/targets/x86_64/tmp/bounds-gN5RQ7.c clang-3.3: note: diagnostic msg: /local/dl9pf/llvmlinux/targets/x86_64/tmp/bounds-gN5RQ7.sh clang-3.3: note: diagnostic msg: ******************** make[2]: *** [kernel/bounds.s] Error 254 kernel/bounds.c : http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/bounds.c Files attached. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 09:04:19 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 16:04:19 +0000 Subject: [LLVMbugs] [Bug 15686] Class constructor default argument fails to compile In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15686 Richard Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |richard-llvm at metafoo.co.uk Resolution|--- |DUPLICATE --- Comment #2 from Richard Smith --- *** This bug has been marked as a duplicate of bug 13657 *** -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 09:51:17 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 16:51:17 +0000 Subject: [LLVMbugs] [Bug 15683] pointer arithmetic with empty struct compiles into division by zero In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15683 Serge Pavlov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |sepavloff at gmail.com Component|-New Bugs |Frontend Resolution|INVALID |--- --- Comment #2 from Serge Pavlov --- Empty structures are supported as GCC extension, corresponding message is emitted if flag '-pedantic' is specified. So reopening this bug. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 09:59:58 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 16:59:58 +0000 Subject: [LLVMbugs] [Bug 15655] libLLVMTarget.so is not linked with -lLLVMCodeGet, unresolved llvm::MachineInstr::hasPropertyInBundle when linking llvm-dis In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15655 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution|--- |FIXED --- Comment #1 from Benjamin Kramer --- CMake shared library build was broken in 3.2. It works with LLVM trunk. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 14:39:08 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 21:39:08 +0000 Subject: [LLVMbugs] [Bug 11818] Debug info broken, gdb can't find value of variables (value optimized out) In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=11818 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #25 from Eric Christopher --- Since we've not gotten a new testcase and it seems to generally work I'm going to close it. Feel free to reopen if you can get a testcase (or just open a new bug). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 15:44:54 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Fri, 05 Apr 2013 22:44:54 +0000 Subject: [LLVMbugs] [Bug 15688] New: missing return value Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15688 Bug ID: 15688 Summary: missing return value Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangbugs at nondot.org Reporter: drivehappy at gmail.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10303 --> http://llvm.org/bugs/attachment.cgi?id=10303&action=edit Reproduce source code When a function contains a missing return value when a return type is specified the program will contain undefined results. For the attached code I receive an "Illegal instruction" when running the executable. The ISO C++ standard 6.6.3 does state that, "Flowing off the end of a function is equivalent to a return with no value; this results in undefined behavior in a value-returning function." If this is the reason clang is generating code then I would consider it resolved. However some more diagnostics might be more helpful, instead of the seemingly benign warning of: "missing_return.cpp:2:1: warning: control reaches end of non-void function" Appears in Clang 3.2 and trunk, under Debug and Release for both 32 and 64-bit generated code. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 17:03:57 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 00:03:57 +0000 Subject: [LLVMbugs] [Bug 13015] missing destructor call for temporary created by C++11 braced initializer list syntax as function argument In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=13015 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Douglas Gregor --- These simple cases are working on trunk -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Fri Apr 5 18:47:35 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 01:47:35 +0000 Subject: [LLVMbugs] [Bug 15684] recent clang "hangs" when scanning FreeBSD source code In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15684 Jordan Rose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Jordan Rose --- Silly mistake of mine. Should be fixed in r178944. Thanks for the report! -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 02:21:25 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 09:21:25 +0000 Subject: [LLVMbugs] [Bug 15690] New: Two clang crashes occur running scan-build ryzom/rzyomcore Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15690 Bug ID: 15690 Summary: Two clang crashes occur running scan-build ryzom/rzyomcore Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified When running scan-build on ryzom/ryzomcore, the attached two crashes occur. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 04:57:44 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 11:57:44 +0000 Subject: [LLVMbugs] [Bug 15690] Two clang crashes occur running scan-build ryzom/rzyomcore In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15690 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from John Smith --- Im unable to reproduce this with clang version 3.3 (trunk 178955). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 05:12:18 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 12:12:18 +0000 Subject: [LLVMbugs] [Bug 13995] Crash running scan-build (clang r164463) on blender (svn r50962) In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=13995 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from John Smith --- Unable to reproduce this with clang version 3.3 (trunk 178955). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 05:17:45 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 12:17:45 +0000 Subject: [LLVMbugs] [Bug 13614] clang crashes during scan-build of LibreOffice ~master In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=13614 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from John Smith --- Unable to reproduce this with clang version 3.3 (trunk 178955). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 12:33:46 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 19:33:46 +0000 Subject: [LLVMbugs] [Bug 15687] clang fails to build kernel/bound.c (Linux Kernel build) In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15687 Jan-Simon Möller changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #8 from Jan-Simon Möller --- Fresh checkout seems to work. Still, what could cause this behaviour ? Check also #15676 . Closing. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 12:33:48 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 19:33:48 +0000 Subject: [LLVMbugs] [Bug 4068] [META] Compiling the Linux kernel with clang In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=4068 Bug 4068 depends on bug 15687, which changed state. Bug 15687 Summary: clang fails to build kernel/bound.c (Linux Kernel build) http://llvm.org/bugs/show_bug.cgi?id=15687 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 14:25:17 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 21:25:17 +0000 Subject: [LLVMbugs] [Bug 15691] New: MakeCInformation.cmake:37 (get_filename_component) cmake "Visual Studio 10" "Visual Studio 2008" Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15691 Bug ID: 15691 Summary: MakeCInformation.cmake:37 (get_filename_component) cmake "Visual Studio 10" "Visual Studio 2008" Product: Build scripts Version: 3.2 Hardware: PC OS: Windows XP Status: NEW Keywords: build-problem Severity: normal Priority: P Component: cmake Assignee: unassignedbugs at nondot.org Reporter: Andre_Mikulec at Hotmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10306 --> http://llvm.org/bugs/attachment.cgi?id=10306&action=edit 2010 cmake error log My system llvm and clang Checked out revisions 178956 on windows XP ( 5.1 ) using When I run ... cmake -G "Visual Studio 10" .. OR cmake -G "Visual Studio 2008" .. I am getting the following "exact same error" -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Looking for argz.h CMake Error at F:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) ... CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG - Failed mkdir: cannot create directory `/tmp/cg-7684': No such file or directory config.guess: cannot create a temporary directory in /tmp CMake Error at cmake/modules/GetHostTriple.cmake:24 (message): Failed to execute M:/YDrive/All_Economics/eclipse_workspace/CheckoutLLVM/llvm/autoconf/config.guess Call Stack (most recent call first): cmake/config-ix.cmake:336 (get_host_triple) CMakeLists.txt:243 (include) Maybe the instructions If you are using Visual Studio 2008: cmake -G "Visual Studio 9 2008" ..\llvm Or if you are using Visual Studio 2010: cmake -G "Visual Studio 10" ..\llvm on page http://clang.llvm.org/get_started.html should be updated? Thank you, Andre Mikulec Andre_Mikulec at Hotmail.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 14:31:42 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sat, 06 Apr 2013 21:31:42 +0000 Subject: [LLVMbugs] [Bug 15692] New: cmake MinGW Makefiles DummyConfigureOutput.tmp and SVNVersion.inc missing Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15692 Bug ID: 15692 Summary: cmake MinGW Makefiles DummyConfigureOutput.tmp and SVNVersion.inc missing Product: Build scripts Version: 3.2 Hardware: PC OS: Windows XP Status: NEW Keywords: build-problem Severity: normal Priority: P Component: cmake Assignee: unassignedbugs at nondot.org Reporter: Andre_Mikulec at Hotmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10307 --> http://llvm.org/bugs/attachment.cgi?id=10307&action=edit MinGW Makefiles CMakeOutput.log llvm and clang Checked out revisions 178956 on windows XP ( 5.1 ) using GNU Make 3.82 Built for i386-pc-mingw3 Thread model: win32 gcc version 4.6.2 (GCC) FIRST When I try a cmake configure with my SVN executable in the path cmake -G "MinGW Makefiles" ..\llvm I get the following errors -- Constructing LLVMBuild project information CMake Error: Could not open file for write in copy operation M:/YDrive/All_Economics/eclipse_workspace/build/DummyConfigureOutput.tmp CMake Error: : System Error: Permission denied CMake Error at M:/YDrive/All_Economics/eclipse_workspace/build/LLVMBuild.cmake:290 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:318 (include) -- Found Subversion: F:/Program Files/Subversion/bin/svn.exe (found version "1.7.8") -- Expecting header to go in M:/YDrive/All_Economics/eclipse_workspace/build/tools/clang/lib/Basic/SVNVersion.inc -- Configuring incomplete, errors occurred! SECOND When I try a cmake configure with my SVN executable in the path cmake -G "MinGW Makefiles" ..\llvm I get the following errors. CMake Error: Could not open file for write in copy operation M:/YDrive/All_Economics/eclipse_workspace/build/DummyConfigureOutput.tmp CMake Error: : System Error: Permission denied CMake Error at M:/YDrive/All_Economics/eclipse_workspace/build/LLVMBuild.cmake:204 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:318 (include) Expecting header to go in M:/YDrive/All_Economics/eclipse_workspace/build/tools/clang/lib/Basic/SVNVersion.inc Configuring incomplete, errors occurred! But, I am logged in as "Administrator." I should not get "System Error: Permission denied" I did not find "DummyConfigureOutput.tmp" I did find "DummyConfigureOutput" with one line "from main import main" If I "generate" using cmake and "MinGW Makefiles" I am still getting the following error CMake Error: Could not open file for write in copy operation M:/YDrive/All_Economics/eclipse_workspace/build/DummyConfigureOutput.tmp CMake Error: : System Error: Permission denied CMake Error at M:/YDrive/All_Economics/eclipse_workspace/build/LLVMBuild.cmake:160 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:318 (include) Expecting header to go in M:/YDrive/All_Economics/eclipse_workspace/build/tools/clang/lib/Basic/SVNVersion.inc Configuring incomplete, errors occurred! THIRD When I try a cmake configure without my SVN executable in the path cmake -G "MinGW Makefiles" ..\llvm I am still getting this error message. Found Subversion: F:/Program Files/Subversion/bin/svn.exe (found version "1.7.8") Expecting header to go in M:/YDrive/All_Economics/eclipse_workspace/build/tools/clang/lib/Basic/SVNVersion.inc Configuring done When I try to "make" with "mingw32-make.exe" and without my SVN executable in my path After about two hours of compiling, I get the following message [ 73%] Building CXX object tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/TokenKinds.cpp.obj [ 73%] Building CXX object tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Version.cpp.obj M:\YDrive\All_Economics\eclipse_workspace\llvm\tools\clang\lib\Basic\Version.cpp:22:28: fatal error: SVNVersion.inc: No such file or directory compilation terminated. mingw32-make.exe[2]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Version.cpp.obj] Error 1 mingw32-make.exe[1]: *** [tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/all] Error 2 mingw32-make.exe: *** [all] Error 2 My lines 21 through 30 look like ... M:\YDrive\All_Economics\eclipse_workspace\llvm\tools\clang\lib\Basic\Version.cpp 21 #ifdef HAVE_SVN_VERSION_INC 22 # include "SVNVersion.inc" ( HERE ) 23 #endif 24 25 namespace clang { 26 27 std::string getClangRepositoryPath() { 28 #if defined(CLANG_REPOSITORY_STRING) 29 return CLANG_REPOSITORY_STRING; 30 #else No file called "SVNVersion.inc" exists that directory M:\YDrive\All_Economics\eclipse_workspace\llvm\tools\clang\lib\Basic Do I need an SVN executable in my path? Where is this SVNVersion.inc file? Thank you, Andre Mikulec Andre_Mikulec at Hotmail.com -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sat Apr 6 19:30:29 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 02:30:29 +0000 Subject: [LLVMbugs] [Bug 15693] New: crash-on-invalid: Assertion `Val && "isa<> used on a null pointer"' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15693 Bug ID: 15693 Summary: crash-on-invalid: Assertion `Val && "isa<> used on a null pointer"' Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: adamschn at umich.edu CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10308 --> http://llvm.org/bugs/attachment.cgi?id=10308&action=edit crashing test case I am getting an assert failure when compiling a sample with duplicated enum values, but only on -Weverything. I have attached a test case, run script and stack trace. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 04:00:03 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 11:00:03 +0000 Subject: [LLVMbugs] [Bug 15694] New: clang trunk r178955 crashes running scan-build on 'ryzomcore' Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15694 Bug ID: 15694 Summary: clang trunk r178955 crashes running scan-build on 'ryzomcore' Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Running clang version 3.3 (trunk 178955) scan-build on 'ryzomcore' generates a few crashes. You can reproduce by running 'clang --analyze ./foo.ii' on the preprocessed files in the attachment. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 04:24:24 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 11:24:24 +0000 Subject: [LLVMbugs] [Bug 15603] SROA fix for PR14972 introduced a new regression In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15603 Chandler Carruth changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Chandler Carruth --- Duping this to a newer bug as that bug had a slightly easier (for me) to track down test case due to it being a generic mis-execution test that worked even on x86. *** This bug has been marked as a duplicate of bug 15674 *** -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 07:07:13 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 14:07:13 +0000 Subject: [LLVMbugs] [Bug 15695] New: #pragma weak foo = bar and 'extern foo' are ambiguous Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15695 Bug ID: 15695 Summary: #pragma weak foo = bar and 'extern foo' are ambiguous Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangbugs at nondot.org Reporter: gribozavr at gmail.com CC: llvmbugs at cs.uiuc.edu, rafael.espindola at gmail.com Classification: Unclassified GCC 4.7.2 compiles the following program: extern int PFoo(int); #pragma weak PFoo = Foo int Foo(int a) { return a; } int main() { return PFoo(1); } while Clang emits an error: $ clang weak.c weak.c:5:8: error: call to 'PFoo' is ambiguous return PFoo(1); ^~~~ weak.c:1:12: note: candidate function extern int PFoo(int); ^ weak.c:2:14: note: candidate function #pragma weak PFoo = Foo ^ 1 error generated. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 07:11:53 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 14:11:53 +0000 Subject: [LLVMbugs] [Bug 15693] crash-on-invalid: Assertion `Val && "isa<> used on a null pointer"' In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15693 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |benny.kra at gmail.com Resolution|--- |FIXED --- Comment #3 from Benjamin Kramer --- Fixed in r178975, thanks for the test case. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 12:27:08 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 19:27:08 +0000 Subject: [LLVMbugs] [Bug 15696] New: Assertion failed: ((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 && "Pointer is not sufficiently aligned"), function setPointer Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15696 Bug ID: 15696 Summary: Assertion failed: ((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 && "Pointer is not sufficiently aligned"), function setPointer Product: clang Version: 3.2 Hardware: All OS: FreeBSD Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: rene at freebsd.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10315 --> http://llvm.org/bugs/attachment.cgi?id=10315&action=edit test case Hardware: Raspberry Pi B, 426MB memory allocated to FreeBSD FreeBSD raspberrypi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r249163M: Fri Apr 5 21:57:35 CEST 2013 rene at clang:/usr/home/rene/rpi/obj/arm.armv6/usr/home/rene/rpi/src/sys/RPI-B-RENE arm FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix % c++ -c test.cc -o /dev/null test.cc:1:56: error: use of undeclared identifier 'locale' template class collate : public locale::facet { ^ test.cc:1:64: error: expected class name template class collate : public locale::facet { ^ Assertion failed: ((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 && "Pointer is not sufficiently aligned"), function setPointer, file /usr/home/rene/rpi/src/lib/clang/libclangsema/../../../contrib/llvm/include/llvm/ADT/PointerIntPair.h, line 80. Stack dump: 0. Program arguments: /usr/bin/c++ -cc1 -triple armv6-unknown-freebsd10.0 -S -disable-free -main-file-name test.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-abi apcs-gnu -target-cpu arm1136jf-s -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -momit-leaf-frame-pointer -coverage-file /tmp/test-NQWono.s -resource-dir /usr/bin/../lib/clang/3.2 -fmodule-cache-path /var/tmp/clang-module-cache -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /var/tmp -ferror-limit 19 -fmessage-length 80 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fsjlj-exceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-NQWono.s -x c++ test.cc 1. test.cc:4:47: current parser token '_M_compare' c++: error: unable to execute command: Abort trap (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix c++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. c++: note: diagnostic msg: Error generating preprocessed source(s). % -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 13:28:10 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 20:28:10 +0000 Subject: [LLVMbugs] [Bug 15697] New: clang trunk 178973 freezes analyzing attached file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15697 Bug ID: 15697 Summary: clang trunk 178973 freezes analyzing attached file Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: lbalbalba at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10316 --> http://llvm.org/bugs/attachment.cgi?id=10316&action=edit pre-processed files that causes the hang clang trunk 178973 freezes when analyzing attached file. reproduce with clang --analyze ./clang_hang.ii -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 14:38:17 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 21:38:17 +0000 Subject: [LLVMbugs] [Bug 15698] New: Memory corruption bug in clang 3.2 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15698 Bug ID: 15698 Summary: Memory corruption bug in clang 3.2 Product: clang Version: 3.2 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: tiffany at stormbit.net CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10317 --> http://llvm.org/bugs/attachment.cgi?id=10317&action=edit File from crash report Steps to reproduce: 1: Download https://raw.github.com/troydhanson/uthash/master/src/uthash.h 2: Try to compile the following: #include "uthash.h" struct module { UT_hash_handle hh; } *modules = NULL; int main() { struct module *mod1, *mod2; HASH_REPLACE_STR(modules, hh, mod1, mod2); } Output: $ clang test.c test.c:10:35: error: passing 'UT_hash_handle' (aka 'struct UT_hash_handle') to parameter of incompatible type 'const char *' *** Error in `/usr/bin/clang': malloc(): memory corruption (fast): 0x0000000002831f40 *** It produces no crash report in this shorter version. Here is the crash report from when I discovered it: http://paste.strictfp.com/37342 log-aUMbnp.c is attached log-aUMbnp.sh: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name log.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.1 -momit-leaf-frame-pointer -g -D "DEBUG" -D "_POSIX_C_SOURCE=200809" -Wall -pedantic -std=c99 -ferror-limit 19 -fmessage-length 134 -pthread -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -x c log-aUMbnp.c $ clang -v clang version 3.2 (tags/RELEASE_32/final) Target: x86_64-unknown-linux-gnu Thread model: posix $ uname -a Linux arch 3.8.4-1-ARCH #1 SMP PREEMPT Wed Mar 20 22:10:25 CET 2013 x86_64 GNU/Linux -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Sun Apr 7 16:26:45 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Sun, 07 Apr 2013 23:26:45 +0000 Subject: [LLVMbugs] [Bug 15699] New: crash in or around call to std::chrono::steady_clock::now() when using precompiled header Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15699 Bug ID: 15699 Summary: crash in or around call to std::chrono::steady_clock::now() when using precompiled header Product: clang Version: 3.2 Hardware: HP OS: Linux Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: john at mcfarlane.name CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10318 --> http://llvm.org/bugs/attachment.cgi?id=10318&action=edit as directed by diagnostic message This crash occurs in a single source file out of a project of about 100 files. I happens when I employ a CMake script [https://code.google.com/p/crag/source/browse/PrecompiledHeader.cmake] intended to get precompiled headers to work with GCC, and adapted with minimal expertise to work with Clang 3.2. The system is a daily of Ubuntu 13.04 with clang 3.2 installed using apt-get. The line referenced in the console output (below), app.cpp:243 is as follows: auto now = std::chrono::steady_clock::now(); And this code compiles fine when not using a PCH. ================================================================================ [ 1%] Built target crag_gch [ 2%] Building CXX object CMakeFiles/crag.dir/src/core/app.cpp.o 0 libLLVM-3.2.so.1 0x00002aaaaba0ec0f 1 libLLVM-3.2.so.1 0x00002aaaaba0f079 2 libpthread.so.0 0x00002aaaac407bd0 3 clang 0x0000000000a651d0 clang::Sema::LookupSpecialMember(clang::CXXRecordDecl*, clang::Sema::CXXSpecialMember, bool, bool, bool, bool, bool) + 1440 4 clang 0x0000000000a656e0 clang::Sema::LookupCopyingConstructor(clang::CXXRecordDecl*, unsigned int) + 48 5 clang 0x000000000098f133 6 clang 0x00000000009a5a63 clang::Sema::DeclareImplicitCopyConstructor(clang::CXXRecordDecl*) + 643 7 clang 0x0000000000a63d0b clang::Sema::LookupConstructors(clang::CXXRecordDecl*) + 251 8 clang 0x0000000000a4cd9b 9 clang 0x0000000000a56773 clang::InitializationSequence::InitializationSequence(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::Expr**, unsigned int) + 2371 10 clang 0x000000000095ff54 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool, bool) + 1876 11 clang 0x000000000086777e clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&) + 750 12 clang 0x000000000086ff4a clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 442 13 clang 0x00000000008767cc clang::Parser::ParseSimpleDeclaration(llvm::SmallVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&, bool, clang::Parser::ForRangeInit*) + 780 14 clang 0x00000000008769bf clang::Parser::ParseDeclaration(llvm::SmallVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 207 15 clang 0x00000000008badb8 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 376 16 clang 0x00000000008bba5d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector&, bool, clang::SourceLocation*) + 141 17 clang 0x00000000008b85b7 clang::Parser::ParseCompoundStatementBody(bool) + 1879 18 clang 0x00000000008c0652 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 130 19 clang 0x0000000000862b45 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) + 997 20 clang 0x0000000000870150 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 960 21 clang 0x000000000085ebc4 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 228 22 clang 0x000000000085f381 23 clang 0x000000000085f3af clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 31 24 clang 0x00000000008608a6 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 102 25 clang 0x000000000086152f clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 191 26 clang 0x0000000000859aeb clang::ParseAST(clang::Sema&, bool, bool) + 267 27 clang 0x00000000005f50b1 clang::FrontendAction::Execute() + 97 28 clang 0x00000000005dc57a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 282 29 clang 0x00000000005c5e92 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1378 30 clang 0x00000000005c0e88 cc1_main(char const**, char const**, char const*, void*) + 1160 31 clang 0x00000000005bfd84 main + 7316 32 libc.so.6 0x00002aaaacb4fea5 __libc_start_main + 245 33 clang 0x00000000005c0889 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name app.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.1 -momit-leaf-frame-pointer -g -coverage-file /home/john/Documents/crag/CMakeFiles/crag.dir/src/core/app.cpp.o -resource-dir /usr/bin/../lib/clang/3.2 -include-pch pch.h.gch -D PROFILE -D __STRICT_ANSI__ -I /home/john/Documents/crag/src -I /home/john/Documents/crag/dependencies/include -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++ -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.2/include -internal-isystem /usr/include/clang/3.2/include/ -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -Wall -Wfatal-errors -Winvalid-pch -std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir /home/john/Documents/crag -ferror-limit 19 -fmessage-length 213 -pthread -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/crag.dir/src/core/app.cpp.o -x c++ /home/john/Documents/crag/src/core/app.cpp 1. /home/john/Documents/crag/src/core/app.cpp:243:45: current parser token ';' 2. /home/john/Documents/crag/src/core/app.cpp:242:1: parsing function body 'GetTime' 3. /home/john/Documents/crag/src/core/app.cpp:242:1: in compound statement ('{}') clang: fatal error: unable to execute command: Segmentation fault (core dumped) Ubuntu clang version 3.2-1~exp5ubuntu2 (tags/RELEASE_32/final) (based on LLVM 3.2) Target: x86_64-pc-linux-gnu Thread model: posix 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/app-zWOsZa.cpp clang: note: diagnostic msg: /tmp/app-zWOsZa.sh clang: note: diagnostic msg: ******************** make[2]: *** [CMakeFiles/crag.dir/src/core/app.cpp.o] Error 254 make[1]: *** [CMakeFiles/crag.dir/all] Error 2 make: *** [all] Error 2 ================================================================================ Contents of /tmp/app-zWOsZa.sh as requested by diagnostic message: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name app.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.1 -momit-leaf-frame-pointer -g -D "PROFILE" -D "__STRICT_ANSI__" -Wall -Wfatal-errors -Winvalid-pch -std=gnu++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 213 -pthread -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -x c++ app-zWOsZa.cpp -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 01:54:58 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 08:54:58 +0000 Subject: [LLVMbugs] [Bug 15700] New: Assertion failure '!isImplicitAccess()' involving decltype and default function template arguments Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15700 Bug ID: 15700 Summary: Assertion failure '!isImplicitAccess()' involving decltype and default function template arguments Product: clang Version: trunk Hardware: All OS: All Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: zeratul976 at hotmail.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified For the following code: struct S { template U foo_impl(T); template auto foo(T t) -> decltype(foo_impl(t)); }; int main() { S s; s.foo(0); } with clang r178972 I get the following assertion failure: clang: llvm/tools/clang/lib/AST/../../include/clang/AST/ExprCXX.h:3227: const clang::Expr *clang::UnresolvedMemberExpr::getBase() const: Assertion `!isImplicitAccess()' failed. 0 clang 0x0000000001e903d5 llvm::sys::PrintStackTrace(_IO_FILE*) + 37 1 clang 0x0000000001e908c3 2 libpthread.so.0 0x00007f398af678f0 3 libc.so.6 0x00007f398a05ab25 gsignal + 53 4 libc.so.6 0x00007f398a05e670 abort + 384 5 libc.so.6 0x00007f398a0539f1 __assert_fail + 241 6 clang 0x00000000011b77ed 7 clang 0x00000000011b7dc5 8 clang 0x00000000011b3211 9 clang 0x00000000011bb55d 10 clang 0x00000000011ae0bd 11 clang 0x000000000081ec8f clang::CodeGen::CodeGenModule::getMangledName(clang::GlobalDecl) + 751 12 clang 0x0000000000823a3b clang::CodeGen::CodeGenModule::GetAddrOfFunction(clang::GlobalDecl, llvm::Type*, bool) + 75 13 clang 0x00000000008c7105 clang::CodeGen::CodeGenFunction::EmitCXXMemberCallExpr(clang::CXXMemberCallExpr const*, clang::CodeGen::ReturnValueSlot) + 1413 14 clang 0x00000000008bb6e6 clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) + 262 15 clang 0x00000000008ea148 16 clang 0x00000000008e3d1d 17 clang 0x00000000008dcbfd clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 93 18 clang 0x00000000008aad29 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) + 249 19 clang 0x00000000008aac29 clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 57 20 clang 0x000000000093a177 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 343 21 clang 0x000000000093fd8b clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 91 22 clang 0x0000000000817eb9 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 713 23 clang 0x0000000000822f27 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 663 24 clang 0x0000000000820284 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 228 25 clang 0x000000000082235d clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 781 26 clang 0x00000000008255b5 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1173 27 clang 0x000000000080cb3f 28 clang 0x000000000080bfd7 29 clang 0x0000000000959253 clang::ParseAST(clang::Sema&, bool, bool) + 435 30 clang 0x000000000080b5a2 clang::CodeGenAction::ExecuteAction() + 194 31 clang 0x0000000000692c81 clang::FrontendAction::Execute() + 113 32 clang 0x000000000067293d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909 33 clang 0x00000000006594f7 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3031 34 clang 0x000000000064f615 cc1_main(char const**, char const**, char const*, void*) + 693 35 clang 0x00000000006564f1 main + 8609 36 libc.so.6 0x00007f398a045c4d __libc_start_main + 253 37 clang 0x000000000064f229 Stack dump: 0. Program arguments: /home/nr/Programs/clang/clang-3.3-20130406/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test2.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.20.1 -coverage-file /home/nr/Dev/Projects/C++/test/test.o -resource-dir /home/nr/Programs/clang/clang-3.3-20130406/bin/../lib/clang/3.3 -internal-isystem /home/nr/Programs/gcc/gcc-4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0 -internal-isystem /home/nr/Programs/gcc/gcc-4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/x86_64-unknown-linux-gnu -internal-isystem /home/nr/Programs/gcc/gcc-4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/backward -internal-isystem /home/nr/Programs/gcc/gcc-4.8.0/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/x86_64-unknown-linux-gnu/c++/4.8.0 -internal-isystem /usr/local/include -internal-isystem /home/nr/Programs/clang/clang-3.3-20130406/bin/../lib/clang/3.3/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/nr/Dev/Projects/C++/test -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions -fdiagnostics-show-option -backend-option -vectorize-loops -o test.o -x c++ src/test.cpp 1. parser at end of file 2. src/test2.cpp:10:5: LLVM IR generation of declaration 'main' 3. src/test2.cpp:10:5: Generating code for declaration 'main' 4. src/test2.cpp:7:10: Mangling declaration 'S::foo' clang: error: unable to execute command: Aborted clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.3 (trunk 178972) Target: x86_64-unknown-linux-gnu Thread model: posix -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 05:46:02 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 12:46:02 +0000 Subject: [LLVMbugs] [Bug 15701] New: Clang fails to compile a program which calls inline function present in a header file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15701 Bug ID: 15701 Summary: Clang fails to compile a program which calls inline function present in a header file Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: assie181 at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified ✗ cat check.h inline void fun(int x) { } ✗ cat check.c #include "check.h" int main(int argc, char **argv) { fun(10); return 0; } ✗ /usr/local/bin/clang check.c /tmp/check-UthCL9.o: In function `main': check.c:(.text+0x1e): undefined reference to `fun' clang: error: linker command failed with exit code 1 (use -v to see invocation) ✗ /usr/local/bin/clang -v clang version 3.3 (http://llvm.org/git/clang.git efac8da4cfa49799d5fdbc9d10b0e9f9a53ff6c8) (http://llvm.org/git/llvm.git 59889f7f496f549965764820a0150c4068c02f5b) Target: x86_64-unknown-linux-gnu Thread model: posix -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 06:15:58 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 13:15:58 +0000 Subject: [LLVMbugs] [Bug 15701] Clang fails to compile a program which calls inline function present in a header file In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15701 Hans Wennborg changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |hans at chromium.org Resolution|--- |INVALID --- Comment #3 from Hans Wennborg --- Right, this is http://clang.llvm.org/compatibility.html#inline -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 10:30:58 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 17:30:58 +0000 Subject: [LLVMbugs] [Bug 10942] clang/analyzer hangs when compiling php 5.3.8 In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=10942 John Smith changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from John Smith --- Tested again with clang version 3.3 (trunk 178973). It still takes a while, but there is no longer a 'freeze' or hang (if there ever was one to begin with). -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 10:53:59 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 17:53:59 +0000 Subject: [LLVMbugs] [Bug 15702] New: Address sanitizer: setrlimit() fails Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15702 Bug ID: 15702 Summary: Address sanitizer: setrlimit() fails Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: martin at infinio.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified The following code: #include #include #include #include int main() { struct rlimit r; r.rlim_cur = RLIM_INFINITY; r.rlim_max = RLIM_INFINITY; int ret = setrlimit(RLIMIT_CORE, &r); fprintf(stderr, "ret: %d, errno: %d, message: %s\n", ret, errno, strerror(errno)); return 0; } Fails with EPERM when run with the address sanitizer: $ clang -fsanitize=address ./setrlimit.c && ./a.out ret: -1, errno: 1, message: Operation not permitted But fine when run without: $ clang ./setrlimit.c && ./a.out ret: 0, errno: 0, message: Success Trunk from today: clang version 3.3 (179025) Target: x86_64-unknown-linux-gnu Thread model: posix On Ubuntu 12.10. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 11:52:57 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 18:52:57 +0000 Subject: [LLVMbugs] [Bug 13865] Interprocedural analysis false positive In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=13865 Jordan Rose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from Jordan Rose --- Destructor inlining has been turned on in r178805, which allows us to inline the constructor with confidence, which makes the warning go away. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 13:23:38 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 20:23:38 +0000 Subject: [LLVMbugs] [Bug 14877] Changing unrelated code changes emitted garbage value warning In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=14877 Jordan Rose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jordan_rose at apple.com Resolution|--- |FIXED --- Comment #5 from Jordan Rose --- Oops, Anna fixed this in r177905. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 13:31:21 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 20:31:21 +0000 Subject: [LLVMbugs] [Bug 14330] Clang does not pass the GDB 7.5 test suite In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=14330 Bug 14330 depends on bug 14511, which changed state. Bug 14511 Summary: -O0 default of omitting frame pointers degrades debuggability of code http://llvm.org/bugs/show_bug.cgi?id=14511 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 13:31:19 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 20:31:19 +0000 Subject: [LLVMbugs] [Bug 14511] -O0 default of omitting frame pointers degrades debuggability of code In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=14511 Eric Christopher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Eric Christopher --- I've fixed this. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 14:15:08 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 21:15:08 +0000 Subject: [LLVMbugs] [Bug 15634] Diagnostic for failed template deduction is insufficient In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15634 rtrieu at google.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from rtrieu at google.com --- r179056 fixes this. From my given example, the improved error message is note: candidate template ignored: could not match 'NS2::array' against 'NS1::array' -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 14:53:00 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 21:53:00 +0000 Subject: [LLVMbugs] [Bug 15703] New: clang-analyzer 273 crash with CPP file Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15703 Bug ID: 15703 Summary: clang-analyzer 273 crash with CPP file Product: clang Version: trunk Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: puurtuur at me.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10323 --> http://llvm.org/bugs/attachment.cgi?id=10323&action=edit Xcode Transcript (invocation and stacktrace) I'm running the new v273 analyser in Xcode and got 2 distinct problems, this is the first. A failed assert. See 3 attached files. Snip from first file for context: Assertion failed: (T->isIntegerType() || Loc::isLocType(T)), function getAPSIntType, file /Volumes/Data/Users/kremenek/checker-build/checker-273-src/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h, line 96.0 clang 0x000000010092fe48 llvm::sys::PrintStackTrace(__sFILE*) + 401 clang 0x00000001009303b4 SignalHandler(int) + 5642 libsystem_c.dylib 0x00007fff8f5cf94a _sigtramp + 263 libsystem_c.dylib 000000000000000000 _sigtramp + 18897323044 clang 0x0000000100930166 abort + 225 clang 0x0000000100930141 __assert_rtn + 816 clang 0x0000000101529e92 clang::ento::BasicValueFactory::getAPSIntType(clang::QualType) const + 3387 clang 0x00000001015425e2 clang::ento::SimpleConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) + 988 clang 0x000000010154235a clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr, clang::ento::NonLoc, bool) + 14669 clang 0x00000001015419a5 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr, clang::ento::NonLoc, bool) + 8510 clang 0x00000001015418ca clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr, clang::ento::DefinedSVal, bool) + 9011 clang 0x00000001014f7d24 clang::ento::ConstraintManager::assumeDual(llvm::IntrusiveRefCntPtr, clang::ento::DefinedSVal) + 8412 clang 0x00000001014f3592 clang::ento::ProgramState::assume(clang::ento::DefinedOrUnknownSVal) const + 11413 clang 0x00000001014ee5f1 clang::ento::ExprEngine::evalEagerlyAssumeBinOpBifurcation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet&, clang::Expr const*) + 40114 clang 0x00000001014ecb22 clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) + 822615 clang 0x00000001014e94b9 clang::ento::ExprEngine::ProcessStmt(clang::CFGStmt, clang::ento::ExplodedNode*) + 80916 clang 0x00000001014e0209 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) + 13717 clang 0x00000001014dfc75 clang::ento::CoreEngine::dispatchWorkItem(clang::ento::ExplodedNode*, clang::ProgramPoint, clang::ento::WorkListUnit const&) + 38918 ...etc -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 15:07:39 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 22:07:39 +0000 Subject: [LLVMbugs] =?utf-8?q?=5BExecutable_Attachment_Removed=5D_=5BBug_1?= =?utf-8?q?5704=5D_New=3A_clang-analyzer_273_in_xcode_error_diagnostic_cau?= =?utf-8?q?ses_failure?= Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15704 Bug ID: 15704 Summary: clang-analyzer 273 in xcode error diagnostic causes failure Product: clang Version: trunk Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: puurtuur at me.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified I'm testing the new clang-analyzer v273 under Xcode and got 2 problems. This is the second. Xcode just reports the standard "Analyzer skipped this file due to parse errors" with sub-error: type 'float' cannot be narrowed to 'Uint8' (aka 'unsigned char') in initializer list This file compiles normally under Xcode 4.6.1's clang. It seems to generate an actual error diagnostic, likely a compiler change, but the error causes the analysis to fail and it does not generate a diagnostic in Xcode. It does not crash however. So I'm not sure if this is a clang problem or an Xcode integration issue, but it doesn't work either way. Full Xcode transcript follows: Analyze Quadrae/GameView.cpp cd /Users/arthur/Documents/Creations/Quadrae setenv LANG en_US.US-ASCII /Users/arthur/Documents/Common/checker-273/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -std=gnu++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wnon-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.8 -g -fvisibility-inlines-hidden -Wno-sign-conversion -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-checker -Xclang security.FloatLoopCounter -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote /Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/QuadraeBundle-generated-files.hmap -I/Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/QuadraeBundle-own-target-headers.hmap -I/Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/QuadraeBundle-all-target-headers.hmap -iquote /Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/QuadraeBundle-project-headers.hmap -I/Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/DerivedSources/x86_64 -I/Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/DerivedSources -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-documentation -Wno-global-constructors -F/Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Products/Debug -F/Users/arthur/Documents/Creations/Quadrae/../../../Library/Frameworks -MMD -MT dependencies -MF /Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/StaticAnalyzer/Quadrae/QuadraeBundle/normal/x86_64/GameView.d --analyze /Users/arthur/Documents/Creations/Quadrae/Quadrae/GameView.cpp -o /Users/arthur/Library/Developer/Xcode/DerivedData/Quadrae-abgauznybbsogscxhysxkrhbnxdw/Build/Intermediates/Quadrae.build/Debug/QuadraeBundle.build/StaticAnalyzer/Quadrae/QuadraeBundle/normal/x86_64/GameView.plist /Users/arthur/Documents/Creations/Quadrae/Quadrae/GameView.cpp:90:78: error: type 'float' cannot be narrowed to 'Uint8' (aka 'unsigned char') in initializer list [-Wc++11-narrowing] auto border = sf::Shape::Rectangle(24, 24, 24 + 240, 24 + 480, { 142,131,0, 255 * (1.0f - progress) }); ^~~~~~~~~~~~~~~~~~~~~~~ /Users/arthur/Documents/Creations/Quadrae/Quadrae/GameView.cpp:90:78: note: override this message by inserting an explicit cast auto border = sf::Shape::Rectangle(24, 24, 24 + 240, 24 + 480, { 142,131,0, 255 * (1.0f - progress) }); ^~~~~~~~~~~~~~~~~~~~~~~ static_cast( ) -- You are receiving this mail because: You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Apr 8 15:10:19 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Mon, 08 Apr 2013 22:10:19 +0000 Subject: [LLVMbugs] [Executable Attachment Removed] [Bug 15705] New: Unneeded register-register move emitted for x86_64 Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15705 Bug ID: 15705 Summary: Unneeded register-register move emitted for x86_64 Product: new-bugs Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedbugs at nondot.org Reporter: david.majnemer at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Using r179060, the following ll code generates an extra mov instruction: target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.8.0" define i32 @fun(i32 %x, i32 %a, i32 %b, i32 %c) #0 { entry: %cmp = icmp eq i32 %x, %a br i1 %cmp, label %return, label %if.end if.end: ; preds = %entry %cmp1 = icmp eq i32 %x, %b %c.a = select i1 %cmp1, i32 %c, i32 %a br label %return return: ; preds = %if.end, %entry %retval.0 = phi i32 [ %b, %entry ], [ %c.a, %if.end ] ret i32 %retval.0 } attributes #0 = { nounwind readnone ssp "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } generates: ## BB#0: ## %entry cmpl %esi, %edi jne LBB0_2 ## BB#1: movl %edx, %esi movl %esi, %eax ret LBB0_2: ## %if.end cmpl %edx, %edi cmovel %ecx, %esi movl %esi, %eax ret Note the sequence in BB#1 edx -> esi, esi-> eax could just be edx -> eax -- You are receiving this mail because: You are on the CC list for the bug. From bugzilla-daemon at llvm.org Mon Apr 8 18:11:07 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 01:11:07 +0000 Subject: [LLVMbugs] [Bug 15706] New: Multiple escaped newline between the */ characters are not handled correctly Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15706 Bug ID: 15706 Summary: Multiple escaped newline between the */ characters are not handled correctly Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangbugs at nondot.org Reporter: ruiu at google.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Clang recognize only one escaped newline between the */ characters of a block comment. So it handles (A) correctly, but can't parse (B). (A) /**\ / (b) /**\ \ / -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 21:27:17 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 04:27:17 +0000 Subject: [LLVMbugs] [Bug 15707] New: StackColoring can wrongly merge stack slots due to incorrect liveness calculation Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15707 Bug ID: 15707 Summary: StackColoring can wrongly merge stack slots due to incorrect liveness calculation Product: tools Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: llc Assignee: unassignedbugs at nondot.org Reporter: mseaborn at chromium.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified StackColoring::calculateLiveIntervals() does not correctly handle the case where the following sequence occurs in a basic block: llvm.lifetime.start(%buf) ... llvm.lifetime.end(%buf) ... llvm.lifetime.start(%buf) calculateLiveIntervals() ignores the second lifetime.start() and regards %buf as not being live after the lifetime.end(). This will cause StackColoring to merge stack slots that shouldn't be merged. Example: declare void @llvm.lifetime.start(i64, i8*) declare void @llvm.lifetime.end(i64, i8*) declare void @ext(i8*) define void @foo() { %buf1 = alloca i8, i32 10000, align 16 %buf2 = alloca i8, i32 10000, align 16 call void @llvm.lifetime.start(i64 -1, i8* %buf1) call void @llvm.lifetime.end(i64 -1, i8* %buf1) call void @llvm.lifetime.start(i64 -1, i8* %buf1) call void @llvm.lifetime.start(i64 -1, i8* %buf2) call void @ext(i8* %buf1) call void @ext(i8* %buf2) ret void } Expected output: $ llc -mtriple=x86_64-none-gnu llvm_lifetime_bug.ll -O1 -o - ... subq $20008, %rsp # imm = 0x4E28 .Ltmp1: .cfi_def_cfa_offset 20016 leaq 10000(%rsp), %rdi callq ext leaq (%rsp), %rdi callq ext addq $20008, %rsp # imm = 0x4E28 ret Actual output: $ llc -mtriple=x86_64-none-gnu llvm_lifetime_bug.ll -O1 -o - ... subq $10008, %rsp # imm = 0x2718 .Ltmp1: .cfi_def_cfa_offset 10016 leaq (%rsp), %rdi callq ext leaq (%rsp), %rdi callq ext addq $10008, %rsp # imm = 0x2718 ret The following change fixes the bug: @@ -434,10 +446,8 @@ void StackColoring::calculateLiveIntervals(unsigned NumSlots) { if (Alive.any()) { for (int pos = Alive.find_first(); pos != -1; pos = Alive.find_next(pos)) { - if (!Starts[pos].isValid()) - Starts[pos] = Indexes->getMBBStartIdx(MBB); - if (!Finishes[pos].isValid()) - Finishes[pos] = Indexes->getMBBEndIdx(MBB); + Starts[pos] = Indexes->getMBBStartIdx(MBB); + Finishes[pos] = Indexes->getMBBEndIdx(MBB); } } -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 21:28:58 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 04:28:58 +0000 Subject: [LLVMbugs] [Bug 15708] New: malloc(0) is not undefined behaviour Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15708 Bug ID: 15708 Summary: malloc(0) is not undefined behaviour Product: clang Version: unspecified Hardware: PC OS: FreeBSD Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: cperciva at freebsd.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified When encountering a possible malloc(0), the clang analyzer reports a "Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)" bug. This text is wrong, since malloc(0) is not *undefined*; rather, it is *implementation-defined*. A global s/Undefined allocation/Implementation-defined allocation/ in the clang-analyzer source code should fix this. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 21:38:13 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 04:38:13 +0000 Subject: [LLVMbugs] [Bug 15709] New: incorrect recovery after -> versus . correction for template name Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15709 Bug ID: 15709 Summary: incorrect recovery after -> versus . correction for template name Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangbugs at nondot.org Reporter: richard-llvm at metafoo.co.uk CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified lib/Sema/SemaDeclCXX.cpp:7712:24: error: no member named 'castAs' in 'clang::QualType'; did you mean to use '->' instead of '.'? return Map[CtorType.castAs()].getEntry(SemaRef, Ctor); ^ -> lib/Sema/SemaDeclCXX.cpp:7712:32: error: 'FunctionProtoType' does not refer to a value return Map[CtorType.castAs()].getEntry(SemaRef, Ctor); ^ include/clang/Sema/Sema.h:105:9: note: declared here class FunctionProtoType; ^ lib/Sema/SemaDeclCXX.cpp:7712:51: error: expected expression return Map[CtorType.castAs()].getEntry(SemaRef, Ctor); ^ The first diagnostic is great. The second and third are terrible, and indicate that we have not recovered as the fixit on the first diagnostic indicates. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Mon Apr 8 22:33:25 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 05:33:25 +0000 Subject: [LLVMbugs] [Bug 15702] Address sanitizer: setrlimit() fails In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15702 Kostya Serebryany changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kcc at google.com Resolution|--- |WONTFIX --- Comment #1 from Kostya Serebryany --- This is expected. >From https://code.google.com/p/address-sanitizer/wiki/Flags (just added that): disable_core 0/1 Disable the core dumper. Since asan consumes many terabytes of virtual memory on 64-bit, dumping core is unwise. Default: 0 on 32-bit and 1 on 64-bit. % clang -fsanitize=address setrlimit.c ; ./a.out ret: -1, errno: 1, message: Operation not permitted % clang -fsanitize=address setrlimit.c ; ASAN_OPTIONS=disable_core=0 ./a.out ret: 0, errno: 0, message: Success % clang -m32 -fsanitize=address setrlimit.c ; ./a.out ret: 0, errno: 0, message: Success % Why would you want to have a 20Tb core file on your disk? -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 10:59:15 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 17:59:15 +0000 Subject: [LLVMbugs] [Bug 15525] SROA pessimizes ARM int8x16x2_t function argument handling In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15525 Benjamin Kramer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Benjamin Kramer --- Committed in r179106. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 11:16:47 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 18:16:47 +0000 Subject: [LLVMbugs] [Bug 15540] GVN Pass time 10% regression caused by revision 176408 In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15540 Nadav Rotem changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from Nadav Rotem --- Hi Nuno, as you suggested I reverted r176408 and r176407 in revision r179111. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 11:46:23 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 18:46:23 +0000 Subject: [LLVMbugs] [Bug 15710] New: ability to cross check all source files Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15710 Bug ID: 15710 Summary: ability to cross check all source files Product: clang Version: trunk Hardware: Macintosh OS: MacOS X Status: NEW Severity: enhancement Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: gryzman at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified So I'm doing a lot of security audits of code (hey apple!), it annoys me that I cannot just dump all files into scan-build and let it do cross file checking. I end up hacking code so it fits in one big file, and then analyse that. But with a standard ./configure/make way, or any other build process for that matter - it should be possible for scan-build to do the hard lifting for me. Each clang c.cc -o foo.o could also dump some pre-parsed form, and then when linker is called - grab them - by using the .o files as reference to where to find those, and do the long painful analysis that we all want. I'm guessing you guys are working on something like that, as it feels like a natural step forward after cross function checking. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 12:13:41 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 19:13:41 +0000 Subject: [LLVMbugs] [Bug 15711] New: clang allows access to private overloaded member function Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15711 Bug ID: 15711 Summary: clang allows access to private overloaded member function Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangbugs at nondot.org Reporter: rafael.espindola at gmail.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified gcc rejects but clang accepts this: class foo { void f(); void f(int); }; template class bar : public foo { void g() { f(); } }; template class bar; -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 12:26:21 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 19:26:21 +0000 Subject: [LLVMbugs] [Bug 15712] New: inefficient code generation for 128-bit->256-bit typecast intrinsics Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15712 Bug ID: 15712 Summary: inefficient code generation for 128-bit->256-bit typecast intrinsics Product: new-bugs Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedbugs at nondot.org Reporter: katya_romanova at playstation.sony.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified LLVM generates two additional instructions for 128->256 bit typecasts (e.g. _mm256_castsi128_si256, _mm256_castps128_ps256, _mm256_castpd128_pd256) to clear out the upper 128 bits of YMM register corresponding to source XMM register. vxorps xmm2,xmm2,xmm2 vinsertf128 ymm0,ymm2,xmm0,0x0 Most of the industry-standard C/C++ compilers (GCC, Intel’s compiler, Visual Studio compiler) don’t generate any extra moves for 128-bit->256-bit typecast intrinsics. None of these compilers zero-extend the upper 128 bits of the 256-bit YMM register. Intel’s documentation for the _mm256_castsi128_si256 intrinsic explicitly states that “the upper bits of the resulting vector are undefined” and that “this intrinsic does not introduce extra moves to the generated code”. http://software.intel.com/sites/products/documentation/studio/composer/en-us/2011Update/compiler_c/intref_cls/common/intref_avx_castsi128_si256.htm Clang implements these typecast intrinsics differently. I suspect that this was done on purpose to avoid a hardware penalty caused by partial register writes. I think that the overall cost of 2 additional instructions (vxor + vinsertf128) for *every* 128-bit->256-bit typecast intrinsic much higher than the hardware penalty caused by partial register writes for *rare* cases when the upper part of YMM register corresponding to a source XMM register is not cleared already. Katya. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 13:01:02 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 20:01:02 +0000 Subject: [LLVMbugs] [Bug 15713] New: Implement MSVC's language extension to form pointers to members of virtual bases Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15713 Bug ID: 15713 Summary: Implement MSVC's language extension to form pointers to members of virtual bases Product: clang Version: unspecified Hardware: PC OS: Windows NT Status: NEW Severity: enhancement Priority: P Component: C++ Assignee: unassignedclangbugs at nondot.org Reporter: reid.kleckner at gmail.com CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified Clang currently rejects this program, as the standard says it is ill-formed in [conv.mem], I think: struct A { int a; }; struct B : virtual A { int b; }; int B::*memptr_b = &B::a; // error ---- memptr_data_virtual.cpp:8:20: error: conversion from pointer to member of class 'A' to pointer to member of class 'B' via virtual base 'A' is not allowed int B::*memptr_b = &B::a; // error MSVC accepts this program, and has a whole bunch of machinery baked into the ABI to support it. Data member pointers can be formed with up to 3 (!) i32s. There's basically no way to implement this within the Itanium ABI since data memptrs there are always just one offset, so this would only be in -fms-compatibility (or -fms-extensions, I forget which is which). Mostly I'm just filing this to have a discussion of record with a decision to implement or not. We should document this as part of http://clang.llvm.org/compatibility.html, probably. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 16:48:16 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Tue, 09 Apr 2013 23:48:16 +0000 Subject: [LLVMbugs] [Bug 9170] Bad diagnostic when passing non-rvalue to rvalue-reference In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=9170 Jordan Rose changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 17:52:14 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Apr 2013 00:52:14 +0000 Subject: [LLVMbugs] [Bug 15558] False positive for -Wunused-variable with static member of internal-linkage type In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15558 Matt Beaumont-Gay changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Matt Beaumont-Gay --- Fixed in r179138. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Tue Apr 9 19:42:40 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Apr 2013 02:42:40 +0000 Subject: [LLVMbugs] [Bug 15714] New: clang hangs at -O3 on expression Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15714 Bug ID: 15714 Summary: clang hangs at -O3 on expression Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangbugs at nondot.org Reporter: dhazeghi at yahoo.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified The following snippet (generated by csmith) causes top-of-trunk clang to get stuck in an infinite loop at -O3 (-O2 and below are fine, as is clang 3.2). While it appears to invoke undefined behavior ((*d ^= 1 != (long)d)), hanging is probably not the right thing to do. $ clang-trunk -v clang version 3.3 (trunk 179090) Target: x86_64-pc-linux-gnu Thread model: posix $ clang-trunk -O2 -c test.c $ clang-trunk -O3 -c test.c int a, b, c; int fn2(); void fn1 () { int *d, *e = &b; d = &b; *e = 0; c = 0; for (; c < 42; ++c) { (*d ^= 1 != (long)d) && fn2 (); if (a) break; } } int fn2 () { int *f = &b; *f = 1; return b; } void fn3 () { fn1 (); } -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 10 00:04:18 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Apr 2013 07:04:18 +0000 Subject: [LLVMbugs] [Bug 15680] Clang does not find identifiers imported into namespaces by "using namespace" In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15680 /dev/humancontroller changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from /dev/humancontroller --- This bug has apparently been fixed without respect to this bug report. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 10 02:26:40 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Apr 2013 09:26:40 +0000 Subject: [LLVMbugs] [Bug 15715] New: False positive in interprocedural analysis of C++ destructors Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15715 Bug ID: 15715 Summary: False positive in interprocedural analysis of C++ destructors Product: clang Version: unspecified Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kremenek at apple.com Reporter: timac at timac.org CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10331 --> http://llvm.org/bugs/attachment.cgi?id=10331&action=edit Xcode project The Clang Static Analyzer (checker-273 and Xcode 4.6.1) reports a memory leak for the following source code. Steps to reproduce: 1- On 10.8.3 with Xcode 4.6.1, create a new CoreFoundation project with ARC disabled. 2- Download the attached Xcode project or replace the main.c with a main.cpp containing the following: #include // // MyCFString is a wrapper around CFStringRef. // class MyCFString { public: static CFStringRef EmptyCFString() { static CFStringRef kEmptyCFString = CFSTR("Empty"); return kEmptyCFString; } MyCFString() { mRef = CFStringRef(CFRetain(EmptyCFString())); } ~MyCFString() { if(mRef != NULL) CFRelease(mRef); } // Adopt doesn't retain the passed CFStringRef void Adopt(CFStringRef s) { if (s != mRef) { if(mRef != NULL) CFRelease(mRef); mRef = s; } } private: CFStringRef mRef; }; int main(int argc, const char * argv[]) { MyCFString theString; // Create a CFStringRef CFStringRef adoptedString = CFStringCreateCopy(kCFAllocatorDefault, CFSTR("This is not a leak")); // adoptedString is not retained by Adopt() but the MyCFString destructor will release adoptedString theString.Adopt(adoptedString); return 0; } 3- Run scan-build /usr/bin/xcodebuild -project InterproceduralBug.xcodeproj -target "InterproceduralBug" build Result: The Clang static analyzer reports a memory leak. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 10 03:08:55 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Apr 2013 10:08:55 +0000 Subject: [LLVMbugs] [Bug 15716] New: Clang doen't init map with initializer_list Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15716 Bug ID: 15716 Summary: Clang doen't init map with initializer_list Product: libc++ Version: unspecified Hardware: PC OS: MacOS X Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: hhinnant at apple.com Reporter: vladimir91.bondar at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified I had a bad code map[2]> m = { { "key", {{ "foo" }, { "meow" }} } }; and clang doesn't compile it, but with gcc everything ok. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 10 05:25:32 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Apr 2013 12:25:32 +0000 Subject: [LLVMbugs] [Bug 15717] New: FixIt: Wrong (suggested) location of the dereference operator in block enumerations Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15717 Bug ID: 15717 Summary: FixIt: Wrong (suggested) location of the dereference operator in block enumerations Product: clang Version: trunk Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangbugs at nondot.org Reporter: hagi.dd at web.de CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Created attachment 10333 --> http://llvm.org/bugs/attachment.cgi?id=10333&action=edit FixIt inserts the operator at the wrong location When using Cocoa's array block enumeration (enumerateObjectsUsingBlock: selector), the default/autocompleted code block looks like this: [array enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { // code }]; However, you can change the type of the input parameters to avoid casting within the block, e.g., if you iterate over NSString objects: [array enumerateObjectsUsingBlock:^(NSString *obj, NSUInteger idx, BOOL *stop) { // code }]; If you forget to add the dereference operator between 'NSString' and 'obj', Clang detects the issue, but suggests the wrong FixIt solution – the FixIt inserts the dereference operator in front of the type name. I've attached a screenshot of the situation in Xcode. Expected Result: Put the dereference operator in front of the parameter name. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 10 15:07:03 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Wed, 10 Apr 2013 22:07:03 +0000 Subject: [LLVMbugs] [Bug 13476] Crash of clang version 3.3 (trunk 178973) during analysis of attached file In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=13476 Anna Zaks changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ganna at apple.com Resolution|--- |FIXED --- Comment #4 from Anna Zaks --- Fixed in r179228. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 10 21:54:52 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Apr 2013 04:54:52 +0000 Subject: [LLVMbugs] [Bug 5443] missed x86 optimization for flags In-Reply-To: References: Message-ID: http://llvm.org/bugs/show_bug.cgi?id=5443 Michael Liao changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |michael.liao at intel.com Resolution|--- |FIXED --- Comment #3 from Michael Liao --- It's fixed in r179265. Now both functions are compiled into the same neat code. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Wed Apr 10 23:19:22 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Apr 2013 06:19:22 +0000 Subject: [LLVMbugs] [Bug 15720] New: LoopVectorizer fails to vectorize loops with increasing integer induction variable Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15720 Bug ID: 15720 Summary: LoopVectorizer fails to vectorize loops with increasing integer induction variable Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Loop Optimizer Assignee: unassignedbugs at nondot.org Reporter: reachanadi at gmail.com CC: llvmbugs at cs.uiuc.edu Classification: Unclassified Loops having integer induction variable running from lower value to higher value as shown in example below(0 to SIZE) are not vectorized. int foo(int *aa, int *bb, int SIZE) { int count = 190; for(int i=0;i 0;i--) { aa[i] = bb[i] + count; count++; } } -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugzilla-daemon at llvm.org Thu Apr 11 03:18:41 2013 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 11 Apr 2013 10:18:41 +0000 Subject: [LLVMbugs] [Bug 15721] New: Three crashes on gcc cpp0x testsuite Message-ID: http://llvm.org/bugs/show_bug.cgi?id=15721 Bug ID: 15721 Summary: Three crashes on gcc cpp0x testsuite Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangbugs at nondot.org Reporter: markus at trippelsdorf.de CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu Classification: Unclassified markus at x4 gcc % cat gcc/testsuite/g++.dg/cpp0x/alias-decl-2.C // { dg-options "-std=c++0x" } template struct S0 {}; template using AS0 = S0; template class TT> void f(TT); template class AS0; // { dg-error "alias templ\[^\n\r\]*specialization\[^\n\r\]*after\[^\n\r\]*class" } void foo() { AS0 a; f(a); } template struct Vector{}; template struct Alloc {}; template using Vec = Vector >; template void g(Vector >); template class TT> void h(TT); // { dg-error "provided for" } void bar() { Vec a; g(a); h(a); // { dg-error "no matching function|wrong number of template arguments" } } markus at x4 gcc % clang++ -c gcc/testsuite/g++.dg/cpp0x/alias-decl-2.C gcc/testsuite/g++.dg/cpp0x/alias-decl-2.C:4:31: warning: alias declarations are a C++11 extension [-Wc++11-extensions] template using AS0 = S0; ^ 0 clang-3.3 0x0000000000f06602 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 clang-3.3 0x0000000000f06261 2 libpthread.so.0 0x00007f39cfb750c0 3 clang-3.3 0x00000000019be8fb clang::TagDecl::getDefinition() const + 91 4 clang-3.3 0x00000000013c6c85 clang::Sema::isAcceptableTagRedeclaration(clang::TagDecl const*, clang::TagTypeKind, bool, clang::SourceLocation, clang::IdentifierInfo const&) + 1061 5 clang-3.3 0x000000000157acde clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation, clang::SourceLocation, unsigned int, clang::SourceLocation , clang::CXXScopeSpec const&, clang::OpaquePtr, clang::SourceLocation, clang::SourceLocation, llvm::MutableArrayRef, clang ::SourceLocation, clang::AttributeList*) + 110 6 clang-3.3 0x00000000011b98dd clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo con st&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::Parser::ParsedAttributesWithRange&) + 4813 7 clang-3.3 0x00000000011a54f5 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Par ser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 4325 8 clang-3.3 0x00000000011ffc8a clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject& , clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 874 9 clang-3.3 0x0000000001201396 clang::Parser::ParseExplicitInstantiation(unsigned int, clang::SourceLocation, clang::SourceLocation, clang::SourceLocation&, clang::Acc essSpecifier) + 150 10 clang-3.3 0x0000000001201566 clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 342 11 clang-3.3 0x00000000011a8c86 clang::Parser::ParseDeclaration(llvm::SmallVector&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttrib utesWithRange&) + 582 12 clang-3.3 0x00000000011958ea clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 314 13 clang-3.3 0x0000000001195fa2 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 194 14 clang-3.3 0x000000000118d44b clang::ParseAST(clang::Sema&, bool, bool) + 283 15 clang-3.3 0x00000000010de929 clang::FrontendAction::Execute() + 169 16 clang-3.3 0x00000000010c1ad5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293 17 clang-3.3 0x0000000000f08d07 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1607 18 clang-3.3 0x00000000006a31e8 cc1_main(char const**, char const**, char const*, void*) + 872 19 clang-3.3 0x000000000068ed40 main + 8032 20 libc.so.6 0x00007f39cf592875 __libc_start_main + 245 21 clang-3.3 0x00000000006a1135 Stack dump: 0. Program arguments: /usr/local/bin/clang-3.3 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name alias-dec l-2.C -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-point er -coverage-file /home/markus/gcc/alias-decl-2.o -resource-dir /usr/local/bin/../lib/clang/3.3 -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.0/include/g++-v4 -int ernal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.0/include/g++-v4/x86_64-pc-linux-gnu -internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.0/include/g++-v4/backward - internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.3/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdepr ecated-macro -fdebug-compilation-dir /home/markus/gcc -ferror-limit 19 -fmessage-length 174 -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fcxx-excep tions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o alias-decl-2.o -x c++ gcc/testsuite/g++.dg/cpp0x/alias-decl-2.C 1. gcc/testsuite/g++.dg/cpp0x/alias-decl-2.C:9:25: current parser token ';' clang-3.3: error: unable to execute command: Segmentation fault clang-3.3: error: clang frontend command failed due to signal (use -v to see invocation) markus at x4 gcc % cat gcc/testsuite/g++.dg/cpp0x/alias-decl-10.C // { dg-options "-std=c++0x" } template using Ptr = T*; Ptr; // { dg-error "does not declare anything" } Ptr; // { dg-error "not a template|does not declare anything" } template class Ptr;//{ dg-error "alias template specialization\[^\n\r\]*after\[^\n\r\]*class" } template using Arg = T; struct A {}; template class Arg;// { dg-error "alias templ\[^\n\r\]*specialization\[^\n\r\]*Arg\[^\n\r\]*after\[^\n\r\]*class" } template