Page MenuHome GnuPG

Windows Error pop-up window showing up when no card inserted
Closed, ResolvedPublic

Description

Release: 1.4.1rc2

Environment

Windows 2000

Description

Let's consider my private key to be oncard.

  1. No reader connected C:\temp>gpg --clearsign -a test111.txt gpg: NOTE: THIS IS A DEVELOPMENT VERSION! gpg: It is only intended for test purposes and should NOT be gpg: used in a production environment or with production keys! gpg: pcsc_list_readers failed: unknown PC/SC error code (0x8010002e) gpg: card reader not available gpg: signing failed: general error gpg: test111.txt: clearsign failed: general error

    I get a error message that clearly says that no reader is being attached. This case is ok!
  2. Card reader present but no card inserted In that case I get the same above error message which can be misleading ("card reader not available"). The strange behavior I observe is an additional Error pop-up window that shows up to tell me that gpg.exe has generated some errors and will be terminated by Windows.

    See attached screenshots for more details.

How To Repeat

reader connected, no card inserted :
gpg --clearsign -a test.txt

--> produces a misleading error message + additional Windows Error box!

Fix

Unknown

Event Timeline

What reader are you using? I just tested on W2000 using an SCR335 without problems. In fact I get the error message "removed card (0x8100069)"

From: Dany Nativel <dany@natzo.com>
To: bugs@trithemius.gnupg.org, gnupg-hackers@gnupg.org,
gnats-admin@trithemius.gnupg.org, wk@gnupg.org
Cc:
Subject: Re: gnupg/430
Date: Thu, 10 Mar 2005 21:53:20 +0100

It's a PCMCIA SCM SCR-120. I don't have all my Smart Card readers
collection at work so I'll check tonight with some other brands.

BTW, I just re-checked witht the SCR-120 and I do get the "removed card"
message if I type gpg --card-status under the command line... as well as
the annoying Windows Error box poping-up.

gpg: detected reader `SCM Microsystems SCR120 0'
gpg: pcsc_connect failed: removed card (0x80100069)
gpg: card reader not available
gpg: OpenPGP card not available: general error

Dany

On Thu, 10 Mar 2005 11:10:00 +0100, wk@gnupg.org said:

Synopsis: Windows Error pop-up window showing up when no card inserted

  • Comment added by werner on Thu, 10 Mar 2005 11:10:00 +0100 **** What reader are you using? I just tested on W2000 using an SCR335 without problems. In fact I get the error message "removed card (0x8100069)"
  • Dany Nativel dany@natzo.com

From: Dany Nativel <dany@natzo.com>
To: bugs@trithemius.gnupg.org
Cc: gnupg-hackers@gnupg.org, gnats-admin@trithemius.gnupg.org,
wk@gnupg.org
Subject: Re: gnupg/430 -
Date: Thu, 10 Mar 2005 19:26:08 +0100

Werner,

It looks like the popup windows is very specific to the SCM SCR120
PCMCIA Reader (or its driver). I tried the same procedure with other
readers and gnupg just reports "removed card". So I guess you can close
this one and put that on the buggy PC/SC driver from SCM ;)

Dany

wk@gnupg.org wrote:

Synopsis: Windows Error pop-up window showing up when no card inserted

  • Comment added by werner on Thu, 10 Mar 2005 11:10:00 +0100 **** What reader are you using? I just tested on W2000 using an SCR335 without problems. In fact I get the error message "removed card (0x8100069)"