United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8025812 : tmtools/jmap/heap_config tests fail on Linux-ia32 because it 'Can't attach to the core file'

Details
Type:
Bug
Submit Date:
2013-10-02
Status:
Resolved
Updated Date:
2014-08-14
Project Name:
JDK
Resolved Date:
2013-10-17
Component:
hotspot
OS:
linux
Sub-Component:
svc
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs20,hs24,hs25,6u71,6u75,8
Fixed Versions:
hs25 (b56)

Related Reports
Backport:
Backport:
Backport:
Backport:
Duplicate:
Duplicate:
Duplicate:
Relates:
Relates:

Sub Tasks

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
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
Starts to fail after the fix for JDK-7133122.
                                     
2013-10-10
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
Release team: Approved for deferral. Moving to tbd_minor as there wasn't a target release specified.

                                     
2013-10-12
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
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
RULE compiler/ciReplay/TestSA.sh Exception sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file

                                     
2013-10-16
URL:   http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/1bee3014cf2a
User:  dsamersoff
Date:  2013-10-17 16:12:33 +0000

                                     
2013-10-17
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/1bee3014cf2a
User:  amurillo
Date:  2013-10-25 23:52:44 +0000

                                     
2013-10-25



Hardware and Software, Engineered to Work Together