JDK-7133122 : SA throws sun.jvm.hotspot.debugger.UnmappedAddressException when it should not
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 6u29,7u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-01-25
  • Updated: 2019-08-16
  • Resolved: 2013-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 Other
6u75Fixed 7u60Fixed 8Fixed hs25Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
When running SA on a 64bit linux core, an exception is thrown.

Exception in thread "main" sun.jvm.hotspot.debugger.UnmappedAddressException
        at sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:208)
        at sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:63)
        at sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:217)
        at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCInteger(LinuxDebuggerLocal.java:482)
        at sun.jvm.hotspot.debugger.linux.LinuxAddress.getCIntegerAt(LinuxAddress.java:69)
        at sun.jvm.hotspot.utilities.CStringUtilities.getString(CStringUtilities.java:61)
        at sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:128)
        at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:85)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:568)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:494)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:348)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:169)
        at sun.jvm.hotspot.tools.soql.JSDB.main(JSDB.java:35)

Comments
I'm still seeing the following failures in the 2013.10.28 RT_Baseline nightly. RULE tmtools/jstack/ownablesynchronizers-l-core/emptyos Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-l-core/read_reentrantreadwritelock Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-l-core/reentrantlock Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-l-core/write_reentrantreadwritelock Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/emptyos_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/read_reentrantreadwritelock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/reentrantlock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/write_reentrantreadwritelock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/complex_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/complex_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/complex_stack_with_long_method_names Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/limited_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/oom_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/reflection_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/simple_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/complex_recursive_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/complex_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/complex_stack_with_long_method_names_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/limited_recursive_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/oom_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/reflection_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/simple_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/complex_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/complex_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/complex_stack_with_long_method_names Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/limited_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/oom_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/reflection_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/simple_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario2 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario4 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario6 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario8 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... [2013-10-29T05:28:54.54] Attaching to core /export/local/aurora/sandbox/results/ResultDir/emptyos/core.4190 from executable /export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/rt_baseline/linux-i586//bin/java, please wait... [2013-10-29T05:28:54.54] Debugger attached successfully. [2013-10-29T05:28:54.54] Client compiler detected. [2013-10-29T05:28:54.54] JVM version is 25.0-b56-internal-201310281747.dsamerso.hotspot-fastdebug [2013-10-29T05:28:54.54] sun.jvm.hotspot.debugger.UnmappedAddressException: 80029ae0 [2013-10-29T05:28:54.54] at sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:208) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:63) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:225) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCInteger(LinuxDebuggerLocal.java:498) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.debugger.linux.LinuxAddress.getCIntegerAt(LinuxAddress.java:69) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.oops.CIntField.getValue(CIntField.java:49) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.oops.CIntField.getValue(CIntField.java:46) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.utilities.GenericArray.length(GenericArray.java:46) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.oops.InstanceKlass.getAllFieldsCount(InstanceKlass.java:335) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.oops.InstanceKlass.<init>(InstanceKlass.java:119) [2013-10-29T05:28:54.54] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [2013-10-29T05:28:54.54] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [2013-10-29T05:28:54.54] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [2013-10-29T05:28:54.54] at java.lang.reflect.Constructor.newInstance(Constructor.java:406) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.runtime.VMObjectFactory.newObject(VMObjectFactory.java:58) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.runtime.VirtualBaseConstructor.instantiateWrapperFor(VirtualBaseConstructor.java:104) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.oops.Metadata.instantiateWrapperFor(Metadata.java:68) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:213) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:251) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.runtime.JavaThread.getThreadObj(JavaThread.java:335) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.runtime.JavaThread.getCurrentParkBlocker(JavaThread.java:387) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.runtime.DeadlockDetector.print(DeadlockDetector.java:82) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.runtime.DeadlockDetector.print(DeadlockDetector.java:39) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:62) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:45) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.tools.JStack.run(JStack.java:66) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:259) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.tools.Tool.start(Tool.java:222) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118) [2013-10-29T05:28:54.54] at sun.jvm.hotspot.tools.JStack.main(JStack.java:92) [2013-10-29T05:28:54.54] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2013-10-29T05:28:54.54] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [2013-10-29T05:28:54.54] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2013-10-29T05:28:54.54] at java.lang.reflect.Method.invoke(Method.java:483) [2013-10-29T05:28:54.54] at sun.tools.jstack.JStack.runJStackTool(JStack.java:136) [2013-10-29T05:28:54.54] at sun.tools.jstack.JStack.main(JStack.java:102) Test run URL: http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=309820.JAVASE.NIGHTLY.VM.RT_Baseline.2013-10-28-81#vm.tmtools%20(dtonga)_tmtools/jstack/stacktrace-F/complex_stack_with_long_method_names_core Host: scaaa286, Intel Xeon 2901 MHz, 32 cores, 252G, Linux / Oracle Linux 6.3, x86_64 Options: -client -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateMinidumpOnCrash -XX:ReservedCodeCacheSize=256M Should I file a new bug?
30-10-2013

