[llvm-bugs] [Bug 38663] New: lld from llvm 6 crashes with stack overflow @CopyRewriter::getNewSource when doing PGO + LTO of Firefox

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 21 15:49:13 PDT 2018


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

            Bug ID: 38663
           Summary: lld from llvm 6 crashes with stack overflow
                    @CopyRewriter::getNewSource when doing PGO + LTO of
                    Firefox
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mh+llvm at glandium.org
                CC: llvm-bugs at lists.llvm.org, sylvestre at debian.org

When building Firefox with clang 6, and enabling both PGO and LTO, the linker
crashes on linux 64-bits with what appears to be an infinite recursion through
CopyRewriter::getNewSource.

After some bisecting, I found the following:
- r322684 is the first revision that is broken on the release_60 branch.
- that revision is a cherry pick of r322313 from trunk, which is
  similarly broken.
- trunk was fixed by r322325, which, funnily enough, predates when
  r322313 was cherry-picked (and supposedly came with no functional change).

I guess the release_60 branch is dead at this point, but if it's not, this
should be addressed.

This doesn't affect clang 7 (obviously, since r322325 fixed it).

-- 
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/20180821/6241690d/attachment.html>


More information about the llvm-bugs mailing list