-
Bug
-
Resolution: Won't Fix
-
P3
-
6u10, 7
-
sparc
-
solaris
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
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
- relates to
-
JDK-8019174 SA: jstack -m not showing system function names in stack trace for 32-bit JVM on linux
- Closed