JDK-6651880 : SA: jstack does not show java frames on 64 bit solsparc using SA
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 6u10,7
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris
  • CPU: sparc
  • Submitted: 2008-01-17
  • Updated: 2020-03-17
  • Resolved: 2020-03-17
Related Reports
Relates :  
Description
Run the following java program in 64 bit more on solaris sparc

public class Sleep {
	public static void main(String[] args) {
		try {
			Thread.sleep(1000000);
		} catch (Exception e) {}
	}
}

>java -d64 Sleep

try to use attach to this program using SA

>jstack -J-d64 <pid>
you will see a stack like this

----------------- t@2 -----------------
0xffffffff7eca740c      _poll + 0x4
0xffffffff7e23cee4      int os_sleep(long long,bool) + 0x68c
0xffffffff7e23d5c4      int os::sleep(Thread*,long long,bool) + 0x1a4
0xffffffff7de49f44      JVM_Sleep + 0x4fc
<interpreter> method entry point (kind = native)
<interpreter> method entry point (kind = native)
<interpreter> return entry points
0xffffffff78c00240      <StubRoutines>
0xffffffff7dd7ab80      void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*) + 0x1c0
0xffffffff7dd8562c      void JavaCalls::call(JavaValue*,methodHandle,JavaCallArguments*,Thread*) + 0x34
0xffffffff7de28b2c      jni_CallStaticVoidMethod + 0x430
0x0000000100003bc4      JavaMain + 0x1614
0xffffffff7f217c9c      _lwp_start

where java frames are not shown

affected tests
tmtools/tests/jstack/frameinfo-m/compiled_frame/compiled_frame_live
tmtools/tests/jstack/frameinfo-m/compiled_frame/compiled_frame_core
tmtools/tests/jstack/frameinfo-m/interpreted_frame/interpreted_frame_live
tmtools/tests/jstack/frameinfo-m/interpreted_frame/interpreted_frame_core
more affected tests
tmtools/jstack/ownablesynchronizers-lm/emptyos_core
tmtools/jstack/ownablesynchronizers-lm/emptyos_live
tmtools/jstack/ownablesynchronizers-lm/read_reentrantreadwritelock_core
tmtools/jstack/ownablesynchronizers-lm/read_reentrantreadwritelock_live
tmtools/jstack/ownablesynchronizers-lm/reentrantlock_core
tmtools/jstack/ownablesynchronizers-lm/reentrantlock_live
tmtools/jstack/ownablesynchronizers-lm/write_reentrantreadwritelock_core	
tmtools/jstack/ownablesynchronizers-lm/write_reentrantreadwritelock_live
tmtools/jstack/stacktrace-m/mixed_stack_jn_core
tmtools/jstack/stacktrace-m/mixed_stack_jn_live

Comments
Dmitry focusing on SA bugs only, and agreed to take that one. Taking another one in replacement
23-01-2014