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

tmtools tests fail with NPE (in the tool) when run with G1 and FlightRecorder

XMLWordPrintable

    • gc
    • b62
    • generic
    • generic
    • Not verified

        The tests tmtools/jmap/clstats/jmap_clstats_basic_forName_* failed with NPE in Promotion testing of JDK8_b117 When using JFR and G1 (tests with Serial GC and no JFR does not have this problem)

        The 'live' variant fail on all platforms and the 'core' fail on all except Windows

        The server log looks like this: (example from 'core' variant, the 'live' is the same)

        [/export/local/aurora/sandbox/java/re/jdk/8/promoted/all/b117/binaries/linux-i586//bin/jmap, -clstats, 32243]
        # Are you Debuggee connector?
        # Hi from Debuggee connector jtg-amd5:10000
        Trying to connect jtg-amd5:10000
        Stdout:
        class_loader classes bytes parent_loader alive? type

        <bootstrap> 1551 2217822 null live <internal>

        total = 1 1551 2217822 N/A alive=1, dead=0 N/A

        Stderr:
        Attaching to process ID 32243, please wait...
        Debugger attached successfully.
        Server compiler detected.
        JVM version is 25.0-b59
        finding class loader instances ..java.lang.NullPointerException
        at sun.jvm.hotspot.oops.ObjectHeap$LiveRegionsCollector.doSpace(ObjectHeap.java:398)
        at sun.jvm.hotspot.gc_implementation.g1.G1CollectedHeap.heapRegionIterate(G1CollectedHeap.java:123)
        at sun.jvm.hotspot.oops.ObjectHeap.collectLiveRegions(ObjectHeap.java:436)
        at sun.jvm.hotspot.oops.ObjectHeap.iterateSubtypes(ObjectHeap.java:287)
        at sun.jvm.hotspot.oops.ObjectHeap.iterateObjectsOfKlass(ObjectHeap.java:187)
        at sun.jvm.hotspot.oops.ObjectHeap.iterateObjectsOfKlass(ObjectHeap.java:199)
        at sun.jvm.hotspot.tools.ClassLoaderStats.printClassLoaderStatistics(ClassLoaderStats.java:90)
        at sun.jvm.hotspot.tools.ClassLoaderStats.run(ClassLoaderStats.java:73)
        at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:259)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:222)
        at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
        at sun.jvm.hotspot.tools.ClassLoaderStats.main(ClassLoaderStats.java:54)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at sun.tools.jmap.JMap.runTool(JMap.java:201)
        at sun.tools.jmap.JMap.main(JMap.java:130)
        done.
        computing per loader stat ..done.
        please wait.. computing liveness..........................done.

        There are flight recordings in the results directories

        Priority justification:
        ILW = LHH => P3

        Link to failure: http://vmsqe-app.russia.sun.com/surl/57

        Link to test history: http://vmsqe-app.russia.sun.com/surl/58

        Matching rule:
        RULE tmtools/jmap/clstats/jmap_clstats_basic_forName_live Exception nsk.share.TestFailure: Unexpected list of records for class sun.misc.Launcher$AppClassLoader
        RULE tmtools/jmap/clstats/jmap_clstats_basic_forName_core Exception nsk.share.TestFailure: Unexpected list of records for class sun.misc.Launcher$AppClassLoader

              sjohanss Stefan Johansson
              iaberg Ingemar Ã…berg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: