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

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 Other
6u91Fixed 7u60Fixed 8Fixed hs25Fixed
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
16-10-2013

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
15-10-2013

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.
12-10-2013

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

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

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

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

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