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

dtrace tests fail with FDS debug info files

XMLWordPrintable

    • b12
    • generic
    • solaris
    • Not verified

        The desired defaults for Full Debug Symbols for HotSpot are:

            FULL_DEBUG_SYMBOLS=1
            ZIP_DEBUGINFO_FILES=1

        when configured this way on Solaris SPARC, Solaris SPARC-v9 and
        Solaris X64, the VM/NSK dtrace subsuite has hundreds of failures.

        The following bug was used to temporarily disable FDS on Solaris:

            7164344 2/3 enabling ZIP_DEBUGINFO_FILES causes unexpected test
                        failures on Solaris and Windows
        I did a few experiments to characterize the failure mode:

        -rwxr-xr-x 1 dcubed green 557795616 Apr 26 12:03 libjvm.so.no_strip*
        -rwxr-xr-x 1 dcubed green 30931184 Apr 26 14:43 libjvm.so.strip-x*
        -rwxr-xr-x 1 dcubed green 556538156 Apr 26 16:02 libjvm.so.debuglink*
        -rwxr-xr-x 1 dcubed green 29673632 Apr 26 16:23 libjvm.so.strip-debuglink*
        -rwxr-xr-x 1 dcubed green 29656092 Apr 26 16:52 libjvm.so.objcopy-strip-debug*

        no_strip
        --------

        - disable the code that calls gobjcopy so creation of
          the libjvm.debuginfo is skipped
        - disable the code that links from libjvm.so
          to libjvm.debuginfo
        - disable the 'strip -x' of libjvm.so
        - test results were 316 pass and 13 fail (all known)

        strip-x
        -------

        - disable the code that calls gobjcopy so creation of
          the libjvm.debuginfo is skipped
        - disable the code that links from libjvm.so
          to libjvm.debuginfo
        - keep the 'strip -x' of libjvm.so
        - test results were 316 pass and 13 fail (all known)

        debuglink
        ---------

        - keep the code that calls gobjcopy so creation of
          the libjvm.debuginfo is done
        - keep the code that links from libjvm.so
          to libjvm.debuginfo
        - disable the 'strip -x' of libjvm.so
        - stopped the test run after 8/10 failures

        strip-debuglink
        ---------------

        - keep the code that calls gobjcopy so creation of
          the libjvm.debuginfo is done
        - move the 'strip -x' of libjvm.so before the debuglink
        - keep the code that links from libjvm.so
          to libjvm.debuginfo
        - stopped the test run after 8/10 failures

        objcopy-strip-debug
        -------------------

        - keep the code that calls gobjcopy so creation of
          the libjvm.debuginfo is done
        - use 'objcopy --strip-debug' instead of 'strip -x'
        - keep the code that links from libjvm.so
          to libjvm.debuginfo
        - stopped the test run after 8/10 failures

              dcubed Daniel Daugherty
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: