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

linetab003: GetLineNumberTable does not indicate absence of line numbers

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_7
    • Verification:
      Verified

      Backports

        Description



        Name: pvR10198 Date: 02/25/2002


        The Hotspot VM (build 1.4.1-beta-b02) fails the following test
        from testbase_nsk:

            nsk/jvmdi/GetLineNumberTable/linetab003

        The test exercises JVMDI function
            GetLineNumberTable(clazz, method, entryCountPtr, tablePtr).

        The test checks if the function returns JVMDI_ERROR_ABSENT_INFORMATION
        if clazz does not include line numbers (i.e. compiled with -g:none).

        The test reveals that the function returns JVMDI_ERROR_NONE and
        a 0-length table, but not JVMDI_ERROR_ABSENT_INFORMATION.

        Classic VM passes the test.

        To reproduce the bug run script in GammaBase/Bugs/<this bug number>
        directory:

            sh doit.sh <JAVA_HOME>

        Running the test outputs:

        java version "1.4.1-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b02)
        Java HotSpot(TM) Client VM (build 1.4.1-beta-b02, mixed mode)
        Error expected: JVMDI_ERROR_ABSENT_INFORMATION,
                actual: JVMDI_ERROR_NONE (0)
          meth() line number table (0 entries): empty
        Exit Code: 97

        Running with Classic VM the test outputs:

        java version "1.3.1"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
        Classic VM (build 1.3.1-b24, native threads, nojit)
        Exit Code: 95

        The test will be available in the next release v14r12.
        ======================================================================

        Name: elR10090 Date: 02/26/2002


        This bug is also reproducible using Merlin (build 1.4.0-rc-b92) and
        Ladybird (build 1.3.1-b24) with the same output.

        Pavel Vysotski <###@###.###>

        ======================================================================
        Dostar Kasymov <###@###.###> Date: 09/01/2003

        This bug also affects the following test:
          nsk/jvmti/GetLineNumberTable/linetab003

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sspitsyn Serguei Spitsyn
                Reporter:
                vpnsunw Vpn Vpn (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: