[llvm-bugs] [Bug 32763] New: ThinLTO crashes while destroying the context

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 23 17:14:34 PDT 2017


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

            Bug ID: 32763
           Summary: ThinLTO crashes while destroying the context
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org, tejohnson at google.com

$ ./run.sh
ld.lld: ../lib/IR/Metadata.cpp:210: void
llvm::ReplaceableMetadataImpl::dropRef(void*): Assertion `WasErased &&
"Expected to drop a reference"' failed.

$ cat run.sh
rm -f try.o 1.o 2.o
~/work/llvm/build-release/bin/opt -module-summary 1.ll -o 1.o
~/work/llvm/build-release/bin/opt -module-summary 2.ll -o 2.o
~/work/llvm/build-release/bin/ld.lld 1.o 2.o  2>&1 | grep "Expected to drop a
reference"

$ cat 1.ll
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define void @tinkywinky() {
  tail call void @patatino()
  ret void
}

declare void @patatino()

$ cat 2.ll
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define void  @patatino() {
  ret void
}

!llvm.asan.globals = !{!0, !2, !4, !6, !8, !10, !12, !14}

!0 = distinct !{null, !1, !"FIRST_BYTE_MARK", i1 false, i1 false}
!1 = !{!"externals/tinyxml/tinyxml2.cpp", i32 393, i32 25}
!2 = distinct !{null, !3, !"SEMICOLON", i1 false, i1 false}
!3 = !{!"externals/tinyxml/tinyxml2.cpp", i32 448, i32 27}
!4 = distinct !{null, !5, !"<string literal>", i1 false, i1 false}
!5 = !{!"externals/tinyxml/tinyxml2.cpp", i32 536, i32 41}
!6 = distinct !{null, !7, !"<string literal>", i1 false, i1 false}
!7 = !{!"externals/tinyxml/tinyxml2.cpp", i32 542, i32 41}
!8 = distinct !{null, !9, !"<string literal>", i1 false, i1 false}
!9 = !{!"externals/tinyxml/tinyxml2.cpp", i32 548, i32 41}
!10 = distinct !{null, !11, !"<string literal>", i1 false, i1 false}
!11 = !{!"externals/tinyxml/tinyxml2.cpp", i32 548, i32 51}
!12 = distinct !{null, !13, !"<string literal>", i1 false, i1 false}
!13 = !{!"externals/tinyxml/tinyxml2.cpp", i32 548, i32 60}
!14 = distinct !{null, !15, !"<string literal>", i1 false, i1 false}
!15 = !{!"externals/tinyxml/tinyxml2.cpp", i32 557, i32 41}

-- 
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/20170424/2107789c/attachment-0001.html>


More information about the llvm-bugs mailing list