JDK-6526844 : JVM crashes in PKCS11 code when running GlassFish with SecurityManager
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2007-02-20
  • Updated: 2010-05-08
  • Resolved: 2007-02-28
Related Reports
Duplicate :  
Description
I am starting up an Application Server using build 33 of GlassFish V2 with SecurityManager enabled and using JDK 6, Solaris 10 (on x86) and it crashes. 
To reproduce:

1. Download glassfish b33: https://glassfish.dev.java.net/downloads/v2-b33.html
2. Start app server:

    bin/asadmin start-domain domain1

3. Enable Security Manager using admin console: http://localhost:4848 (see security
   options)

4. Change JDK to JDK 6 using admin console (see JVM options)

5. Restart app server:

   bin/asadmin stop-domain domain1
   bin/asadmin start-domain domain1


Portion of stack trace below, have attached error log file and core file.

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfeaa5d7b, pid=10728, tid=2
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# V  [libjvm.so+0xa5d7b]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x08074000):  JavaThread "main" [_thread_in_vm, id=2]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0xc7f86593

Registers:
EAX=0x00000008, EBX=0xfee32000, ECX=0xc7f8658b, EDX=0x0000007d
ESP=0xfe79a208, EBP=0xfe79a218, ESI=0x08074000, EDI=0xfc602e9d
EIP=0xfeaa5d7b, EFLAGS=0x00010296

Top of Stack: (sp=0xfe79a208)
0xfe79a208:   08074000 fee32000 fe79a23c fefd9c3f
0xfe79a218:   fe79a270 feaa5bf4 c7f8658b 08074000
0xfe79a228:   d7d90ff0 d788b54c 08074000 00000000
0xfe79a238:   feffa840 fe79a24c 080700f8 08074258
0xfe79a248:   08074260 0807464c fefd8c67 fee480a0
0xfe79a258:   fee4a0bc 00000000 feffa840 080740e8
0xfe79a268:   fefd9000 feffa220 fe79a2a8 d787a114
0xfe79a278:   080740e8 fc602e9d 00000000 08074000

Instructions: (pc=0xfeaa5d7b)
0xfeaa5d6b:   c3 97 c2 38 00 8b 4d 08 8b 83 58 13 00 00 8b 00
0xfeaa5d7b:   8b 14 01 8b 83 60 13 00 00 8b 00 8b 34 01 8b 83

Stack: [0xfe74c000,0xfe79c000),  sp=0xfe79a208,  free space=312k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xa5d7b]
V  [libjvm.so+0xa5bf4]
C  [libj2pkcs11.so+0xa114]  Java_sun_security_pkcs11_wrapper_PKCS11_connect+0x6cj  sun.security.pkcs11.wrapper.PKCS11.connect(Ljava/lang/String;)V+0
j  sun.security.pkcs11.wrapper.PKCS11.<init>(Ljava/lang/String;)V+6

Comments
WORK AROUND Temporarily rename /usr/lib/libpkcs11.so
31-05-2007