Article View: adobe.reader
Article #10161Adobe Reader 8 crashes after signing document using PKCS#11 module
From: KC_Wong
Date: Thu, 04 Jan 2007 03:42
Date: Thu, 04 Jan 2007 03:42
28 lines
2146 bytes
2146 bytes
A summary of the problem: The token I'm using will automatically log out after a successful signing operation (i.e. C_Sign or C_SignFinal and signature is returned). That causes Adobe Reader 8 to crash. The token is made by a third party so I can't change its behavior. The long story follows. I am developing a PKCS#11 module for using a specific smart card. The module works perfectly if I use it via my commandline testing program, but have problems working with Adobe Reader. I found that the document is signed and saved properly -- I can open the document later and its signature can be verified. However Adobe Reader always crash (0xC00000005) after signing. In my PKCS#11 module I logged how Adobe Reader calls it, and found the C_Sign call is made successfully. After that, there is a series of slots and objects querying just before the crash. I know the token I'm using will logout after a successful signing operation, and I guess it might be the cause. I added code to automatically re-login after signing, and this solves the problem - no more crash. It seems to me that Adobe Reader is caching information about the slots, tokens, keys and certs... and if those information is changed while Adobe Reader does not expect it, Adobe Reader can't handle it and crash.
Technical Details
Message-ID:
<3bc2bd2d.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10273d,9778a81a76c67864,start X-Google-Attributes: gid10273d,public X-Google-Language: ENGLISH,ASCII-7-bit From: KC_Wong@adobeforums.com Newsgroups: adobe.reader Subject: Adobe Reader 8 crashes after signing document using PKCS#11 module Message-ID: <3bc2bd2d.-1@webcrossing.la2eafNXanI> Date: Wed, 3 Jan 2007 19:42:32 -0800 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossing