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

(so) crash when attempting to bind, connect or send to IPv6 address (win xp)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 5.0
    • core-libs
    • 5.0
    • b93
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

      FULL OS VERSION :
      Microsoft Windows XP [Version 5.1.2600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      OS: Windows XP Build 2600 Service Pack 1
      CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
      Memory: 4k page, physical 1048048k(476660k free), swap 2521532k(1970772k free)
      vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0

      A DESCRIPTION OF THE PROBLEM :
      1. I am using NIO Channel for my communication
      2. My machine is Windows XP and is configured for IPv4
      3. I create a packet and submit that to DatagramChannelImpl.send() which
      takes my ByteBuffer and SocketAddress. This ScoketAddress is created by
      new InetSocketAddress(InetAddress, int).
      4. Whenever this InetAddress is an IPv6 Address, JVM crash.

      Please note that for my application SocketAddress contains an IPv6 Address...

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      I run my program and JVM crashes with exception above. Only things which seems Wrong to me is that I am using IPv6 Address which my machine in not configured for IPv6. But same program works fine on Solaris.

      Please find attached program, I am sure you could reproduce the problem with
      these. Class UseDGwithIPv6 implements main(). One IPv6 address defined in targets. If we comment that then JVM does not crash. So far, I could not test this with later versions of Java.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x05002100, pid=4576, tid=1624
      #
      # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
      # Problematic frame:
      # C 0x05002100
      #
      # An error report file with more information is saved as hs_err_pid4576.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      I do not have.

            sherman Xueming Shen
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: