<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 source/line debug information for one address in Chrome"
   href="https://bugs.llvm.org/show_bug.cgi?id=44300">44300</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bad source/line debug information for one address in Chrome
          </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>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>brucedawson@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In crash/df2293b94ced16ae on the main thread (not the thread that crashed) most
of the stack entries lead to the correct source code but the entry for >       
chrome_child.dll!ChromeMain does not. In the windbg "kc" output this is the
function between ContentMain and Launch:

09 chrome_child!content::ContentMain
0a chrome_child!ChromeMain
0b chrome!MainDllLoader::Launch

To see the behavior you have to have symbol server enabled (of course) and also
source indexing. This lets VS or windbg download the source code, which it does
for all other functions on the stack.

In fact the debuggers download chrome_main.cc but then refuse to use it. The VS
source search information says:

Locating source for 'c:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc'.
(No checksum.)
The file 'c:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc' does not
exist.
Looking in script documents for
'c:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc'...
The debugger found source in the following locations:
1: c:\src\chromium3\src\chrome\app\chrome_main.cc (No checksum.)
2:
C:\ProgramData\dbg\src\chrome\app\chrome_main.cc\6f041b45cf25952a5892abd8f0211373572fa48c\chrome_main.cc
(No checksum.)
The debugger will use the source at location 1.


This sounds familiar but I can't tell what is going on. I don't know how VS
found the source code that windbg downloaded, why it didn't find the source
code that it downloaded, and why it decided to use the repo copy of the source
code which is almost certainly wrong.</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>