Skip to content

Instantly share code, notes, and snippets.

@stefmoon
Last active December 15, 2015 16:39
Show Gist options
  • Save stefmoon/5290940 to your computer and use it in GitHub Desktop.
Save stefmoon/5290940 to your computer and use it in GitHub Desktop.
一个简单的native代码bug造成的crash
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00002aaad642d56d, pid=22148, tid=1098307904
#
# JRE version: 7.0
# Java VM: OpenJDK (Taobao) 64-Bit Server VM (23.6-b04-internal mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libDLL.so+0x56d] Java_testdll_set+0x1a
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00002aaaab079000): JavaThread "main" [_thread_in_native, id=22149, stack(0x000000004166d000,0x000000004176e000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000
Registers:
RAX=0x0000000000000000, RBX=0x0000000604285cc8, RCX=0x00002ab557f01bc8, RDX=0x0000000000000000
RSP=0x000000004176cab0, RBP=0x000000004176cab0, RSI=0x000000004176cb18, RDI=0x00002aaaab0791d8
R8 =0x0000000604285cc8, R9 =0x000000004176c858, R10=0x00002aaab0c84754, R11=0x00002ab55766d650
R12=0x0000000000000000, R13=0x0000000604285cc8, R14=0x000000004176cb28, R15=0x00002aaaab079000
RIP=0x00002aaad642d56d, EFLAGS=0x0000000000010287, CSGSFS=0x0000000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e
Top of Stack: (sp=0x000000004176cab0)
0x000000004176cab0: 000000004176cb08 00002aaab0c84780
0x000000004176cac0: 00002aaaab05d838 000000004176cac8
0x000000004176cad0: 0000000604285cc8 000000004176cb28
0x000000004176cae0: 00000006042862a0 0000000000000000
0x000000004176caf0: 0000000604285cc8 0000000000000000
0x000000004176cb00: 000000004176cb28 000000004176cb70
0x000000004176cb10: 00002aaab0c78450 000000075865ad68
0x000000004176cb20: 00002aaab0c81458 0000000000000000
0x000000004176cb30: 000000004176cb30 0000000604285dd6
0x000000004176cb40: 000000004176cb98 00000006042862a0
0x000000004176cb50: 0000000000000000 0000000604285e00
0x000000004176cb60: 000000004176cb28 000000004176cb98
0x000000004176cb70: 000000004176cbe0 00002aaab0c78450
0x000000004176cb80: 0000000000000000 0000000000000000
0x000000004176cb90: 0000000000000000 000000075865d120
0x000000004176cba0: 000000004176cba0 0000000604285ed9
0x000000004176cbb0: 000000004176cbf8 00000006042862a0
0x000000004176cbc0: 0000000000000000 0000000604285ee8
0x000000004176cbd0: 000000004176cb98 000000004176cbf8
0x000000004176cbe0: 000000004176cc60 00002aaab0c7250d
0x000000004176cbf0: 000000075865d120 000000075865d110
0x000000004176cc00: 00002aaa00001fa0 000000004176cd78
0x000000004176cc10: 00002aaaab079000 00002aaab0c82b60
0x000000004176cc20: 000000004176cfe0 0000000000000000
0x000000004176cc30: 000000004176cca0 000000004176cfe0
0x000000004176cc40: 00002aaa0000000a 0000000604285ee8
0x000000004176cc50: 00002aaab0c82b60 000000004176cd80
0x000000004176cc60: 000000004176cd50 00002ab55769ecfd
0x000000004176cc70: 0000000000000001 00002aaaab079000
0x000000004176cc80: 00002aaaab05d828 00002aaaab05d828
0x000000004176cc90: 00002ab5561518d4 000000060000000a
0x000000004176cca0: 00002aaaab079000 00002aaaab029640
Instructions: (pc=0x00002aaad642d56d)
0x00002aaad642d54d: 20 00 8b 00 c9 c3 55 48 89 e5 48 89 7d f8 48 89
0x00002aaad642d55d: 75 f0 89 55 ec 48 8b 05 b7 02 20 00 8b 00 48 98
0x00002aaad642d56d: c7 00 00 00 00 00 48 8b 15 a6 02 20 00 8b 45 ec
0x00002aaad642d57d: 89 02 c9 c3 90 90 90 90 90 90 90 90 90 90 90 90
[Disassembling for mach='i386:x86-64']
0x00002aaad642d54d: and %al,(%rax)
0x00002aaad642d54f: mov (%rax),%eax
0x00002aaad642d551: leaveq
0x00002aaad642d552: retq
0x00002aaad642d553: push %rbp
0x00002aaad642d554: mov %rsp,%rbp
0x00002aaad642d557: mov %rdi,-0x8(%rbp)
0x00002aaad642d55b: mov %rsi,-0x10(%rbp)
0x00002aaad642d55f: mov %edx,-0x14(%rbp)
0x00002aaad642d562: mov 0x2002b7(%rip),%rax # 0x00002aaad662d820
0x00002aaad642d569: mov (%rax),%eax
0x00002aaad642d56b: cltq
0x00002aaad642d56d: movl $0x0,(%rax)
0x00002aaad642d573: mov 0x2002a6(%rip),%rdx # 0x00002aaad662d820
0x00002aaad642d57a: mov -0x14(%rbp),%eax
0x00002aaad642d57d: mov %eax,(%rdx)
0x00002aaad642d57f: leaveq
0x00002aaad642d580: retq
0x00002aaad642d581: nop
0x00002aaad642d582: nop
0x00002aaad642d583: nop
0x00002aaad642d584: nop
0x00002aaad642d585: nop
0x00002aaad642d586: nop
0x00002aaad642d587: nop
0x00002aaad642d588: nop
0x00002aaad642d589: nop
0x00002aaad642d58a: nop
0x00002aaad642d58b: nop
0x00002aaad642d58c: nop
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x0000000604285cc8 is an oop
{method}
- klass: {other class}
RCX=0x00002ab557f01bc8: <offset 0x1301bc8> in /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libjvm.so at 0x00002ab556c00000
RDX=0x0000000000000000 is an unknown value
RSP=0x000000004176cab0 is pointing into the stack for thread: 0x00002aaaab079000
RBP=0x000000004176cab0 is pointing into the stack for thread: 0x00002aaaab079000
RSI=0x000000004176cb18 is pointing into the stack for thread: 0x00002aaaab079000
RDI=0x00002aaaab0791d8 is an unknown value
R8 =0x0000000604285cc8 is an oop
{method}
- klass: {other class}
R9 =0x000000004176c858 is pointing into the stack for thread: 0x00002aaaab079000
R10=0x00002aaab0c84754 is an Interpreter codelet
method entry point (kind = native) [0x00002aaab0c84500, 0x00002aaab0c84d80] 2176 bytes
R11=0x00002ab55766d650: <offset 0xa6d650> in /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libjvm.so at 0x00002ab556c00000
R12=0x0000000000000000 is an unknown value
R13=0x0000000604285cc8 is an oop
{method}
- klass: {other class}
R14=0x000000004176cb28 is pointing into the stack for thread: 0x00002aaaab079000
R15=0x00002aaaab079000 is a thread
Stack: [0x000000004166d000,0x000000004176e000], sp=0x000000004176cab0, free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libDLL.so+0x56d] Java_testdll_set+0x1a
j testdll.set(I)V+0
j testdll.fun()V+14
j testdll.main([Ljava/lang/String;)V+9
v ~StubRoutines::call_stub
V [libjvm.so+0xa9ecfd] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x23d
V [libjvm.so+0x65a6cb] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x1bb
V [libjvm.so+0x65a2fc] jni_CallStaticVoidMethod+0x1fc
C [libjli.so+0x36d9] JavaMain+0x7e9
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j testdll.set(I)V+0
j testdll.fun()V+14
j testdll.main([Ljava/lang/String;)V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00002aaaab07d800 JavaThread "Service Thread" daemon [_thread_blocked, id=22169, stack(0x0000000040a93000,0x0000000040b94000)]
0x00002aaaab07c800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=22168, stack(0x0000000041bb5000,0x0000000041cb6000)]
0x00002aaaab07c000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=22167, stack(0x000000004186f000,0x0000000041970000)]
0x00002aaaab07b000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=22166, stack(0x000000004198e000,0x0000000041a8f000)]
0x00002aaaab07a800 JavaThread "Finalizer" daemon [_thread_blocked, id=22165, stack(0x000000004176e000,0x000000004186f000)]
0x00002aaaab079800 JavaThread "Reference Handler" daemon [_thread_blocked, id=22164, stack(0x0000000041dcb000,0x0000000041ecc000)]
=>0x00002aaaab079000 JavaThread "main" [_thread_in_native, id=22149, stack(0x000000004166d000,0x000000004176e000)]
Other Threads:
0x00002aaaab0c9800 VMThread [stack: 0x00000000414f4000,0x00000000415f5000] [id=22163]
0x00002aaaab0ca000 WatcherThread [stack: 0x0000000041a8f000,0x0000000041b90000] [id=22170]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 150208K, used 2575K [0x0000000758600000, 0x0000000762da0000, 0x0000000800000000)
eden space 128768K, 2% used [0x0000000758600000,0x0000000758883de0,0x00000007603c0000)
from space 21440K, 0% used [0x00000007618b0000,0x00000007618b0000,0x0000000762da0000)
to space 21440K, 0% used [0x00000007603c0000,0x00000007603c0000,0x00000007618b0000)
ParOldGen total 343296K, used 0K [0x0000000609200000, 0x000000061e140000, 0x0000000758600000)
object space 343296K, 0% used [0x0000000609200000,0x0000000609200000,0x000000061e140000)
PSPermGen total 21248K, used 2588K [0x0000000604000000, 0x00000006054c0000, 0x0000000609200000)
object space 21248K, 12% used [0x0000000604000000,0x0000000604287270,0x00000006054c0000)
Card table byte_map: [0x00002aaab3d32000,0x00002aaab4d13000] byte_map_base: 0x00002aaab0d12000
Polling page: 0x00002aaaab838000
Code Cache [0x00002aaab0c72000, 0x00002aaab0ee2000, 0x00002aaab3c72000)
total_blobs=165 nmethods=0 adapters=133 free_code_cache=48774Kb largest_free_block=49944832
Compilation events (0 events):
No events
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (2 events):
Event: 0.149 Thread 0x00002aaaab079000 Threw 0x00000007586061a8 at /home/yunda.mly/taobaoJDK7/hotspot_latest/src/share/vm/prims/jni.cpp:3994
Event: 0.186 Thread 0x00002aaaab079000 Threw 0x0000000758657148 at /home/yunda.mly/taobaoJDK7/hotspot_latest/src/share/vm/prims/jvm.cpp:1210
Events (10 events):
Event: 0.188 loading class 0x00002aaacdf4fcd0
Event: 0.188 loading class 0x00002aaacdf4fcd0 done
Event: 0.188 loading class 0x00002aaacdf4fd60
Event: 0.188 loading class 0x00002aaacdf4fd60 done
Event: 0.188 loading class 0x00002aaaab1e55c0
Event: 0.188 loading class 0x00002aaaab1e55c0 done
Event: 0.189 loading class 0x00002aaaab1bc720
Event: 0.189 loading class 0x00002aaaab1bc720 done
Event: 0.189 loading class 0x00002aaaab1c2100
Event: 0.189 loading class 0x00002aaaab1c2100 done
Dynamic libraries:
00400000-00401000 r-xp 00000000 68:07 961027 /opt/taobao/install/jdk-1.7.0_10/bin/java
00600000-00601000 rw-p 00000000 68:07 961027 /opt/taobao/install/jdk-1.7.0_10/bin/java
40729000-4072a000 ---p 40729000 00:00 0
4072a000-4082a000 rw-p 4072a000 00:00 0
408ea000-408eb000 ---p 408ea000 00:00 0
408eb000-409eb000 rw-p 408eb000 00:00 0
40a93000-40a96000 ---p 40a93000 00:00 0
40a96000-40b94000 rw-p 40a96000 00:00 0
40fef000-40ff0000 ---p 40fef000 00:00 0
40ff0000-410f0000 rw-p 40ff0000 00:00 0
410f0000-410f1000 ---p 410f0000 00:00 0
410f1000-411f1000 rw-p 410f1000 00:00 0
411f1000-411f2000 ---p 411f1000 00:00 0
411f2000-412f2000 rw-p 411f2000 00:00 0
412f2000-412f3000 ---p 412f2000 00:00 0
412f3000-413f3000 rw-p 412f3000 00:00 0
413f3000-413f4000 ---p 413f3000 00:00 0
413f4000-414f4000 rw-p 413f4000 00:00 0
414f4000-414f5000 ---p 414f4000 00:00 0
414f5000-415f5000 rw-p 414f5000 00:00 0
4166d000-41670000 ---p 4166d000 00:00 0
41670000-4176e000 rw-p 41670000 00:00 0
4176e000-41771000 ---p 4176e000 00:00 0
41771000-4186f000 rw-p 41771000 00:00 0
4186f000-41872000 ---p 4186f000 00:00 0
41872000-41970000 rw-p 41872000 00:00 0
4198e000-41991000 ---p 4198e000 00:00 0
41991000-41a8f000 rw-p 41991000 00:00 0
41a8f000-41a90000 ---p 41a8f000 00:00 0
41a90000-41b90000 rw-p 41a90000 00:00 0
41bb5000-41bb8000 ---p 41bb5000 00:00 0
41bb8000-41cb6000 rw-p 41bb8000 00:00 0
41dcb000-41dce000 ---p 41dcb000 00:00 0
41dce000-41ecc000 rw-p 41dce000 00:00 0
41f0e000-41f0f000 ---p 41f0e000 00:00 0
41f0f000-4200f000 rw-p 41f0f000 00:00 0
4200f000-42010000 ---p 4200f000 00:00 0
42010000-42110000 rw-p 42010000 00:00 0
42110000-42111000 ---p 42110000 00:00 0
42111000-42211000 rw-p 42111000 00:00 0
42211000-42212000 ---p 42211000 00:00 0
42212000-42312000 rw-p 42212000 00:00 0
42312000-42313000 ---p 42312000 00:00 0
42313000-42413000 rw-p 42313000 00:00 0
42413000-42414000 ---p 42413000 00:00 0
42414000-42514000 rw-p 42414000 00:00 0
604000000-6054c0000 rw-p 604000000 00:00 0
6054c0000-609200000 rw-p 6054c0000 00:00 0
609200000-61e140000 rw-p 609200000 00:00 0
61e140000-758600000 rw-p 61e140000 00:00 0
758600000-762da0000 rw-p 758600000 00:00 0
762da0000-800000000 rw-p 762da0000 00:00 0
347e800000-347e81c000 r-xp 00000000 68:02 929560 /lib64/ld-2.5.so
347ea1b000-347ea1c000 r--p 0001b000 68:02 929560 /lib64/ld-2.5.so
347ea1c000-347ea1d000 rw-p 0001c000 68:02 929560 /lib64/ld-2.5.so
347ec00000-347ed4d000 r-xp 00000000 68:02 929561 /lib64/libc-2.5.so
347ed4d000-347ef4d000 ---p 0014d000 68:02 929561 /lib64/libc-2.5.so
347ef4d000-347ef51000 r--p 0014d000 68:02 929561 /lib64/libc-2.5.so
347ef51000-347ef52000 rw-p 00151000 68:02 929561 /lib64/libc-2.5.so
347ef52000-347ef57000 rw-p 347ef52000 00:00 0
347f000000-347f002000 r-xp 00000000 68:02 929562 /lib64/libdl-2.5.so
347f002000-347f202000 ---p 00002000 68:02 929562 /lib64/libdl-2.5.so
347f202000-347f203000 r--p 00002000 68:02 929562 /lib64/libdl-2.5.so
347f203000-347f204000 rw-p 00003000 68:02 929562 /lib64/libdl-2.5.so
347f400000-347f416000 r-xp 00000000 68:02 929566 /lib64/libpthread-2.5.so
347f416000-347f615000 ---p 00016000 68:02 929566 /lib64/libpthread-2.5.so
347f615000-347f616000 r--p 00015000 68:02 929566 /lib64/libpthread-2.5.so
347f616000-347f617000 rw-p 00016000 68:02 929566 /lib64/libpthread-2.5.so
347f617000-347f61b000 rw-p 347f617000 00:00 0
347f800000-347f882000 r-xp 00000000 68:02 929567 /lib64/libm-2.5.so
347f882000-347fa81000 ---p 00082000 68:02 929567 /lib64/libm-2.5.so
347fa81000-347fa82000 r--p 00081000 68:02 929567 /lib64/libm-2.5.so
347fa82000-347fa83000 rw-p 00082000 68:02 929567 /lib64/libm-2.5.so
347fc00000-347fc07000 r-xp 00000000 68:02 929568 /lib64/librt-2.5.so
347fc07000-347fe07000 ---p 00007000 68:02 929568 /lib64/librt-2.5.so
347fe07000-347fe08000 r--p 00007000 68:02 929568 /lib64/librt-2.5.so
347fe08000-347fe09000 rw-p 00008000 68:02 929568 /lib64/librt-2.5.so
2aaaab000000-2aaaab400000 rw-p 2aaaab000000 00:00 0
2aaaab400000-2aaaab40d000 r-xp 00000000 68:07 961206 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libverify.so
2aaaab40d000-2aaaab60c000 ---p 0000d000 68:07 961206 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libverify.so
2aaaab60c000-2aaaab60e000 rw-p 0000c000 68:07 961206 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libverify.so
2aaaab60e000-2aaaab637000 r-xp 00000000 68:07 961172 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libjava.so
2aaaab637000-2aaaab836000 ---p 00029000 68:07 961172 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libjava.so
2aaaab836000-2aaaab838000 rw-p 00028000 68:07 961172 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libjava.so
2aaaab838000-2aaaab839000 r--p 2aaaab838000 00:00 0
2aaaab839000-2aaaab83a000 rw-p 2aaaab839000 00:00 0
2aaaab83a000-2aaaab842000 rw-s 00000000 68:08 832835 /tmp/hsperfdata_yunda.mly/22148
2aaaab84c000-2aaaab856000 r-xp 00000000 68:02 928955 /lib64/libnss_files-2.5.so
2aaaab856000-2aaaaba55000 ---p 0000a000 68:02 928955 /lib64/libnss_files-2.5.so
2aaaaba55000-2aaaaba56000 r--p 00009000 68:02 928955 /lib64/libnss_files-2.5.so
2aaaaba56000-2aaaaba57000 rw-p 0000a000 68:02 928955 /lib64/libnss_files-2.5.so
2aaaaba57000-2aaab0a57000 rw-s 00000000 68:08 832837 /tmp/hsperfdata_yunda.mly/taobao/22148-exp
2aaab0a57000-2aaab0a71000 r-xp 00000000 68:07 961207 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libzip.so
2aaab0a71000-2aaab0c71000 ---p 0001a000 68:07 961207 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libzip.so
2aaab0c71000-2aaab0c72000 rw-p 0001a000 68:07 961207 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libzip.so
2aaab0c72000-2aaab0ee2000 rwxp 2aaab0c72000 00:00 0
2aaab0ee2000-2aaab3c72000 rw-p 2aaab0ee2000 00:00 0
2aaab3c72000-2aaab3c7c000 rw-p 2aaab3c72000 00:00 0
2aaab3c7c000-2aaab3d32000 rw-p 2aaab3c7c000 00:00 0
2aaab3d32000-2aaab3d3d000 rw-p 2aaab3d32000 00:00 0
2aaab3d3d000-2aaab3d5b000 rw-p 2aaab3d3d000 00:00 0
2aaab3d5b000-2aaab3e03000 rw-p 2aaab3d5b000 00:00 0
2aaab3e03000-2aaab47d5000 rw-p 2aaab3e03000 00:00 0
2aaab47d5000-2aaab4829000 rw-p 2aaab47d5000 00:00 0
2aaab4829000-2aaab4d12000 rw-p 2aaab4829000 00:00 0
2aaab4d12000-2aaab4dbb000 rw-p 2aaab4d12000 00:00 0
2aaab4dbb000-2aaab578d000 rw-p 2aaab4dbb000 00:00 0
2aaab578d000-2aaab5798000 rw-p 2aaab578d000 00:00 0
2aaab5798000-2aaab57b6000 rw-p 2aaab5798000 00:00 0
2aaab57b6000-2aaac55b6000 rw-p 2aaab57b6000 00:00 0
2aaac5800000-2aaac5c00000 rw-p 2aaac5800000 00:00 0
2aaac5db5000-2aaac9d35000 rw-p 2aaac5db5000 00:00 0
2aaaca000000-2aaacd000000 rw-p 2aaaca000000 00:00 0
2aaacd000000-2aaacd002000 r--s 00007000 68:07 961470 /opt/taobao/install/jdk-1.7.0_10/jre/lib/taobao-patch.jar
2aaacd002000-2aaacd1be000 r--s 039dc000 68:07 961456 /opt/taobao/install/jdk-1.7.0_10/jre/lib/rt.jar
2aaacd400000-2aaad1800000 rw-p 2aaacd400000 00:00 0
2aaad1800000-2aaad4dd6000 r--p 00000000 68:06 1720704 /usr/lib/locale/locale-archive
2aaad5000000-2aaad6400000 rw-p 2aaad5000000 00:00 0
2aaad6400000-2aaad6404000 r--s 0003c000 68:07 961338 /opt/taobao/install/jdk-1.7.0_10/jre/lib/ext/jai_codec.jar
2aaad6404000-2aaad6418000 r--s 001bd000 68:07 961339 /opt/taobao/install/jdk-1.7.0_10/jre/lib/ext/jai_core.jar
2aaad6418000-2aaad641a000 r--s 0000a000 68:07 961343 /opt/taobao/install/jdk-1.7.0_10/jre/lib/ext/mlibwrapper_jai.jar
2aaad641a000-2aaad642b000 r--s 00106000 68:07 961340 /opt/taobao/install/jdk-1.7.0_10/jre/lib/ext/jai_imageio.jar
2aaad642b000-2aaad642d000 r--s 0000f000 68:07 961336 /opt/taobao/install/jdk-1.7.0_10/jre/lib/ext/clibwrapper_jiio.jar
2aaad642d000-2aaad642e000 r-xp 00000000 68:09 45416777 /home/yunda.mly/test/jni/libDLL.so
2aaad642e000-2aaad662d000 ---p 00001000 68:09 45416777 /home/yunda.mly/test/jni/libDLL.so
2aaad662d000-2aaad662e000 rw-p 00000000 68:09 45416777 /home/yunda.mly/test/jni/libDLL.so
2aaad662e000-2aaad673c000 r-xp 00000000 68:07 961213 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libhsdis-amd64.so
2aaad673c000-2aaad693b000 ---p 0010e000 68:07 961213 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libhsdis-amd64.so
2aaad693b000-2aaad69bd000 rw-p 0010d000 68:07 961213 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libhsdis-amd64.so
2aaad69bd000-2aaad69c4000 rw-p 2aaad69bd000 00:00 0
2aaad6c00000-2aaad7000000 rw-p 2aaad6c00000 00:00 0
2ab555ec7000-2ab555ec9000 rw-p 2ab555ec7000 00:00 0
2ab555ec9000-2ab555f1c000 r-xp 00000000 68:07 961180 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libjemalloc.so.1
2ab555f1c000-2ab55611c000 ---p 00053000 68:07 961180 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libjemalloc.so.1
2ab55611c000-2ab55611e000 rw-p 00053000 68:07 961180 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libjemalloc.so.1
2ab55611e000-2ab556130000 rw-p 2ab55611e000 00:00 0
2ab556142000-2ab556143000 rw-p 2ab556142000 00:00 0
2ab556143000-2ab556159000 r-xp 00000000 68:07 961151 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/jli/libjli.so
2ab556159000-2ab556359000 ---p 00016000 68:07 961151 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/jli/libjli.so
2ab556359000-2ab55635a000 rw-p 00016000 68:07 961151 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/jli/libjli.so
2ab55635a000-2ab55635d000 rw-p 2ab55635a000 00:00 0
2ab556400000-2ab556c00000 rw-p 2ab556400000 00:00 0
2ab556c00000-2ab557aa6000 r-xp 00000000 68:07 961214 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libjvm.so
2ab557aa6000-2ab557ca5000 ---p 00ea6000 68:07 961214 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libjvm.so
2ab557ca5000-2ab557e7c000 rw-p 00ea5000 68:07 961214 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/server/libjvm.so
2ab557e7c000-2ab557f49000 rw-p 2ab557e7c000 00:00 0
2ab557f49000-2ab558199000 r-xp 00000000 68:07 961165 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libimf.so
2ab558199000-2ab558298000 ---p 00250000 68:07 961165 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libimf.so
2ab558298000-2ab5582dd000 rw-p 0024f000 68:07 961165 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libimf.so
2ab5582dd000-2ab5583f3000 r-xp 00000000 68:07 961203 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libsvml.so
2ab5583f3000-2ab5584f2000 ---p 00116000 68:07 961203 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libsvml.so
2ab5584f2000-2ab5584f3000 rw-p 00115000 68:07 961203 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libsvml.so
2ab5584f3000-2ab55852e000 r-xp 00000000 68:07 961167 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libintlc.so.5
2ab55852e000-2ab55862d000 ---p 0003b000 68:07 961167 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libintlc.so.5
2ab55862d000-2ab558630000 rw-p 0003a000 68:07 961167 /opt/taobao/install/jdk-1.7.0_10/jre/lib/amd64/libintlc.so.5
2ab558630000-2ab558631000 rw-p 2ab558630000 00:00 0
7fff4d642000-7fff4d657000 rw-p 7ffffffea000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]
VM Arguments:
java_command: testdll
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/home/yunda.mly/install/jdk1.8.0
SHELL=/bin/bash
Signal Handlers:
SIGSEGV: [libjvm.so+0xa7e380], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0xa7e380], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x70dd60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x70dd60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x70dd60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x70dd60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0xa5bfe0], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0xa5c2d0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0xa5c2d0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0xa5c2d0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0xa5c2d0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
--------------- S Y S T E M ---------------
OS:Red Hat Enterprise Linux Server release 5.4 (Tikanga)
uname:Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64
libc:glibc 2.5 NPTL 2.5
rlimit: STACK 10240k, CORE 0k, NPROC 266239, NOFILE 1024, AS infinity
load average:0.00 0.05 0.02
/proc/meminfo:
MemTotal: 32956236 kB
MemFree: 20028764 kB
Buffers: 2412740 kB
Cached: 5572476 kB
SwapCached: 0 kB
Active: 6844276 kB
Inactive: 2864264 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 32956236 kB
LowFree: 20028764 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 107764 kB
Writeback: 0 kB
AnonPages: 1722632 kB
Mapped: 147096 kB
Slab: 3144220 kB
PageTables: 17336 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 16478116 kB
Committed_AS: 4874456 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 263368 kB
VmallocChunk: 34359473223 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
CPU:total 16 (4 cores per cpu, 2 threads per core) family 6 model 44 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht, tsc, tscinvbit, tscinv
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.32
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 0
cpu cores : 4
apicid : 32
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.11
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 10
cpu cores : 4
apicid : 20
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.11
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 10
cpu cores : 4
apicid : 52
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.39
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 1
cpu cores : 4
apicid : 34
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.12
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 9
cpu cores : 4
apicid : 18
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 9
cpu cores : 4
apicid : 50
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 8
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 9
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 0
cpu cores : 4
apicid : 33
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 10
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 10
cpu cores : 4
apicid : 21
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.19
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 11
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 10
cpu cores : 4
apicid : 53
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.25
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 12
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 13
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 1
cpu cores : 4
apicid : 35
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.12
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 14
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 0
siblings : 8
core id : 9
cpu cores : 4
apicid : 19
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 15
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
stepping : 2
cpu MHz : 2400.164
cache size : 12288 KB
physical id : 1
siblings : 8
core id : 9
cpu cores : 4
apicid : 51
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr popcnt lahf_lm
bogomips : 4800.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
Memory: 4k page, physical 32956236k(20028764k free), swap 0k(0k free)
vm_info: OpenJDK (Taobao) 64-Bit Server VM (23.6-b04-internal) for linux-amd64 JRE (1.7.0), built on Dec 23 2012 10:09:34 by "yunda.mly" with gcc Intel(R) C++ g++ 4.1 mode
time: Tue Apr 2 16:19:45 2013
elapsed time: 0 seconds
/*
* =====================================================================================
*
* Filename: testdll.c
*
* Description: jni test
*
* Version: 1.0
* Created: 08/17/2012 11:32:11 AM
* Revision: none
* Compiler: gcc
*
* Author: yunda.mly (xiaomei), [email protected]
* Organization:
*
* =====================================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include"testdll.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
int i = 0;
JNIEXPORT jint JNICALL Java_testdll_get (JNIEnv * env, jclass jc)
{
return i;
}
JNIEXPORT void JNICALL Java_testdll_set (JNIEnv * env, jclass jc, jint j)
{
*(int *)i = 0;
i = j;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment