<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 --- - Bad debug info when inlining"
   href="http://llvm.org/bugs/show_bug.cgi?id=22547">22547</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bad debug info when inlining
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang/asan gave us this stack for something going wrong:

==2120==ERROR: AddressSanitizer: heap-use-after-free on address 0x1701b5e4 at
pc 0x0b77244f bp 0xdeadbeef sp 0x0028ae3c
READ of size 4 at 0x1701b5e4 thread T0
    #0 0xb77244e in content::FrameAccessibility::GetParent
C:\b\build\slave\CrWinAsan\build\src\base\memory\scoped_ptr.h:251
    #1 0xb214bbc in content::RenderFrameHostImpl::AccessibilityGetParentFrame
C:\b\build\slave\CrWinAsan\build\src\content\browser\frame_host\render_frame_host_impl.cc:530
    #2 0xb1abc0e in
content::BrowserAccessibilityManager::GetDelegateFromRootManager
C:\b\build\slave\CrWinAsan\build\src\content\browser\accessibility\browser_accessibility_manager.cc:461



Note how the top line points at scoped_ptr.h.  A different, cl.exe-based tool
(I think) gives the right location:



### BEGIN MEMORY TOOL REPORT (error hash=#AFC58CEC99C34439#)
UNADDRESSABLE ACCESS of freed memory: reading 0x02d9b69c-0x02d9b6a0 4 byte(s)
# 0 content.dll!content::FrameAccessibility::GetParent                        
[content\browser\frame_host\frame_accessibility.cc:163]
# 1 content.dll!content::RenderFrameHostImpl::AccessibilityGetParentFrame     
[content\browser\frame_host\render_frame_host_impl.cc:512]
# 2
content.dll!content::BrowserAccessibilityManager::GetDelegateFromRootManager
[content\browser\accessibility\browser_accessibility_manager.cc:443]



(never mind the shifting line numbers, they're at slighly different revisions.)


The code in question is
<a href="https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/frame_host/frame_accessibility.cc&l=163">https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/frame_host/frame_accessibility.cc&l=163</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>