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

Linux: Process.exitValue() returns different value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.3.1
    • 1.3.1
    • hotspot
    • None
    • ladybird
    • generic
    • linux

        Method exitValue returns value different from one which returned if the class has been executed from bash(sh, csh) prompt.

        bash$ /net/jdk/export/disk6/promoted/jdk/1.3.1/latest/binaries/linux-i386/bin/java -verify -classpath . stack007
        Max. depth: 25500
        An irrecoverable stack overflow has occurred.
        # # An unexpected exception has been detected in native code outside the VM.# Program counter=0x40440929
        #
        # Problematic Thread: prio=1 tid=0x804e9f8 nid=0x2cb4 runnable
        #
        Aborted
        bash$ echo $?
        134
         bash$ java -classpath . Test /net/jdk/export/disk6/promoted/jdk/1.3.1/latest/binaries/linux-i386 .
        Starting: /net/jdk/export/disk6/promoted/jdk/1.3.1/latest/binaries/linux-i386/bin/java -verify -classpath . stack007 2>&1
        ================ Output: ================
        Max. depth: 25500

        An irrecoverable stack overflow has occurred.

        # # An unexpected exception has been detected in native code outside the VM.
        # Program counter=0x40440929
        #
        # Problematic Thread:
        prio=1 tid=0x804eb08
        nid=0x2c7d
        runnable

        #

        ================ ======= ================
        Exit status: 0


        See attchments

              duke J. Duke
              avolkovorcl Alexei Volkov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: