Hello,
The error is definitely with CryptoStore's importPrivateKey. Both on NT and
Solaris. I verified this by commenting out the importPrivateKey line in my
code leaving everything else the same, and things are fine. Solaris is WORSE
because the VM crashes on the first atttempt whereas on NT I can usually get
one import or two to work before a VM crash...
I tried the sample pkcs12 code that I got with JSS2.1 and it has the same
problem. So please refer to the sample code in attached file. I basically do
the same thing in my app.
I'm using JSS2.1 version "27 Oct 2000" (checked both jss21.jar and
libjss21.so), and I have 3 versions of nspr: 2.1, 3 and 4.
I'm running on a Sparc Ultra-5_10 with Solaris 2.8.
Your help would be greatly appreciated.
-- Patrick
Jamie Nicolson wrote:
> Is it reproducible? Do you have some sample code that will produce the
> error?
>
> Patrick wrote:
>
> > Hello,
> >
> > I am using the JSS2.1 a lot in a GUI where I manage my certs and keys. I
> > can import, delete, change password a cert/key just fine. However if I
> > import then delete and import again too many times in one session the VM
> > (java1.3) crashes on me. Typical message looks like:
> >
> > # An EXCEPTION_ACCESS_VIOLATION exception has been detected in native
> > code outside the VM.
> > # Program counter=0x94b00c6
> >
> > I'm running on win2000 and I also get an NT error message about "memory
> > not readable"...
> > I suspect the NSS libs are at fault. Any idea as to why the VM would
> > crash after too many read/writes to the key3.db?