Page MenuHome GnuPG

scdaemon often needs restarting after removing OpenPGP smartcard
Closed, ResolvedPublic

Description

If I run ssh-add -L while the OpenPGP card is unplugged
scdaemon becomes unusable until it is restarted.

0. gpg-agent --enable-ssh-support

  1. card inserted

ssh-add -L
[shows SSH key]

  1. remove card

ssh-add -L
[shows no keys]

  1. insert card

ssh-add -L
[still shows no keys]

At this point all gpg2 commands that run through the agent fail until it
restarted. Use of gpg1 commands bypass the agent and work correctly.

If I repeat the steps but skip running "ssh-add -L" while the card is unplugged,
everything works fine

The last lines of the log say:

2010-06-12 23:43:38 scdaemon[16497] sending signal 12 to client 16477
2010-06-12 23:43:53 scdaemon[16497] PC/SC RESET failed: invalid value
(0x80100011)

The last error ("invalid value") is presumably the line that makes scdaemon
unusable.

Details

Version
2.0.14

Event Timeline

mspang set Version to 2.0.14.
mspang added a subscriber: mspang.

I just fixed a couple of card reader problems in GIT master. I assume that
theses fixes will also solve your problem.

We may port it back to 2.0.

Meanwhile gniibe fixed a lot more bugs and also ported them back to 2.0. Thus I
close this bug.

werner claimed this task.