<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 - Incorrect source paths generated for relative-path source files"
href="https://bugs.llvm.org/show_bug.cgi?id=39503">39503</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect source paths generated for relative-path source files
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>COFF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>brucedawson@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Starting probably in M71 the source path for invalid_parameter.cpp and probably
lots of other Microsoft source files changed. We can see this by retrieving
PDBs for M69 and M71 (chrome.dll.pdb and chrome.exe.pdb, but that difference is
irrelevant):
<span class="quote">> cd etwpackage\bin
> retrievesymbols 8AFE809E8DA6300A4CD763DF535471FA 1 chrome.dll.pdb
> retrievesymbols 5FFDE2DF748D11544C4C44205044422E 1 chrome.exe.pdb</span >
Then, use srctool to find the path to invalid_parameter.cpp:
<span class="quote">> cd c:\Program Files (x86)\Windows Kits\10\Debuggers\x64\srcsrv</span >
<span class="quote">> srctool.exe -r c:\symbols\chrome.dll.pdb\8AFE809E8DA6300A4CD763DF535471FA1\chrome.dll.pdb | find "invalid_parameter.cpp"</span >
minkernel\crts\ucrt\src\appcrt\misc\invalid_parameter.cpp
<span class="quote">> srctool.exe -r c:\symbols\chrome.exe.pdb\5FFDE2DF748D11544C4C44205044422E1\chrome.exe.pdb | find "invalid_parameter.cpp"</span >
C:\b\c\b\win64_clang\src\out\Release_x64\minkernel\crts\ucrt\src\appcrt\misc\invalid_parameter.cpp
This source file is supposed to have a relative path but now lld is giving it
an absolute path. This led to bucketing of unrelated crashes as
crbug.com/897677 (Google only) and eventually this was filed as a crash
processing bug as b/118710573. A workaround is being created but the root cause
should be addressed.
This is presumably an obvious (in hindsight) consequence of the changes to make
reproducible builds.</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>