Le 03/11/2014 09:12, Laurent Bigonville a écrit :
I cannot reproduce the issue with pcsc_scan:

Even after pcscd has auto exited you can't reproduce the problem with pcsc_scan?

I've attached a strace dump of 2 different gpg invocation.

gpg is clearly talking to pcscd.
But something goes wrong.

09:09:00 stat("/var/run/pcscd/pcscd.comm", {st_mode=S_IFSOCK|0666, st_size=0, 
...}) = 0
09:09:00 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
09:09:00 connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/pcscd/pcscd.comm"}, 
28) = 0
09:09:00 fcntl(3, F_GETFL)              = 0x2 (flags O_RDWR)
09:09:00 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
09:09:00 select(4, NULL, [3], NULL, NULL) = 1 (out [3])
09:09:00 sendto(3, "\f\0\0\0\21\0\0\0", 8, MSG_NOSIGNAL, NULL, 0) = 8
09:09:00 select(4, NULL, [3], NULL, NULL) = 1 (out [3])
09:09:00 sendto(3, "\4\0\0\0\3\0\0\0\0\0\0\0", 12, MSG_NOSIGNAL, NULL, 0) = 12
09:09:00 select(4, [3], NULL, NULL, NULL) = 1 (in [3])
09:09:00 read(3, "\4\0\0\0\3\0\0\0\0\0\0\0", 12) = 12
09:09:00 ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or 
TCGETS, {B38400 opost isig icanon echo ...}) = 0
09:09:00 select(4, NULL, [3], NULL, NULL) = 1 (out [3])
09:09:00 sendto(3, "\f\0\0\0\1\0\0\0", 8, MSG_NOSIGNAL, NULL, 0) = 8
09:09:00 select(4, NULL, [3], NULL, NULL) = 1 (out [3])
09:09:00 sendto(3, "\2\0\0\0\0\0\0\0\0\0\0\0", 12, MSG_NOSIGNAL, NULL, 0) = 12
09:09:00 select(4, [3], NULL, NULL, NULL) = 1 (in [3])
09:09:00 read(3, "\2\0\0\0=U%\27\0\0\0\0", 12) = 12
09:09:00 select(4, NULL, [3], NULL, NULL) = 1 (out [3])
09:09:00 sendto(3, "\0\0\0\0\22\0\0\0", 8, MSG_NOSIGNAL, NULL, 0) = 8
09:09:00 select(4, [3], NULL, NULL, NULL) = 1 (in [3])
09:09:00 read(3, 
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2944) = 
2944
09:09:00 write(2, "gpg: ", 5gpg: )           = 5
09:09:00 write(2, "pcsc_list_readers failed: unknow"..., 64pcsc_list_readers 
failed: unknown PC/SC error code (0x8010002e)
) = 64

0x8010002e is SCARD_E_NO_READERS_AVAILABLE. No reader was found by pcscd.


Edit the file /lib/systemd/system/pcscd.service and add "--debug" to the line:
ExecStart=/usr/local/sbin/pcscd --foreground --auto-exit

This should generate much more pcscd debug messages.

Thanks

--
 Dr. Ludovic Rousseau


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to