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

(se) Potential leak file descriptor when deregistrating at around the same time as an async close

    XMLWordPrintable

Details

    • b36
    • x86
    • linux_redhat_5.0
    • Verified

    Backports

      Description

        A CU found domain socket leak occurs in JDK5u28/6u30/7.

        CONFIGURATION:
        JDK : jdk7GA, jdk6u30, jdk5u31

        % java -version
        java version "1.5.0_31"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_31-b02)
        Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_31-b02, mixed mode)

        %java -version
        java version "1.6.0_30"
        Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
        Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)

         % java -version
        java version "1.7.0"
        Java(TM) SE Runtime Environment (build 1.7.0-b147)
        Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

        OS :
        Linux
        Red Hat Enterprise Linux Server release 5.4 (Tikanga)
        Linux XXXXXX 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux


        REPRODUCE:
        1. Compile the attached e.java and execute "java e"
        2. Invoke "lsof -U -a -p [PID]"
         If you can see several UNIX domain Sockets are created, that shows the problem is reproduced.

        ex.
        % lsof -U -a -p 3855
        COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
        java 3855 tbaba 4u unix 0xffff810010ccf940 61967223 socket
        java 3855 tbaba 17u unix 0xffff810010cce600 61967239 socket

        FREQUENCY:
        It depends on enviromnment. In some machine, it will take 5 - 10 minutes to reproduce this, in some machines, it needs several hours to reproduce.

        Attachments

          Issue Links

            Activity

              People

                robm Robert Mckenna
                tbaba Tadayuki Baba (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: