JDK-8025812 : tmtools/jmap/heap_config tests fail on Linux-ia32 because it 'Can't attach to the core file'
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: hotspot
  • Sub-Component: svc
  • Priority: P3
  • Affected Version: hs20,hs24,hs25,6u71,6u75,8
  • OS: linux
  • CPU: x86
  • Submit Date: 2013-10-02
  • Updated Date: 2014-11-17
  • Resolved Date: 2013-10-17
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u91Resolved 7u60Fixed 8Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
From server.log:
[2013-09-26T16:05:56.33] Stderr: 
[2013-09-26T16:05:56.33] Attaching to core /export/local/aurora/sandbox/results/ResultDir/jmap_heap_config_MaxMetaspaceSize_core/core.23916 from executable /export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/rt_baseline/linux-i586//bin/java, please wait...
[2013-09-26T16:05:56.33] Error attaching to core file: Can't attach to the core filesun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:286)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:673)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:611)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:337)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:156)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.tools.Tool.start(Tool.java:170)
[2013-09-26T16:05:56.33] 	at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:49)
[2013-09-26T16:05:56.33] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2013-09-26T16:05:56.33] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[2013-09-26T16:05:56.33] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2013-09-26T16:05:56.33] 	at java.lang.reflect.Method.invoke(Method.java:491)
[2013-09-26T16:05:56.33] 	at sun.tools.jmap.JMap.runTool(JMap.java:197)
[2013-09-26T16:05:56.33] 	at sun.tools.jmap.JMap.main(JMap.java:128)


The tests failed in the same manner on two different hosts, one with -client and one with -server specified, that makes it a bit less likely that it is a host problem.

Link to failure runs:
http://vmsqe-app.russia.sun.com/surl/3W
http://vmsqe-app.russia.sun.com/surl/3X

Matching rules:
RULE tmtools/jmap/heap_config/jmap_heap_config_MaxMetaspaceSize_core Exception nsk.share.TestFailure: Unable to find sections in the output
RULE tmtools/jmap/heap_config/jmap_heap_config_MetaspaceSize_core Exception nsk.share.TestFailure: Unable to find sections in the output
RULE tmtools/jmap/heap_config/jmap_heap_config_huge_MaxMetaspaceSize_core Exception nsk.share.TestFailure: Unable to find sections in the output
RULE tmtools/jmap/heap_config/jmap_heap_config_huge_MetaspaceSize_core Exception nsk.share.TestFailure: Unable to find sections in the output
Comments
RULE compiler/ciReplay/TestSA.sh Exception sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file
2013-10-16

2013.10.14 RT_Baseline nightly tmtools/jinfo/core_kill/core_kill_no_params_check_flags [2013-10-15T04:10:55.02] Attaching to core /export/local/aurora/sandbox/results/ResultDir/core_kill_no_params_check_flags/core from executable /export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/fastdebug/rt_baseline/linux-i586//bin/java, please wait... [2013-10-15T04:10:55.02] Error attaching to core file: Can't attach to the core filesun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file [2013-10-15T04:10:55.02] at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method) Test run URL: http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=304634.JAVASE.NIGHTLY.VM.RT_Baseline.2013-10-14-81#vm.tmtools%20(dtonga)_tmtools/jinfo/core_kill/core_kill_no_params_check_flags Host: emb-spb-atom-d2700-1, Intel Atom(TM) CPU D2700 @ 2.13GHz 2133 MHz, 4 cores, 2G, Linux / Ubuntu 12.04, i686 Options: -client -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateMinidumpOnCrash -XX:ReservedCodeCacheSize=256M 80 of similar failures in tmtools/jinfo/*, tmtools/jmap/*, tmtools/jstack/* tests on the same host. RULE tmtools/jinto/* Error attaching to core file: Can't attach to the core filesun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file RULE tmtools/jmap/* Error attaching to core file: Can't attach to the core filesun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file RULE tmtools/jstack/* Error attaching to core file: Can't attach to the core filesun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file
2013-10-15

The code mixing p_filesz and p_memsz fileds of elf header. Also p_memsz field of LOAD elf program section header is rounded up to page size in corefile.
2013-10-12

Release team: Approved for deferral. Moving to tbd_minor as there wasn't a target release specified.
2013-10-12

I can reproduce (on 32-bit linux) by starting a small Java program, sending it "kill -SIGABRT" and then running jstack on the core.
2013-10-10

Starts to fail after the fix for JDK-7133122.
2013-10-10

ILW=MMH=P3, Medium impact SA attach functionality is broken, Medium likelihood as it only affects linux-ia32, no known workaround.
2013-10-08

Can you run the tests with LIBSAPROC_DEBUG=true set in the environment?
2013-10-02