Uploaded image for project: 'Swift'
  1. Swift
  2. SR-11287

memory leak in code completion

    XMLWordPrintable

    Details

      Description

      On Ubuntu 18.04, at commit c43eb9b1d8 (~noon Aug 9 HEAD), I'm getting memory leaks when doing code completion. To reproduce,

      1. swift/utils/build-script --release --enable-lsan --debug-swift-stdlib
      2. llvm/utils/lit/lit.py build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-linux-x86_64/IDE/complete_repl_identifier_prefix_1.swift -a

      LSAN should print out leaks. Here's what I get: https://gist.github.com/marcrasi/7d1f5e5766833c605b92873687eb49ca

      This does not occur at commit 482d0621a6 and does occur at commit 1a211e6, so I suspect that https://github.com/apple/swift/pull/26403 caused it.

        Attachments

          Activity

            People

            Assignee:
            rintaro Rintaro Ishizaki
            Reporter:
            marcrasi Marc Rasi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: