Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6978415

Hang in java.net.ServerSocket.accept

XMLWordPrintable

    • Cause Known
    • generic
    • generic

      Stress test doing ServerSocket.accept() in one thread and Socket.connect() in another eventually hangs on Solaris. Stack trace:

      Thread-105561" prio=3 tid=0x08351000 nid=0x19c66 runnable [0xb5b2c000]
         java.lang.Thread.State: RUNNABLE
         JavaThread state: _thread_in_native
      Thread: 0x08351000 [0x19c66] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
         JavaThread state: _thread_in_native
              at java.net.PlainSocketImpl.socketAccept(Native Method)
              at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
              at java.net.ServerSocket.implAccept(ServerSocket.java:513)
              at java.net.ServerSocket.accept(ServerSocket.java:481)
              at Accept$ServerThread.run(Accept.java:19)

      "Thread-105560" prio=3 tid=0x08351800 nid=0x19c65 in Object.wait() [0xb5bce000]
         java.lang.Thread.State: WAITING (on object monitor)
         JavaThread state: _thread_blocked
      Thread: 0x08351800 [0x19c65] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
         JavaThread state: _thread_blocked
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:502)
              at Accept$ServerThread.waitReady(Accept.java:31)
              - locked <0xe51ed040> (a Accept$ServerThread)
              at Accept$WorkThread.run(Accept.java:47)

            michaelm Michael McMahon
            nhaustov Nicolay Haustov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: