<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - leak in clang::CodeGen::CGDebugInfo::getOrCreateRecordFwdDecl"
   href="http://llvm.org/bugs/show_bug.cgi?id=19598">19598</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>leak in clang::CodeGen::CGDebugInfo::getOrCreateRecordFwdDecl
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kcc@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dblaikie@gmail.com, echristo@gmail.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>19521
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Reproduce (under lsan or valgrind): 

clang -cc1  ~/llvm/tools/clang/test/CodeGen/2009-01-21-InvalidIterator.c
-emit-llvm -g -o /dev/null

Direct leak of 536 byte(s) in 1 object(s) allocated from:                       
    #0 0x7bcf88 in __interceptor_malloc
projects/compiler-rt/lib/asan/asan_malloc_linux.cc:75                    
    #1 0x1eab1d3 in llvm::MDNode::getTemporary lib/IR/Metadata.cpp:285          
    #2 0x6383b34 in llvm::DIBuilder::createForwardDecl lib/IR/DIBuilder.cpp:905 
    #3 0x36317f9 in clang::CodeGen::CGDebugInfo::getOrCreateRecordFwdDecl
tools/clang/lib/CodeGen/CGDebugInfo.cpp:626      
    #4 0x364a821 in clang::CodeGen::CGDebugInfo::CreateLimitedType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2305  
    #5 0x3640668 in clang::CodeGen::CGDebugInfo::getOrCreateLimitedType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2260                                    
    #6 0x363ee59 in clang::CodeGen::CGDebugInfo::CreateTypeDefinition
tools/clang/lib/CodeGen/CGDebugInfo.cpp:1537                                    
    #7 0x364953e in clang::CodeGen::CGDebugInfo::CreateTypeNode
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2198     
    #8 0x362b66f in clang::CodeGen::CGDebugInfo::getOrCreateType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2088    
    #9 0x3630b9c in clang::CodeGen::CGDebugInfo::CreateQualifiedType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:549 
    #10 0x3648d71 in clang::CodeGen::CGDebugInfo::CreateTypeNode
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2160    
    #11 0x362b66f in clang::CodeGen::CGDebugInfo::getOrCreateType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2088   
    #12 0x36312ab in clang::CodeGen::CGDebugInfo::CreatePointerLikeType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:645 
    #13 0x364926c in CreateType tools/clang/lib/CodeGen/CGDebugInfo.cpp:575     
    #14 0x364926c in clang::CodeGen::CGDebugInfo::CreateTypeNode
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2191    
    #15 0x362b66f in clang::CodeGen::CGDebugInfo::getOrCreateType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2088   
    #16 0x365215a in clang::CodeGen::CGDebugInfo::EmitDeclare
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2790       
    #17 0x38ad87f in clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca
tools/clang/lib/CodeGen/CGDecl.cpp:976   
    #18 0x38a68a6 in EmitAutoVarDecl tools/clang/lib/CodeGen/CGDecl.cpp:822     
    #19 0x38a68a6 in clang::CodeGen::CodeGenFunction::EmitVarDecl
tools/clang/lib/CodeGen/CGDecl.cpp:146         
    #20 0x36b098a in clang::CodeGen::CodeGenFunction::EmitDeclStmt
tools/clang/lib/CodeGen/CGStmt.cpp:895        
    #21 0x369d816 in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
tools/clang/lib/CodeGen/CGStmt.cpp:185      
    #22 0x369c97d in clang::CodeGen::CodeGenFunction::EmitStmt
tools/clang/lib/CodeGen/CGStmt.cpp:49             
    #23 0x36b27de in
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope
tools/clang/lib/CodeGen/CGStmt.cpp:220
    #24 0x36d3302 in clang::CodeGen::CodeGenFunction::EmitFunctionBody
tools/clang/lib/CodeGen/CodeGenFunction.cpp:696                                 
    #25 0x36d4425 in clang::CodeGen::CodeGenFunction::GenerateCode
tools/clang/lib/CodeGen/CodeGenFunction.cpp:827  
    #26 0x36fa1fd in
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition
tools/clang/lib/CodeGen/CodeGenModule.cpp:2229
    #27 0x36f29c1 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition
tools/clang/lib/CodeGen/CodeGenModule.cpp:1339
    #28 0x36f7680 in clang::CodeGen::CodeGenModule::EmitGlobal
tools/clang/lib/CodeGen/CodeGenModule.cpp:1197    
    #29 0x36feb4d in clang::CodeGen::CodeGenModule::EmitTopLevelDecl
tools/clang/lib/CodeGen/CodeGenModule.cpp:3009
    #30 0x361da05 in ::CodeGeneratorImpl::HandleTopLevelDecl
tools/clang/lib/CodeGen/ModuleBuilder.cpp:80
    #31 0x361b6d0 in clang::BackendConsumer::HandleTopLevelDecl
tools/clang/lib/CodeGen/CodeGenAction.cpp:99


This is the most frequent leak report when running check-clang under lsan
(<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Enable LeakSanitizer by default and make clang bootstrap LeakSanitizer-clean"
   href="show_bug.cgi?id=19521">bug 19521</a>)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>