Harmony
  1. Harmony
  2. HARMONY-6479

GPF creating ServerSocket when no more file handles available

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        26d 49m 1 Mark Hindess 17/Apr/10 13:09
        Resolved Resolved Closed Closed
        2m 26s 1 Catherine Hope 17/Apr/10 13:11
        Catherine Hope made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Catherine Hope added a comment -

        Verified

        Show
        Catherine Hope added a comment - Verified
        Mark Hindess made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Tim Ellison made changes -
        Fix Version/s 5.0M14 [ 12314803 ]
        Hide
        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 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
        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
        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.
        Mark Hindess made changes -
        Assignee Mark Hindess [ hindessm ]
        Catherine Hope made changes -
        Field Original Value New Value
        Attachment 6479.patch [ 12439448 ]
        Hide
        Catherine Hope added a comment -

        Fix checks for an exception after calling createSocket

        Show
        Catherine Hope added a comment - Fix checks for an exception after calling createSocket
        Catherine Hope created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development