-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
5.0
-
generic
-
solaris_8
Name: ipR10196 Date: 02/06/2004
--------------------------------------
Test : nsk/sajdi/SACoreAttachingConnector/attach/attach001
VM : ClientVM, ServerVM
Mode : all
Platform : generic
OS : SunOS 5.8
JDK : 1.5.0 b32-b36
----------------------------------------
If core file size is limited and debuggee VM dumps truncated core file,
then SACoreAttachingConnector crashes debugger VM while attaching to
the truncated core file.
This crash is easily reproduced on Solaris (either sparc and x86).
On Linux debugger is crashed because of known bug:
4975660 SA-JDI: SAPIDAttachingConnector.attach() causes debugger VM crash on
Linux
To reproduce this failure:
cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/<this bug number>
sh build.sh $JAVA_HOME
sh run.sh -limit [-g] [-v] $JAVA_HOME [JAVA_OPTS]
where:
-limit - limit core file size in the script
-g - run test with java_g binaries
-v - run test in verbose mode
Here is test output on Solaris:
-------------------------------------------------------------------------------
$ sh run.sh -limit -v $JDK
Set core size limit: 4 Kb
Run: nsk/sajdi/SACoreAttachingConnector/attach/attach001
script>
script> Check if feature not implemented:
sun.jvm.hotspot.jdi.SACoreAttachingConnector
script> Feature is implemented: sun.jvm.hotspot.jdi.SACoreAttachingConnector
script>
script> Run SA-JDI test:
script> DEBUGGER_CLASS: nsk/sajdi/SACoreAttachingConnector/attach/attach001
script> DEBUGGEE_CLASS: nsk/sajdi/SACoreAttachingConnector/attach/attach001a
script> TEST_OPTS: -arch=sparc -waittime=1 -debugee.vmkind=java
-connector=attaching_core -debugee.vmkeys= -verbose
script> CONNECTOR_NAME: sun.jvm.hotspot.jdi.SACoreAttachingConnector
script> DEBUGGER_JAVA: /export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
script> JAVA_OPTS:
script> DEBUGGEE_JAVA: /export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
script> JAVA_OPTS:
script>
script> Check if generated files exist: debuggee.status DebugServer.status core
script> # WARNING: Delete existing file: debuggee.status
script>
script> Check if no core file size limit set
script> # WARNING: Core file size limit set: 4
script>
script> Run debuggee: nsk/sajdi/SACoreAttachingConnector/attach/attach001a
script> Debuggee VM process started with pid: 26460
script>
script> Wait for debuggee class to become ready within timeout: 60 seconds
script> - not ready: 0 seconds
Debuggee class started
Debuggee class ready for debugging
DEBUGGEE_READY_FOR_DEBUGGING
script> Debuggee VM got ready for debugging
script>
script> Kill debuggee VM process with SIGABRT for pid: 26460
script> Wait for debuggee VM process terminated: 26460
26460 Abort
script> Debuggee VM terminated with exit status: 134
script>
script> Check if debuggee core file dumped: core
script> Debuggee core file found: core
script>
script> Run debugger: nsk/sajdi/SACoreAttachingConnector/attach/attach001
Check AttachingConnector.attach() with sa-jdi connector:
connector: sun.jvm.hotspot.jdi.SACoreAttachingConnector
core file: core
javaExec: /export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
Find connector in VirtualMachineManager.attachingConnectors():
name: com.sun.jdi.SocketAttach
name: sun.jvm.hotspot.jdi.SACoreAttachingConnector
Found AttachingConnector:
name: sun.jvm.hotspot.jdi.SACoreAttachingConnector
transport: null
description: This connector allows you to attach to a core file using the
Serviceability Agent
Set arguments for AttachingConnector:
name: javaExecutable, value:
/export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
name: core, value: core
Attaching to target VM
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGBUS (0xa) at pc=0xfded5964, pid=26464, tid=1
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-beta2-b36 mixed mode)
# Problematic frame:
# C [libproc.so+0x5964] Pfree+0x28
#
# An error report file with more information is saved as hs_err_pid26464.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Abort
script> Debugger finished with exit status: 134
script> # ERROR: Debugger class returned fail status: 134
script>
script> Delete debuggee core file: core
script> Debuggee core file deleted
script>
script> Test exit status: 97
Test exit status: 97
-------------------------------------------------------------------------------
======================================================================
Name: ipR10196 Date: 03/05/2004
This bug affects also the following SA-JDI test:
nsk/sajdi/SACoreAttachingConnector/attach/attach002
======================================================================
--------------------------------------
Test : nsk/sajdi/SACoreAttachingConnector/attach/attach001
VM : ClientVM, ServerVM
Mode : all
Platform : generic
OS : SunOS 5.8
JDK : 1.5.0 b32-b36
----------------------------------------
If core file size is limited and debuggee VM dumps truncated core file,
then SACoreAttachingConnector crashes debugger VM while attaching to
the truncated core file.
This crash is easily reproduced on Solaris (either sparc and x86).
On Linux debugger is crashed because of known bug:
4975660 SA-JDI: SAPIDAttachingConnector.attach() causes debugger VM crash on
Linux
To reproduce this failure:
cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/<this bug number>
sh build.sh $JAVA_HOME
sh run.sh -limit [-g] [-v] $JAVA_HOME [JAVA_OPTS]
where:
-limit - limit core file size in the script
-g - run test with java_g binaries
-v - run test in verbose mode
Here is test output on Solaris:
-------------------------------------------------------------------------------
$ sh run.sh -limit -v $JDK
Set core size limit: 4 Kb
Run: nsk/sajdi/SACoreAttachingConnector/attach/attach001
script>
script> Check if feature not implemented:
sun.jvm.hotspot.jdi.SACoreAttachingConnector
script> Feature is implemented: sun.jvm.hotspot.jdi.SACoreAttachingConnector
script>
script> Run SA-JDI test:
script> DEBUGGER_CLASS: nsk/sajdi/SACoreAttachingConnector/attach/attach001
script> DEBUGGEE_CLASS: nsk/sajdi/SACoreAttachingConnector/attach/attach001a
script> TEST_OPTS: -arch=sparc -waittime=1 -debugee.vmkind=java
-connector=attaching_core -debugee.vmkeys= -verbose
script> CONNECTOR_NAME: sun.jvm.hotspot.jdi.SACoreAttachingConnector
script> DEBUGGER_JAVA: /export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
script> JAVA_OPTS:
script> DEBUGGEE_JAVA: /export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
script> JAVA_OPTS:
script>
script> Check if generated files exist: debuggee.status DebugServer.status core
script> # WARNING: Delete existing file: debuggee.status
script>
script> Check if no core file size limit set
script> # WARNING: Core file size limit set: 4
script>
script> Run debuggee: nsk/sajdi/SACoreAttachingConnector/attach/attach001a
script> Debuggee VM process started with pid: 26460
script>
script> Wait for debuggee class to become ready within timeout: 60 seconds
script> - not ready: 0 seconds
Debuggee class started
Debuggee class ready for debugging
DEBUGGEE_READY_FOR_DEBUGGING
script> Debuggee VM got ready for debugging
script>
script> Kill debuggee VM process with SIGABRT for pid: 26460
script> Wait for debuggee VM process terminated: 26460
26460 Abort
script> Debuggee VM terminated with exit status: 134
script>
script> Check if debuggee core file dumped: core
script> Debuggee core file found: core
script>
script> Run debugger: nsk/sajdi/SACoreAttachingConnector/attach/attach001
Check AttachingConnector.attach() with sa-jdi connector:
connector: sun.jvm.hotspot.jdi.SACoreAttachingConnector
core file: core
javaExec: /export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
Find connector in VirtualMachineManager.attachingConnectors():
name: com.sun.jdi.SocketAttach
name: sun.jvm.hotspot.jdi.SACoreAttachingConnector
Found AttachingConnector:
name: sun.jvm.hotspot.jdi.SACoreAttachingConnector
transport: null
description: This connector allows you to attach to a core file using the
Serviceability Agent
Set arguments for AttachingConnector:
name: javaExecutable, value:
/export/ld24/java/hotspot/jdk1.5/solsparc/bin/java
name: core, value: core
Attaching to target VM
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGBUS (0xa) at pc=0xfded5964, pid=26464, tid=1
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-beta2-b36 mixed mode)
# Problematic frame:
# C [libproc.so+0x5964] Pfree+0x28
#
# An error report file with more information is saved as hs_err_pid26464.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Abort
script> Debugger finished with exit status: 134
script> # ERROR: Debugger class returned fail status: 134
script>
script> Delete debuggee core file: core
script> Debuggee core file deleted
script>
script> Test exit status: 97
Test exit status: 97
-------------------------------------------------------------------------------
======================================================================
Name: ipR10196 Date: 03/05/2004
This bug affects also the following SA-JDI test:
nsk/sajdi/SACoreAttachingConnector/attach/attach002
======================================================================