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

java -jar -XX crashes java launcher

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • tools
    • b38
    • generic
    • generic
    • Verified

        The java launcher crashes in JLI_WildcardExpandClasspath when run with the (strange) command line "java -jar -XX"

        $ /localhome/java/jdk-8-ea-bin-b28/bin/java -jar -XX
        Segmentation fault

        Linux stack trace:
        $ gdb --args /localhome/java/jdk-8-ea-bin-b28/fastdebug/bin/java -jar -XX
        (gdb) r
        Starting program: /localhome/java/jdk-8-ea-bin-b28/fastdebug/bin/java -jar -XX
        [Thread debugging using libthread_db enabled]

        Program received signal SIGSEGV, Segmentation fault.
        __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:33
        33 ../sysdeps/x86_64/multiarch/../strchr.S: No such file or directory.
        in ../sysdeps/x86_64/multiarch/../strchr.S
        (gdb) bt
        #0 __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:33
        #1 0x00007ffff79b0e9f in JLI_WildcardExpandClasspath ()
           from /localhome/java/jdk-8-ea-bin-b28/fastdebug/bin/../jre/lib/amd64/jli/libjli.so
        #2 0x00007ffff79ac8ac in SetClassPath ()
           from /localhome/java/jdk-8-ea-bin-b28/fastdebug/bin/../jre/lib/amd64/jli/libjli.so
        #3 0x00007ffff79acdc6 in JLI_Launch ()
           from /localhome/java/jdk-8-ea-bin-b28/fastdebug/bin/../jre/lib/amd64/jli/libjli.so
        #4 0x0000000000400676 in main ()

        The crash reproduces on solaris-amd64 as well.

        I can reproduce this on JDK7 b147 but not on JDK6u29 b11, so I guess this is something that was introduced in 7.

              ksrini Kumar Srinivasan
              mgerdin Mikael Gerdin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: