[llvm-bugs] [Bug 39503] New: Incorrect source paths generated for relative-path source files

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 30 18:44:23 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39503

            Bug ID: 39503
           Summary: Incorrect source paths generated for relative-path
                    source files
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: brucedawson at chromium.org
                CC: llvm-bugs at lists.llvm.org

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):

> cd etwpackage\bin
> retrievesymbols 8AFE809E8DA6300A4CD763DF535471FA 1 chrome.dll.pdb
> retrievesymbols 5FFDE2DF748D11544C4C44205044422E 1 chrome.exe.pdb

Then, use srctool to find the path to invalid_parameter.cpp:

> cd c:\Program Files (x86)\Windows Kits\10\Debuggers\x64\srcsrv

> srctool.exe -r c:\symbols\chrome.dll.pdb\8AFE809E8DA6300A4CD763DF535471FA1\chrome.dll.pdb | find "invalid_parameter.cpp"
minkernel\crts\ucrt\src\appcrt\misc\invalid_parameter.cpp

> srctool.exe -r c:\symbols\chrome.exe.pdb\5FFDE2DF748D11544C4C44205044422E1\chrome.exe.pdb | find "invalid_parameter.cpp"
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181031/1335fcd5/attachment.html>


More information about the llvm-bugs mailing list