Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6479

GPF creating ServerSocket when no more file handles available

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M14
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      Linux
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice

      Description

      Creating a ServerSocket when there are no more file handles available causes a GPF on Linux. The expected behaviour is a SocketException.
      Problem can be recreated running the following:
      while (true) {
      try

      { new ServerSocket(0); }

      catch (SocketException e)

      { // expected break; }

      }

      1. 6479.patch
        2 kB
        Catherine Hope

        Activity

        Hide
        chope Catherine Hope added a comment -

        Fix checks for an exception after calling createSocket

        Show
        chope Catherine Hope added a comment - Fix checks for an exception after calling createSocket
        Hide
        hindessm Mark Hindess added a comment -

        Catherine, I've applied the fix in r926091. I know I always complain about fixes without regression tests but in this case I think running the regression test would be a little antisocial so I've omitted that from the commit.

        Please confirm that the fix has been applied as expected and close the JIRA if you hare happy with my not committing the regression test.

        Show
        hindessm Mark Hindess added a comment - Catherine, I've applied the fix in r926091. I know I always complain about fixes without regression tests but in this case I think running the regression test would be a little antisocial so I've omitted that from the commit. Please confirm that the fix has been applied as expected and close the JIRA if you hare happy with my not committing the regression test.
        Hide
        hudson Hudson added a comment -

        Integrated in Harmony-1.5-head-linux-x86_64 #719 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/719/)
        Apply fix only from "[#] GPF creating ServerSocket when no more
        file handles available".

        Show
        hudson Hudson added a comment - Integrated in Harmony-1.5-head-linux-x86_64 #719 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/719/ ) Apply fix only from " [#] GPF creating ServerSocket when no more file handles available".
        Hide
        chope Catherine Hope added a comment -

        Verified

        Show
        chope Catherine Hope added a comment - Verified

          People

          • Assignee:
            hindessm Mark Hindess
            Reporter:
            chope Catherine Hope
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development