This happened in PIT of hs24.60-b02 for jdk7u60-b01 Adding some rules so Aurora can match: RULE tmtools/jinfo/core_kill/core_kill_no_params_check_flags Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jinfo/core_kill/core_kill_parameter_flags Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jinfo/core_kill/core_kill_parameter_sysprops Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/finalizerinfo/jmap_finalizerinfo_basic_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/finalizerinfo/jmap_finalizerinfo_format_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/finalizerinfo/jmap_finalizerinfo_none_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/finalizerinfo/jmap_finalizerinfo_sanity_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/finalizerinfo/jmap_finalizerinfo_total_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_format_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_intern_increase_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_management_eden_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_management_oldgen_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_management_permgen_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_management_survivorspace_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_management_younggen_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap/jmap_heap_usage_sanity_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_MaxHeapFreeRatio_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_MaxHeapSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_MaxNewSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_MaxPermSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_MinHeapFreeRatio_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_NewRatio_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_NewSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_PermSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_SurvivorRatio_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_huge_MaxHeapSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_huge_MaxNewSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_huge_MaxPermSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_huge_NewSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_huge_OldSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_huge_PermSize_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/heap_config/jmap_heap_config_sanity_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_basic_forName_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_duplicate_generating_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_failed_forName_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_failed_generating_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_forbidden_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_format_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_noinstances_generating_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_sanity_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_standard_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/histo/jmap_histo_total_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/permstat/jmap_permstat_basic_forName_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/permstat/jmap_permstat_bootstrap_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/permstat/jmap_permstat_format_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/permstat/jmap_permstat_sanity_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/permstat/jmap_permstat_structure_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/permstat/jmap_permstat_total_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/pmap/jmap_pmap_format_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/pmap/jmap_pmap_noduplicate_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jmap/pmap/jmap_pmap_sanity_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/deadlock-F/deadlock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/deadlock-m/deadlock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-l-core/emptyos Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-l-core/read_reentrantreadwritelock Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-l-core/reentrantlock Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-l-core/write_reentrantreadwritelock Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/emptyos_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/read_reentrantreadwritelock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/reentrantlock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lF/write_reentrantreadwritelock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lm/emptyos_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lm/read_reentrantreadwritelock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lm/reentrantlock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/ownablesynchronizers-lm/write_reentrantreadwritelock_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/complex_recursive_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/complex_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/complex_stack_with_long_method_names_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/limited_recursive_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/oom_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/reflection_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-F/simple_stack_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/complex_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/complex_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/complex_stack_with_long_method_names Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/limited_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/oom_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/reflection_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-core/simple_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/complex_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/complex_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/complex_stack_with_long_method_names Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/limited_recursive_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/oom_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/reflection_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-l-core/simple_stack Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace-m/mixed_stack_jnj_core Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario2 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario4 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario6 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ... RULE tmtools/jstack/stacktrace_complex_scenario-core/complex_scenario8 Exception sun.jvm.hotspot.debugger.UnmappedAddressException: ...
30-10-2013

Ran into this problem again this week. The product support team for the Agile product was frustrated because they were unable to get a jstack from a core file. Some comments from the customer: "All 3 commands, jmap, jinfo and jstack got similar error like this: Caused by: sun.jvm.hotspot.debugger.UnmappedAddressException at sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:208) It is very critical that we have to get this bug fixed or a workaround provided so we can find out why Agile java process continuously crash."
12-06-2013

Re-assigned it to you as SA expert, according to e-mail of Thu, 30 Aug 2012 08:49:33 -0700
04-10-2012

