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

(dc) DatagramChannelImpl.blockingReceive with timeout may block indefinitely if all datagrams blocked by SecurityManager

    XMLWordPrintable

Details

    • b12
    • aarch64
    • os_x

    Description

      The following test timed out in the JDK24 CI:

      java/net/DatagramSocket/TimeoutWithSM.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(8/344)----------
      command: main -Djava.security.manager=allow TimeoutWithSM
      reason: User specified action: run main/othervm -Djava.security.manager=allow TimeoutWithSM
      started: Thu Aug 15 12:00:45 GMT 2024
      Mode: othervm [/othervm specified]
      Timeout information:
      --- Timeout information end.
      finished: Thu Aug 15 12:11:16 GMT 2024
      elapsed time (seconds): 630.78
      ----------configuration:(0/0)----------
      ----------System.out:(1149/38494)----------
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655

      <snip>

      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Timeout signalled after 480 seconds
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655

      <snip>

      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      Send datagram to /127.0.0.1:63468 ...
      checkAccept /127.0.0.1:58655
      ----------System.err:(4/635)----------
      WARNING: A terminally deprecated method in java.lang.System has been called
      WARNING: System::setSecurityManager has been called by TimeoutWithSM (file:/System/Volumes/Data/mesos/work_dir/slaves/6bbe0543-8c5a-457e-b0ca-dfa2833be967-S6208/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/48fcecd8-9ec5-4a91-bf2a-41ff034eae76/runs/85a72306-cee0-4f13-85f7-6e60f3ea082d/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/classes/0/java/net/DatagramSocket/TimeoutWithSM.d/)
      WARNING: Please consider reporting this to the maintainers of TimeoutWithSM
      WARNING: System::setSecurityManager will be removed in a future release
      ----------rerun:(36/6144)*----------

      <snip>

      result: Error. Program `/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-24+11-1198/macosx-aarch64.jdk/jdk-24.jdk/Contents/Home/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 630776ms).

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: