-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
7u60
-
x86
-
windows_7
FULL PRODUCT VERSION :
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
While signing pdf using ePass1000 with PKCS11 ,JVM getting cash
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try
ERROR MESSAGES/STACK TRACES THAT OCCUR :
--------------- T H R E A D ---------------
Current thread (0x017ec000): JavaThread "main" [_thread_in_native, id=4116, stack(0x01270000,0x012c0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x012be587, EBX=0x00000004, ECX=0x00000000, EDX=0x00000000
ESP=0x012be51c, EBP=0x00619598, ESI=0x006145cc, EDI=0x00000000
EIP=0x1000bc7a, EFLAGS=0x00010246
Top of Stack: (sp=0x012be51c)
0x012be51c: 012be587 012be6a4 00000001 012be71c
0x012be52c: 017ec130 0c302030 862a0806 0df78648
0x012be53c: 00050202 00001004 00000000 00000000
0x012be54c: 00000000 00000000 0c302030 862a0806
0x012be55c: 0df78648 00050502 00001004 00000000
0x012be56c: 00000000 00000000 37a00000 09302130
0x012be57c: 0e2b0506 051a0203 00140400 00000000
0x012be58c: 00000000 00000000 00000000 23000000
Instructions: (pc=0x1000bc7a)
0x1000bc5a: 8b 11 ff 52 0c 8d 4c 24 34 ba 22 00 00 00 e9 81
0x1000bc6a: 00 00 00 83 f8 06 75 18 8b 4e 04 8d 44 24 67 50
0x1000bc7a: 8b 11 ff 52 0c 8d 4c 24 58 ba 23 00 00 00 eb 64
0x1000bc8a: 83 f8 40 75 1b 8b 4e 04 8d 84 24 8f 00 00 00 50
Register to memory mapping:
EAX=0x012be587 is pointing into the stack for thread: 0x017ec000
EBX=0x00000004 is an unknown value
ECX=0x00000000 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x012be51c is pointing into the stack for thread: 0x017ec000
EBP=0x00619598 is an unknown value
ESI=0x006145cc is an unknown value
EDI=0x00000000 is an unknown value
Stack: [0x01270000,0x012c0000], sp=0x012be51c, free space=313k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [EP1PK111.DLL+0xbc7a]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.security.pkcs11.wrapper.PKCS11.C_SignFinal(JI)[B+0
j sun.security.pkcs11.P11Signature.engineSign()[B+46
j java.security.Signature$Delegate.engineSign()[B+8
j java.security.Signature.sign()[B+9
j com.itextpdf.text.pdf.PdfPKCS7.getEncodedPKCS1()[B+23
j com.itextpdf.text.pdf.PdfSigGenericPKCS.setSignInfo(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;[Ljava/security/cert/CRL;)V+126
j com.itextpdf.text.pdf.PdfSignatureAppearance.preClose(Ljava/util/HashMap;)V+584
j com.itextpdf.text.pdf.PdfSignatureAppearance.preClose()V+2
j com.itextpdf.text.pdf.PdfStamper.close()V+23
j in.gov.mizoram.digitalsign.DTest.main([Ljava/lang/String;)V+301
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x03f77800 JavaThread "TimerQueue" daemon [_thread_blocked, id=3540, stack(0x05de0000,0x05e30000)]
0x03f00400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1736, stack(0x04460000,0x044b0000)]
0x03efcc00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4872, stack(0x04360000,0x043b0000)]
0x01732c00 JavaThread "Service Thread" daemon [_thread_blocked, id=5076, stack(0x03be0000,0x03c30000)]
0x01731000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=6036, stack(0x03d90000,0x03de0000)]
0x01730000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5120, stack(0x03b90000,0x03be0000)]
0x0172cc00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6112, stack(0x03a10000,0x03a60000)]
0x016bf800 JavaThread "Finalizer" daemon [_thread_blocked, id=5676, stack(0x03c70000,0x03cc0000)]
0x016be000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4856, stack(0x03b00000,0x03b50000)]
=>0x017ec000 JavaThread "main" [_thread_in_native, id=4116, stack(0x01270000,0x012c0000)]
Other Threads:
0x016bc000 VMThread [stack: 0x01920000,0x01970000] [id=5108]
0x01759c00 WatcherThread [stack: 0x03d00000,0x03d50000] [id=5868]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 4469K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 89% used [0x23a00000, 0x23ddd7e0, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 4647K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 42% used [0x28f50000, 0x293d9ff8, 0x293da000, 0x29a00000)
compacting perm gen total 12288K, used 3293K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 26% used [0x33a00000, 0x33d37510, 0x33d37600, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Card table byte_map: [0x00550000,0x00600000] byte_map_base: 0x00433000
Polling page: 0x00170000
Code Cache [0x01a10000, 0x01b20000, 0x03a10000)
total_blobs=561 nmethods=295 adapters=203 free_code_cache=31695Kb largest_free_block=32456320
Compilation events (10 events):
Event: 10.708 Thread 0x01731000 294 java.lang.String::indexOf (7 bytes)
Event: 10.708 Thread 0x01731000 nmethod 294 0x01b1b748 code [0x01b1b850, 0x01b1b91c]
Event: 10.709 Thread 0x01731000 295 java.util.HashMap$Entry::getValue (5 bytes)
Event: 10.709 Thread 0x01731000 nmethod 295 0x01b1ba48 code [0x01b1bb40, 0x01b1bbc0]
Event: 10.711 Thread 0x01731000 296 java.util.LinkedHashMap::access$100 (5 bytes)
Event: 10.712 Thread 0x01731000 nmethod 296 0x01b1bc08 code [0x01b1bd00, 0x01b1bd70]
Event: 10.712 Thread 0x01731000 297 java.util.LinkedHashMap$Entry::<init> (10 bytes)
Event: 10.712 Thread 0x01731000 nmethod 297 0x01b1bdc8 code [0x01b1bec0, 0x01b1bf80]
Event: 10.713 Thread 0x01731000 298 java.net.URL::getRef (5 bytes)
Event: 10.714 Thread 0x01731000 nmethod 298 0x01b1bfc8 code [0x01b1c0c0, 0x01b1c140]
GC Heap History (8 events):
Event: 2.473 GC heap before
{Heap before GC invocations=0 (full 0):
def new generation total 4928K, used 4416K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 0K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 0% used [0x28f50000, 0x28f50000, 0x28f50200, 0x29a00000)
compacting perm gen total 12288K, used 1324K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 10% used [0x33a00000, 0x33b4b188, 0x33b4b200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 2.492 GC heap after
Heap after GC invocations=1 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 906K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 8% used [0x28f50000, 0x290328b0, 0x29032a00, 0x29a00000)
compacting perm gen total 12288K, used 1324K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 10% used [0x33a00000, 0x33b4b188, 0x33b4b200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Event: 10.040 GC heap before
{Heap before GC invocations=1 (full 0):
def new generation total 4928K, used 4928K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 906K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 8% used [0x28f50000, 0x290328b0, 0x29032a00, 0x29a00000)
compacting perm gen total 12288K, used 2452K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 19% used [0x33a00000, 0x33c650c8, 0x33c65200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 10.063 GC heap after
Heap after GC invocations=2 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 2249K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 20% used [0x28f50000, 0x291826b0, 0x29182800, 0x29a00000)
compacting perm gen total 12288K, used 2452K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 19% used [0x33a00000, 0x33c650c8, 0x33c65200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Event: 10.363 GC heap before
{Heap before GC invocations=2 (full 0):
def new generation total 4928K, used 4928K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 2249K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 20% used [0x28f50000, 0x291826b0, 0x29182800, 0x29a00000)
compacting perm gen total 12288K, used 2933K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 23% used [0x33a00000, 0x33cdd5d0, 0x33cdd600, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 10.383 GC heap after
Heap after GC invocations=3 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 3974K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 36% used [0x28f50000, 0x29331b18, 0x29331c00, 0x29a00000)
compacting perm gen total 12288K, used 2933K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 23% used [0x33a00000, 0x33cdd5d0, 0x33cdd600, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Event: 10.603 GC heap before
{Heap before GC invocations=3 (full 0):
def new generation total 4928K, used 4928K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 3974K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 36% used [0x28f50000, 0x29331b18, 0x29331c00, 0x29a00000)
compacting perm gen total 12288K, used 3243K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 26% used [0x33a00000, 0x33d2acc8, 0x33d2ae00, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 10.615 GC heap after
Heap after GC invocations=4 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 4647K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 42% used [0x28f50000, 0x293d9ff8, 0x293da000, 0x29a00000)
compacting perm gen total 12288K, used 3243K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 26% used [0x33a00000, 0x33d2acc8, 0x33d2ae00, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Deoptimization events (0 events):
No events
Internal exceptions (10 events):
Event: 10.569 Thread 0x017ec000 Threw 0x23c9ec38 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.625 Thread 0x017ec000 Threw 0x23aecf18 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.678 Thread 0x017ec000 Threw 0x23d53218 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.679 Thread 0x017ec000 Threw 0x23d56f00 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.680 Thread 0x017ec000 Threw 0x23d5a0e0 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.681 Thread 0x017ec000 Threw 0x23d5c568 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.683 Thread 0x017ec000 Threw 0x23d61ff0 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.695 Thread 0x017ec000 Threw 0x23d770c0 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.702 Thread 0x017ec000 Threw 0x23d8a728 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.713 Thread 0x017ec000 Threw 0x23dbdc18 at C:\re\jdk7u60\1081\hotspot\src\share\vm\classfile\systemDictionary.cpp:185
Events (10 events):
Event: 10.713 loading class 0x05e62160
Event: 10.713 loading class 0x05e62160 done
Event: 10.713 loading class 0x05e62160
Event: 10.713 loading class 0x05e62160 done
Event: 10.714 loading class 0x03e63fe0
Event: 10.714 loading class 0x03e63fe0 done
Event: 10.716 loading class 0x390e6730
Event: 10.716 loading class 0x390e6730 done
Event: 10.718 loading class 0x391829d8
Event: 10.718 loading class 0x391829d8 done
Dynamic libraries:
0x001c0000 - 0x001ef000 C:\Program Files\Java\jdk1.7.0_60\bin\javaw.exe
0x77cd0000 - 0x77e0c000 C:\Windows\SYSTEM32\ntdll.dll
0x77260000 - 0x77334000 C:\Windows\system32\kernel32.dll
0x76020000 - 0x7606b000 C:\Windows\system32\KERNELBASE.dll
0x77c30000 - 0x77cd0000 C:\Windows\system32\ADVAPI32.dll
0x77150000 - 0x771fc000 C:\Windows\system32\msvcrt.dll
0x77350000 - 0x77369000 C:\Windows\SYSTEM32\sechost.dll
0x77b50000 - 0x77bf1000 C:\Windows\system32\RPCRT4.dll
0x76370000 - 0x76439000 C:\Windows\system32\USER32.dll
0x76100000 - 0x7614e000 C:\Windows\system32\GDI32.dll
0x77340000 - 0x7734a000 C:\Windows\system32\LPK.dll
0x77940000 - 0x779dd000 C:\Windows\system32\USP10.dll
0x749f0000 - 0x74b8e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x76150000 - 0x761a7000 C:\Windows\system32\SHLWAPI.dll
0x77130000 - 0x7714f000 C:\Windows\system32\IMM32.DLL
0x77e30000 - 0x77efc000 C:\Windows\system32\MSCTF.dll
0x65510000 - 0x655cf000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\msvcr100.dll
0x63c00000 - 0x63f88000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\client\jvm.dll
0x6f390000 - 0x6f397000 C:\Windows\system32\WSOCK32.dll
0x77900000 - 0x77935000 C:\Windows\system32\WS2_32.dll
0x77e10000 - 0x77e16000 C:\Windows\system32\NSI.dll
0x750c0000 - 0x750f2000 C:\Windows\system32\WINMM.dll
0x77090000 - 0x77095000 C:\Windows\system32\PSAPI.DLL
0x6e050000 - 0x6e05c000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\verify.dll
0x6c240000 - 0x6c260000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\java.dll
0x6a0b0000 - 0x6a0c3000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\zip.dll
0x6c230000 - 0x6c23f000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\j2pkcs11.dll
0x10000000 - 0x1006c000 c:\WINDOWS\system32\EP1PK111.DLL
0x733e0000 - 0x73403000 C:\Windows\system32\WinSCard.dll
0x01250000 - 0x01263000 C:\Windows\system32\EP1KDL20.dll
0x751f0000 - 0x751f9000 C:\Windows\system32\VERSION.dll
0x77760000 - 0x778fd000 C:\Windows\system32\SETUPAPI.dll
0x75f90000 - 0x75fb7000 C:\Windows\system32\CFGMGR32.dll
0x770a0000 - 0x7712f000 C:\Windows\system32\OLEAUT32.dll
0x77600000 - 0x7775c000 C:\Windows\system32\ole32.dll
0x76000000 - 0x76012000 C:\Windows\system32\DEVOBJ.dll
0x6a090000 - 0x6a0b0000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\sunec.dll
0x6a080000 - 0x6a089000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\sunmscapi.dll
0x75e70000 - 0x75f8e000 C:\Windows\system32\CRYPT32.dll
0x75d90000 - 0x75d9c000 C:\Windows\system32\MSASN1.dll
0x641d0000 - 0x64313000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\awt.dll
0x74560000 - 0x74573000 C:\Windows\system32\DWMAPI.DLL
0x74880000 - 0x748c0000 C:\Windows\system32\uxtheme.dll
0x75ca0000 - 0x75cac000 C:\Windows\system32\CRYPTBASE.dll
0x76440000 - 0x7708a000 C:\Windows\system32\SHELL32.dll
0x65710000 - 0x65749000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\fontmanager.dll
0x659b0000 - 0x659c4000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\net.dll
0x75790000 - 0x757cc000 C:\Windows\system32\mswsock.dll
0x75780000 - 0x75786000 C:\Windows\System32\wship6.dll
0x69ec0000 - 0x69ecf000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\nio.dll
0x656e0000 - 0x65710000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\t2k.dll
0x77370000 - 0x773f3000 C:\Windows\system32\CLBCatQ.DLL
0x74340000 - 0x74470000 C:\Windows\system32\WindowsCodecs.dll
0x75c50000 - 0x75c9c000 C:\Windows\system32\apphelp.dll
0x6bc20000 - 0x6bc32000 C:\Program Files\Common Files\TortoiseOverlays\TortoiseOverlays.dll
0x6bc00000 - 0x6bc14000 C:\Program Files\TortoiseSVN\bin\TortoiseStub32.dll
0x6bb90000 - 0x6bc00000 C:\Program Files\TortoiseSVN\bin\TortoiseSVN32.dll
0x761b0000 - 0x76367000 C:\Windows\system32\WININET.dll
0x75fc0000 - 0x75fc4000 C:\Windows\system32\api-ms-win-downlevel-user32-l1-1-0.dll
0x75fd0000 - 0x75fd5000 C:\Windows\system32\api-ms-win-downlevel-advapi32-l1-1-0.dll
0x76070000 - 0x76074000 C:\Windows\system32\api-ms-win-downlevel-shlwapi-l1-1-0.dll
0x75ff0000 - 0x75ff4000 C:\Windows\system32\api-ms-win-downlevel-version-l1-1-0.dll
0x75fe0000 - 0x75fe3000 C:\Windows\system32\api-ms-win-downlevel-normaliz-l1-1-0.dll
0x77e20000 - 0x77e23000 C:\Windows\system32\normaliz.DLL
0x77400000 - 0x775f8000 C:\Windows\system32\iertutil.dll
0x6b820000 - 0x6bb85000 C:\Program Files\TortoiseSVN\bin\libsvn_tsvn32.dll
0x6b7f0000 - 0x6b817000 C:\Program Files\TortoiseSVN\bin\libapr_tsvn32.dll
0x6b710000 - 0x6b7e6000 C:\Windows\system32\MSVCR110.dll
0x6b6d0000 - 0x6b708000 C:\Program Files\TortoiseSVN\bin\libaprutil_tsvn32.dll
0x779e0000 - 0x77a25000 C:\Windows\system32\WLDAP32.dll
0x6b6c0000 - 0x6b6cd000 C:\Program Files\TortoiseSVN\bin\intl3_tsvn32.dll
0x6b6a0000 - 0x6b6b3000 C:\Program Files\TortoiseSVN\bin\libsasl32.dll
0x75b00000 - 0x75b08000 C:\Windows\system32\Secur32.dll
0x75c30000 - 0x75c4b000 C:\Windows\system32\SSPICLI.DLL
0x6b610000 - 0x6b695000 C:\Windows\system32\MSVCP110.dll
0x6b5d0000 - 0x6b601000 C:\Windows\system32\EhStorShell.dll
0x748c0000 - 0x749b5000 C:\Windows\system32\PROPSYS.dll
0x6adb0000 - 0x6b1ba000 C:\PROGRA~1\MICROS~1\Office14\GROOVEEX.DLL
0x6d9b0000 - 0x6da53000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCR90.dll
0x6b530000 - 0x6b5be000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCP90.dll
0x6b500000 - 0x6b52b000 C:\Windows\WinSxS\x86_microsoft.vc90.atl_1fc8b3b9a1e18e3b_9.0.30729.4148_none_51ca66a2bbe76806\ATL90.DLL
0x6a990000 - 0x6adaa000 C:\PROGRA~1\COMMON~1\MICROS~1\OFFICE14\Cultures\office.odf
0x6a120000 - 0x6a985000 C:\PROGRA~1\MICROS~1\Office14\1033\GrooveIntlResource.dll
0x6bdf0000 - 0x6bedb000 C:\Windows\system32\dbghelp.dll
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8
java_command: in.gov.mizoram.digitalsign.DTest
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_60
PATH=C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Rao Data\softwares\apache-maven-3.0.3\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\VisualSVN Server\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Aladdin\eToken\PKIClient\x32;C:\Program Files\Java\jdk1.7.0_60\bin;D:\Rao Data\softwares\eclipse-jee-juno-SR2-win32\eclipse;
USERNAME=Interlace
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 5, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7601 Service Pack 1
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht, tsc, tscinvbit
Memory: 4k page, physical 2937356k(1199208k free), swap 5872956k(3961752k free)
vm_info: Java HotSpot(TM) Client VM (24.60-b09) for windows-x86 JRE (1.7.0_60-b19), built on May 7 2014 13:09:52 by "java_re" with unknown MS VC++:1600
time: Tue Jul 29 11:48:02 2014
elapsed time: 10 seconds
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
String pkcs11config;
pkcs11config = "name = ePass1000";
pkcs11config += "\nlibrary = c:\\WINDOWS\\system32\\EP1PK111.DLL";
InputStream confStream = new ByteArrayInputStream(pkcs11config.getBytes());
SunPKCS11 sunpkcs11 = new SunPKCS11(confStream);
Security.addProvider(sunpkcs11);
char [] password={'s','c','s','1','2','3','4','5'};
try {
KeyStore.Builder keystoreBuilder = KeyStore.Builder.newInstance("PKCS11", sunpkcs11,
new KeyStore.CallbackHandlerProtection(new MyCallBack()));
KeyStore ks = keystoreBuilder.getKeyStore();
//ks.load(null, password);
Enumeration<String> e=ks.aliases();
String alias=e.nextElement();
System.out.println(ks.containsAlias(alias));
try{
X509Certificate certificate = (X509Certificate) ks.getCertificate(alias);
System.out.println(certificate.getIssuerDN().getName());
PrivateKey key = (PrivateKey) ks.getKey(alias,null);
Certificate[] chain = ks.getCertificateChain(alias);
PdfReader reader = new PdfReader("test.pdf");
FileOutputStream outputStream=new FileOutputStream("ddd3.pdf");
PdfStamper stamper = PdfStamper.createSignature(reader, outputStream, '\0', null, true);
PdfSignatureAppearance appearance = stamper.getSignatureAppearance();
appearance.setCrypto(key, chain, null,PdfSignatureAppearance.SELF_SIGNED);
appearance.setReason("NA");
appearance.setLocation("AIZAWL");
appearance.setVisibleSignature(new Rectangle(430, 120, 520, 175), 1,"first");
stamper.close();
//System.out.println(alias);
}
catch(Exception e3){
e3.printStackTrace();
}
for (Provider p1 : Security.getProviders()) {
if (p1.getName().contains("SunPKCS11")) {
Security.removeProvider(p1.getName());
}
}
//}
---------- END SOURCE ----------
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
While signing pdf using ePass1000 with PKCS11 ,JVM getting cash
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try
ERROR MESSAGES/STACK TRACES THAT OCCUR :
--------------- T H R E A D ---------------
Current thread (0x017ec000): JavaThread "main" [_thread_in_native, id=4116, stack(0x01270000,0x012c0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x012be587, EBX=0x00000004, ECX=0x00000000, EDX=0x00000000
ESP=0x012be51c, EBP=0x00619598, ESI=0x006145cc, EDI=0x00000000
EIP=0x1000bc7a, EFLAGS=0x00010246
Top of Stack: (sp=0x012be51c)
0x012be51c: 012be587 012be6a4 00000001 012be71c
0x012be52c: 017ec130 0c302030 862a0806 0df78648
0x012be53c: 00050202 00001004 00000000 00000000
0x012be54c: 00000000 00000000 0c302030 862a0806
0x012be55c: 0df78648 00050502 00001004 00000000
0x012be56c: 00000000 00000000 37a00000 09302130
0x012be57c: 0e2b0506 051a0203 00140400 00000000
0x012be58c: 00000000 00000000 00000000 23000000
Instructions: (pc=0x1000bc7a)
0x1000bc5a: 8b 11 ff 52 0c 8d 4c 24 34 ba 22 00 00 00 e9 81
0x1000bc6a: 00 00 00 83 f8 06 75 18 8b 4e 04 8d 44 24 67 50
0x1000bc7a: 8b 11 ff 52 0c 8d 4c 24 58 ba 23 00 00 00 eb 64
0x1000bc8a: 83 f8 40 75 1b 8b 4e 04 8d 84 24 8f 00 00 00 50
Register to memory mapping:
EAX=0x012be587 is pointing into the stack for thread: 0x017ec000
EBX=0x00000004 is an unknown value
ECX=0x00000000 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x012be51c is pointing into the stack for thread: 0x017ec000
EBP=0x00619598 is an unknown value
ESI=0x006145cc is an unknown value
EDI=0x00000000 is an unknown value
Stack: [0x01270000,0x012c0000], sp=0x012be51c, free space=313k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [EP1PK111.DLL+0xbc7a]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.security.pkcs11.wrapper.PKCS11.C_SignFinal(JI)[B+0
j sun.security.pkcs11.P11Signature.engineSign()[B+46
j java.security.Signature$Delegate.engineSign()[B+8
j java.security.Signature.sign()[B+9
j com.itextpdf.text.pdf.PdfPKCS7.getEncodedPKCS1()[B+23
j com.itextpdf.text.pdf.PdfSigGenericPKCS.setSignInfo(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;[Ljava/security/cert/CRL;)V+126
j com.itextpdf.text.pdf.PdfSignatureAppearance.preClose(Ljava/util/HashMap;)V+584
j com.itextpdf.text.pdf.PdfSignatureAppearance.preClose()V+2
j com.itextpdf.text.pdf.PdfStamper.close()V+23
j in.gov.mizoram.digitalsign.DTest.main([Ljava/lang/String;)V+301
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x03f77800 JavaThread "TimerQueue" daemon [_thread_blocked, id=3540, stack(0x05de0000,0x05e30000)]
0x03f00400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1736, stack(0x04460000,0x044b0000)]
0x03efcc00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4872, stack(0x04360000,0x043b0000)]
0x01732c00 JavaThread "Service Thread" daemon [_thread_blocked, id=5076, stack(0x03be0000,0x03c30000)]
0x01731000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=6036, stack(0x03d90000,0x03de0000)]
0x01730000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5120, stack(0x03b90000,0x03be0000)]
0x0172cc00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6112, stack(0x03a10000,0x03a60000)]
0x016bf800 JavaThread "Finalizer" daemon [_thread_blocked, id=5676, stack(0x03c70000,0x03cc0000)]
0x016be000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4856, stack(0x03b00000,0x03b50000)]
=>0x017ec000 JavaThread "main" [_thread_in_native, id=4116, stack(0x01270000,0x012c0000)]
Other Threads:
0x016bc000 VMThread [stack: 0x01920000,0x01970000] [id=5108]
0x01759c00 WatcherThread [stack: 0x03d00000,0x03d50000] [id=5868]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 4469K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 89% used [0x23a00000, 0x23ddd7e0, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 4647K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 42% used [0x28f50000, 0x293d9ff8, 0x293da000, 0x29a00000)
compacting perm gen total 12288K, used 3293K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 26% used [0x33a00000, 0x33d37510, 0x33d37600, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Card table byte_map: [0x00550000,0x00600000] byte_map_base: 0x00433000
Polling page: 0x00170000
Code Cache [0x01a10000, 0x01b20000, 0x03a10000)
total_blobs=561 nmethods=295 adapters=203 free_code_cache=31695Kb largest_free_block=32456320
Compilation events (10 events):
Event: 10.708 Thread 0x01731000 294 java.lang.String::indexOf (7 bytes)
Event: 10.708 Thread 0x01731000 nmethod 294 0x01b1b748 code [0x01b1b850, 0x01b1b91c]
Event: 10.709 Thread 0x01731000 295 java.util.HashMap$Entry::getValue (5 bytes)
Event: 10.709 Thread 0x01731000 nmethod 295 0x01b1ba48 code [0x01b1bb40, 0x01b1bbc0]
Event: 10.711 Thread 0x01731000 296 java.util.LinkedHashMap::access$100 (5 bytes)
Event: 10.712 Thread 0x01731000 nmethod 296 0x01b1bc08 code [0x01b1bd00, 0x01b1bd70]
Event: 10.712 Thread 0x01731000 297 java.util.LinkedHashMap$Entry::<init> (10 bytes)
Event: 10.712 Thread 0x01731000 nmethod 297 0x01b1bdc8 code [0x01b1bec0, 0x01b1bf80]
Event: 10.713 Thread 0x01731000 298 java.net.URL::getRef (5 bytes)
Event: 10.714 Thread 0x01731000 nmethod 298 0x01b1bfc8 code [0x01b1c0c0, 0x01b1c140]
GC Heap History (8 events):
Event: 2.473 GC heap before
{Heap before GC invocations=0 (full 0):
def new generation total 4928K, used 4416K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 0K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 0% used [0x28f50000, 0x28f50000, 0x28f50200, 0x29a00000)
compacting perm gen total 12288K, used 1324K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 10% used [0x33a00000, 0x33b4b188, 0x33b4b200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 2.492 GC heap after
Heap after GC invocations=1 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 906K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 8% used [0x28f50000, 0x290328b0, 0x29032a00, 0x29a00000)
compacting perm gen total 12288K, used 1324K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 10% used [0x33a00000, 0x33b4b188, 0x33b4b200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Event: 10.040 GC heap before
{Heap before GC invocations=1 (full 0):
def new generation total 4928K, used 4928K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 906K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 8% used [0x28f50000, 0x290328b0, 0x29032a00, 0x29a00000)
compacting perm gen total 12288K, used 2452K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 19% used [0x33a00000, 0x33c650c8, 0x33c65200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 10.063 GC heap after
Heap after GC invocations=2 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 2249K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 20% used [0x28f50000, 0x291826b0, 0x29182800, 0x29a00000)
compacting perm gen total 12288K, used 2452K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 19% used [0x33a00000, 0x33c650c8, 0x33c65200, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Event: 10.363 GC heap before
{Heap before GC invocations=2 (full 0):
def new generation total 4928K, used 4928K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 2249K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 20% used [0x28f50000, 0x291826b0, 0x29182800, 0x29a00000)
compacting perm gen total 12288K, used 2933K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 23% used [0x33a00000, 0x33cdd5d0, 0x33cdd600, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 10.383 GC heap after
Heap after GC invocations=3 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 3974K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 36% used [0x28f50000, 0x29331b18, 0x29331c00, 0x29a00000)
compacting perm gen total 12288K, used 2933K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 23% used [0x33a00000, 0x33cdd5d0, 0x33cdd600, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Event: 10.603 GC heap before
{Heap before GC invocations=3 (full 0):
def new generation total 4928K, used 4928K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 100% used [0x23a00000, 0x23e50000, 0x23e50000)
from space 512K, 100% used [0x23ed0000, 0x23f50000, 0x23f50000)
to space 512K, 0% used [0x23e50000, 0x23e50000, 0x23ed0000)
tenured generation total 10944K, used 3974K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 36% used [0x28f50000, 0x29331b18, 0x29331c00, 0x29a00000)
compacting perm gen total 12288K, used 3243K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 26% used [0x33a00000, 0x33d2acc8, 0x33d2ae00, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
Event: 10.615 GC heap after
Heap after GC invocations=4 (full 0):
def new generation total 4928K, used 512K [0x23a00000, 0x23f50000, 0x28f50000)
eden space 4416K, 0% used [0x23a00000, 0x23a00000, 0x23e50000)
from space 512K, 100% used [0x23e50000, 0x23ed0000, 0x23ed0000)
to space 512K, 0% used [0x23ed0000, 0x23ed0000, 0x23f50000)
tenured generation total 10944K, used 4647K [0x28f50000, 0x29a00000, 0x33a00000)
the space 10944K, 42% used [0x28f50000, 0x293d9ff8, 0x293da000, 0x29a00000)
compacting perm gen total 12288K, used 3243K [0x33a00000, 0x34600000, 0x37a00000)
the space 12288K, 26% used [0x33a00000, 0x33d2acc8, 0x33d2ae00, 0x34600000)
ro space 10240K, 44% used [0x37a00000, 0x37e7a7a8, 0x37e7a800, 0x38400000)
rw space 12288K, 52% used [0x38400000, 0x38a51db0, 0x38a51e00, 0x39000000)
}
Deoptimization events (0 events):
No events
Internal exceptions (10 events):
Event: 10.569 Thread 0x017ec000 Threw 0x23c9ec38 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.625 Thread 0x017ec000 Threw 0x23aecf18 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.678 Thread 0x017ec000 Threw 0x23d53218 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.679 Thread 0x017ec000 Threw 0x23d56f00 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.680 Thread 0x017ec000 Threw 0x23d5a0e0 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.681 Thread 0x017ec000 Threw 0x23d5c568 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.683 Thread 0x017ec000 Threw 0x23d61ff0 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.695 Thread 0x017ec000 Threw 0x23d770c0 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.702 Thread 0x017ec000 Threw 0x23d8a728 at C:\re\jdk7u60\1081\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 10.713 Thread 0x017ec000 Threw 0x23dbdc18 at C:\re\jdk7u60\1081\hotspot\src\share\vm\classfile\systemDictionary.cpp:185
Events (10 events):
Event: 10.713 loading class 0x05e62160
Event: 10.713 loading class 0x05e62160 done
Event: 10.713 loading class 0x05e62160
Event: 10.713 loading class 0x05e62160 done
Event: 10.714 loading class 0x03e63fe0
Event: 10.714 loading class 0x03e63fe0 done
Event: 10.716 loading class 0x390e6730
Event: 10.716 loading class 0x390e6730 done
Event: 10.718 loading class 0x391829d8
Event: 10.718 loading class 0x391829d8 done
Dynamic libraries:
0x001c0000 - 0x001ef000 C:\Program Files\Java\jdk1.7.0_60\bin\javaw.exe
0x77cd0000 - 0x77e0c000 C:\Windows\SYSTEM32\ntdll.dll
0x77260000 - 0x77334000 C:\Windows\system32\kernel32.dll
0x76020000 - 0x7606b000 C:\Windows\system32\KERNELBASE.dll
0x77c30000 - 0x77cd0000 C:\Windows\system32\ADVAPI32.dll
0x77150000 - 0x771fc000 C:\Windows\system32\msvcrt.dll
0x77350000 - 0x77369000 C:\Windows\SYSTEM32\sechost.dll
0x77b50000 - 0x77bf1000 C:\Windows\system32\RPCRT4.dll
0x76370000 - 0x76439000 C:\Windows\system32\USER32.dll
0x76100000 - 0x7614e000 C:\Windows\system32\GDI32.dll
0x77340000 - 0x7734a000 C:\Windows\system32\LPK.dll
0x77940000 - 0x779dd000 C:\Windows\system32\USP10.dll
0x749f0000 - 0x74b8e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x76150000 - 0x761a7000 C:\Windows\system32\SHLWAPI.dll
0x77130000 - 0x7714f000 C:\Windows\system32\IMM32.DLL
0x77e30000 - 0x77efc000 C:\Windows\system32\MSCTF.dll
0x65510000 - 0x655cf000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\msvcr100.dll
0x63c00000 - 0x63f88000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\client\jvm.dll
0x6f390000 - 0x6f397000 C:\Windows\system32\WSOCK32.dll
0x77900000 - 0x77935000 C:\Windows\system32\WS2_32.dll
0x77e10000 - 0x77e16000 C:\Windows\system32\NSI.dll
0x750c0000 - 0x750f2000 C:\Windows\system32\WINMM.dll
0x77090000 - 0x77095000 C:\Windows\system32\PSAPI.DLL
0x6e050000 - 0x6e05c000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\verify.dll
0x6c240000 - 0x6c260000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\java.dll
0x6a0b0000 - 0x6a0c3000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\zip.dll
0x6c230000 - 0x6c23f000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\j2pkcs11.dll
0x10000000 - 0x1006c000 c:\WINDOWS\system32\EP1PK111.DLL
0x733e0000 - 0x73403000 C:\Windows\system32\WinSCard.dll
0x01250000 - 0x01263000 C:\Windows\system32\EP1KDL20.dll
0x751f0000 - 0x751f9000 C:\Windows\system32\VERSION.dll
0x77760000 - 0x778fd000 C:\Windows\system32\SETUPAPI.dll
0x75f90000 - 0x75fb7000 C:\Windows\system32\CFGMGR32.dll
0x770a0000 - 0x7712f000 C:\Windows\system32\OLEAUT32.dll
0x77600000 - 0x7775c000 C:\Windows\system32\ole32.dll
0x76000000 - 0x76012000 C:\Windows\system32\DEVOBJ.dll
0x6a090000 - 0x6a0b0000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\sunec.dll
0x6a080000 - 0x6a089000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\sunmscapi.dll
0x75e70000 - 0x75f8e000 C:\Windows\system32\CRYPT32.dll
0x75d90000 - 0x75d9c000 C:\Windows\system32\MSASN1.dll
0x641d0000 - 0x64313000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\awt.dll
0x74560000 - 0x74573000 C:\Windows\system32\DWMAPI.DLL
0x74880000 - 0x748c0000 C:\Windows\system32\uxtheme.dll
0x75ca0000 - 0x75cac000 C:\Windows\system32\CRYPTBASE.dll
0x76440000 - 0x7708a000 C:\Windows\system32\SHELL32.dll
0x65710000 - 0x65749000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\fontmanager.dll
0x659b0000 - 0x659c4000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\net.dll
0x75790000 - 0x757cc000 C:\Windows\system32\mswsock.dll
0x75780000 - 0x75786000 C:\Windows\System32\wship6.dll
0x69ec0000 - 0x69ecf000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\nio.dll
0x656e0000 - 0x65710000 C:\Program Files\Java\jdk1.7.0_60\jre\bin\t2k.dll
0x77370000 - 0x773f3000 C:\Windows\system32\CLBCatQ.DLL
0x74340000 - 0x74470000 C:\Windows\system32\WindowsCodecs.dll
0x75c50000 - 0x75c9c000 C:\Windows\system32\apphelp.dll
0x6bc20000 - 0x6bc32000 C:\Program Files\Common Files\TortoiseOverlays\TortoiseOverlays.dll
0x6bc00000 - 0x6bc14000 C:\Program Files\TortoiseSVN\bin\TortoiseStub32.dll
0x6bb90000 - 0x6bc00000 C:\Program Files\TortoiseSVN\bin\TortoiseSVN32.dll
0x761b0000 - 0x76367000 C:\Windows\system32\WININET.dll
0x75fc0000 - 0x75fc4000 C:\Windows\system32\api-ms-win-downlevel-user32-l1-1-0.dll
0x75fd0000 - 0x75fd5000 C:\Windows\system32\api-ms-win-downlevel-advapi32-l1-1-0.dll
0x76070000 - 0x76074000 C:\Windows\system32\api-ms-win-downlevel-shlwapi-l1-1-0.dll
0x75ff0000 - 0x75ff4000 C:\Windows\system32\api-ms-win-downlevel-version-l1-1-0.dll
0x75fe0000 - 0x75fe3000 C:\Windows\system32\api-ms-win-downlevel-normaliz-l1-1-0.dll
0x77e20000 - 0x77e23000 C:\Windows\system32\normaliz.DLL
0x77400000 - 0x775f8000 C:\Windows\system32\iertutil.dll
0x6b820000 - 0x6bb85000 C:\Program Files\TortoiseSVN\bin\libsvn_tsvn32.dll
0x6b7f0000 - 0x6b817000 C:\Program Files\TortoiseSVN\bin\libapr_tsvn32.dll
0x6b710000 - 0x6b7e6000 C:\Windows\system32\MSVCR110.dll
0x6b6d0000 - 0x6b708000 C:\Program Files\TortoiseSVN\bin\libaprutil_tsvn32.dll
0x779e0000 - 0x77a25000 C:\Windows\system32\WLDAP32.dll
0x6b6c0000 - 0x6b6cd000 C:\Program Files\TortoiseSVN\bin\intl3_tsvn32.dll
0x6b6a0000 - 0x6b6b3000 C:\Program Files\TortoiseSVN\bin\libsasl32.dll
0x75b00000 - 0x75b08000 C:\Windows\system32\Secur32.dll
0x75c30000 - 0x75c4b000 C:\Windows\system32\SSPICLI.DLL
0x6b610000 - 0x6b695000 C:\Windows\system32\MSVCP110.dll
0x6b5d0000 - 0x6b601000 C:\Windows\system32\EhStorShell.dll
0x748c0000 - 0x749b5000 C:\Windows\system32\PROPSYS.dll
0x6adb0000 - 0x6b1ba000 C:\PROGRA~1\MICROS~1\Office14\GROOVEEX.DLL
0x6d9b0000 - 0x6da53000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCR90.dll
0x6b530000 - 0x6b5be000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCP90.dll
0x6b500000 - 0x6b52b000 C:\Windows\WinSxS\x86_microsoft.vc90.atl_1fc8b3b9a1e18e3b_9.0.30729.4148_none_51ca66a2bbe76806\ATL90.DLL
0x6a990000 - 0x6adaa000 C:\PROGRA~1\COMMON~1\MICROS~1\OFFICE14\Cultures\office.odf
0x6a120000 - 0x6a985000 C:\PROGRA~1\MICROS~1\Office14\1033\GrooveIntlResource.dll
0x6bdf0000 - 0x6bedb000 C:\Windows\system32\dbghelp.dll
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8
java_command: in.gov.mizoram.digitalsign.DTest
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_60
PATH=C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Rao Data\softwares\apache-maven-3.0.3\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\VisualSVN Server\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Aladdin\eToken\PKIClient\x32;C:\Program Files\Java\jdk1.7.0_60\bin;D:\Rao Data\softwares\eclipse-jee-juno-SR2-win32\eclipse;
USERNAME=Interlace
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 5, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7601 Service Pack 1
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht, tsc, tscinvbit
Memory: 4k page, physical 2937356k(1199208k free), swap 5872956k(3961752k free)
vm_info: Java HotSpot(TM) Client VM (24.60-b09) for windows-x86 JRE (1.7.0_60-b19), built on May 7 2014 13:09:52 by "java_re" with unknown MS VC++:1600
time: Tue Jul 29 11:48:02 2014
elapsed time: 10 seconds
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
String pkcs11config;
pkcs11config = "name = ePass1000";
pkcs11config += "\nlibrary = c:\\WINDOWS\\system32\\EP1PK111.DLL";
InputStream confStream = new ByteArrayInputStream(pkcs11config.getBytes());
SunPKCS11 sunpkcs11 = new SunPKCS11(confStream);
Security.addProvider(sunpkcs11);
char [] password={'s','c','s','1','2','3','4','5'};
try {
KeyStore.Builder keystoreBuilder = KeyStore.Builder.newInstance("PKCS11", sunpkcs11,
new KeyStore.CallbackHandlerProtection(new MyCallBack()));
KeyStore ks = keystoreBuilder.getKeyStore();
//ks.load(null, password);
Enumeration<String> e=ks.aliases();
String alias=e.nextElement();
System.out.println(ks.containsAlias(alias));
try{
X509Certificate certificate = (X509Certificate) ks.getCertificate(alias);
System.out.println(certificate.getIssuerDN().getName());
PrivateKey key = (PrivateKey) ks.getKey(alias,null);
Certificate[] chain = ks.getCertificateChain(alias);
PdfReader reader = new PdfReader("test.pdf");
FileOutputStream outputStream=new FileOutputStream("ddd3.pdf");
PdfStamper stamper = PdfStamper.createSignature(reader, outputStream, '\0', null, true);
PdfSignatureAppearance appearance = stamper.getSignatureAppearance();
appearance.setCrypto(key, chain, null,PdfSignatureAppearance.SELF_SIGNED);
appearance.setReason("NA");
appearance.setLocation("AIZAWL");
appearance.setVisibleSignature(new Rectangle(430, 120, 520, 175), 1,"first");
stamper.close();
//System.out.println(alias);
}
catch(Exception e3){
e3.printStackTrace();
}
for (Provider p1 : Security.getProviders()) {
if (p1.getName().contains("SunPKCS11")) {
Security.removeProvider(p1.getName());
}
}
//}
---------- END SOURCE ----------
- duplicates
-
JDK-8058456 SEGV from libj2pkcs11:Java_sun_security_pkcs11_wrapper_PKCS11_C_1SignFinal
-
- Closed
-
- relates to
-
JDK-6449712 Do not call C_Sign() with a NULL buffer
-
- Closed
-