PUBLIC COMMENTS On the serviceability-dev mailing list ###@###.### reported this same issue and offers a patch: --- Hi, I've tried attach a corefile with jstack. However, I couldn't. I guess that this problem is caused by incorrect address mapping of libsaproc.so . I've made a patch which is attached this email. And I've been able to get correct thread stack with jstack. So, I'd like to contribute this patch, and I'd like to backport to JDK6/7 . Could you help me? ------ details ------ I got these messages then I ran jstack with LIBSAPROC_DEBUG environment variable: /*************************/ : libsaproc DEBUG: reading library /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.1.x86_64/jre/lib/amd64/server/libjvm.so @ 0x7f53b455a000 [ 0x7f53b455a000 ] libsaproc DEBUG: ---- sorted virtual address map ---- : libsaproc DEBUG: base = 0x7f53b455a000 size = 9993772 libsaproc DEBUG: base = 0x7f53b455a000 size = 4096 : libsaproc DEBUG: can't locate map_info at 0x7f53b4dbe000 libsaproc DEBUG: core read failed for 4096 byte(s) @ 0x7f53b4dbe000 (4096 more bytes) : /*************************/ libsaproc.so tries to read libjvm.so library address, and it is duplicated. I read Linux kernel source code of function of core dump, and I found these comment: source code: kernel-3.2.1-3.fc16.src.rpm (Fedora16 x86_64) in fs/binfmt_elf.c: static unsigned long vma_dump_size(struct vm_area_struct *vma, unsigned long mm_flags) ---------------------- /* * If this looks like the beginning of a DSO or executable mapping, * check for an ELF header. If we find one, dump the first page to * aid in determining what was mapped here. */ ---------------------- In fact, core image has executable load section which size is 1 page(0x1000) ---------------------- LOAD 0x0000000005173000 0x00007f53b455a000 0x0000000000000000 0x0000000000001000 0x0000000000988000 R E 1000 ---------------------- So, we must think these case when we attach core image. I modified "read_lib_segments()" in hotspot/agent/src/os/linux/ps_core.c to overwrite correct address in shared library . Please check it. Thanks, Yasumasa address_mapping.patch diff -r 6edfe6e42a68 agent/src/os/linux/ps_core.c --- a/agent/src/os/linux/ps_core.c Thu Jan 26 18:23:17 2012 -0800 +++ b/agent/src/os/linux/ps_core.c Tue Jan 31 18:43:42 2012 +0900 @@ -30,6 +30,7 @@ #include <stddef.h> #include <elf.h> #include <link.h> +#include <sys/user.h> #include "libproc_impl.h" #include "salibelf.h" @@ -711,9 +712,35 @@ // i.e., text segments. The read/write/exec (data) segments would // have been already added from core file segments. for (lib_php = phbuf, i = 0; i < lib_ehdr->e_phnum; i++) { + if ((lib_php->p_type == PT_LOAD) && !(lib_php->p_flags & PF_W) && (lib_php->p_filesz != 0)) { - if (add_map_info(ph, lib_fd, lib_php->p_offset, lib_php->p_vaddr + lib_base, lib_php->p_filesz) == NULL) + uintptr_t target_vaddr = lib_php->p_vaddr + lib_base; + map_info *existed_map = core_lookup(ph, target_vaddr); + + if(existed_map == NULL){ + if(add_map_info(ph, lib_fd, lib_php->p_offset, + target_vaddr, lib_php->p_filesz) == NULL) goto err; + } + else{ + + if((existed_map->memsz != PAGE_SIZE) && + (existed_map->fd != lib_fd) && + (existed_map->memsz != lib_php->p_filesz)){ + print_debug("address confliction @ 0x%lx (size = %ld, flags = %d\n)", + target_vaddr, lib_php->p_filesz, lib_php->p_flags); + + goto err; + } + + /* replace PT_LOAD segment to library segment */ + print_debug("overwrite to new address mapping (memsz %ld -> %ld)\n", + existed_map->memsz, lib_php->p_filesz); + existed_map->fd = lib_fd; + existed_map->offset = lib_php->p_offset; + existed_map->memsz = lib_php->p_filesz; + } + } lib_php++; }
31-01-2012