Scala Programming Language
  1. Scala Programming Language
  2. SI-5439

Using sys.process results in file descriptor leaks

    Details

      Description

      Using scala.sys.process results in file descriptor leaks in the form of pipes used internally by the library. For most usages, there's no workaround possible.

      The issue is that the streams associated with each SimpleProcesss are not closed, and the user can't get at them. This issue has been fixed on SBT, but that fix results in another bug. I'm investigating the issue.

        Activity

        Hide
        Daniel Sobral added a comment -

        @Lukas I'm pretty sure it was backported to 2.9.2!

        Show
        Daniel Sobral added a comment - @Lukas I'm pretty sure it was backported to 2.9.2!
        Hide
        Daniel Sobral added a comment -

        Indeed, it was backported to 2.9.x on commit 28be69e2637b935de9320a6a60bde25e62acddab, and is part of Scala 2.9.2.

        Show
        Daniel Sobral added a comment - Indeed, it was backported to 2.9.x on commit 28be69e2637b935de9320a6a60bde25e62acddab, and is part of Scala 2.9.2.
        Hide
        Lukas Rytz added a comment -

        oh, thanks - then my git fu failed me.

        Show
        Lukas Rytz added a comment - oh, thanks - then my git fu failed me.
        Hide
        Alex Cruise added a comment -

        So, Lukas, is the process that's crashing every two weeks running 2.9.2?

        Show
        Alex Cruise added a comment - So, Lukas, is the process that's crashing every two weeks running 2.9.2?
        Hide
        Lukas Rytz added a comment -

        i did not test with 2.9.2. i quickly googled for "play" and "2.9.2" and found a few posts that changing the scala version to 2.9.2 is at least not trivial and might not work at all - but i don't have time right now to try. i did a hack around instead (when i didn't know yet that 2.9.2 would work): https://github.com/lrytz/scalabuilds/commit/1cc8051338c83ef47710f78ccf63ed478441899c

        Show
        Lukas Rytz added a comment - i did not test with 2.9.2. i quickly googled for "play" and "2.9.2" and found a few posts that changing the scala version to 2.9.2 is at least not trivial and might not work at all - but i don't have time right now to try. i did a hack around instead (when i didn't know yet that 2.9.2 would work): https://github.com/lrytz/scalabuilds/commit/1cc8051338c83ef47710f78ccf63ed478441899c

          People

          • Assignee:
            Daniel Sobral
            Reporter:
            Daniel Sobral
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development