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

Inet6Address.isReachable returns true for non existing IP addresses In non-root

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Linux version 3.10.0-957.21.3.el7.x86_64 (root@435399c7ddce) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP

      [root@name64 ~]# java -version
      openjdk version "1.8.0_252"
      OpenJDK Runtime Environment (build 1.8.0_252-b09)
      OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
      You have new mail in /var/spool/mail/root

      A DESCRIPTION OF THE PROBLEM :
      OpneJDK Inet6Address.isReachable returns probabilistic true for non existing IP addresses In a non-root environment .
      In a non-root environment, Continuous call Inet6Address.isReachable for a non exsiting IPV6 address will return: false false true false false true......
       If 1 second between each request,then will return: false true false true false true......
       If 2 second or more between each request,then will return correctly: false false false false false false......

      I test openJDK1.11.0.7 、openJDK1.14.0.1 in the same environment, I can always get the correct results.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      In a non-root environment, Continuous call Inet6Address.isReachable for a non exsiting IPV6 address

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      false false true false false true......

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              adev ANUPAM DEV
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: