MS Surface Go Sim Card appears to cause scdaemon crash

Derek C Hoffmann derek.hoffmann at gmail.com
Thu Aug 19 18:40:09 CEST 2021


It looks like scdaemon is crashing when attempting to access a sim card
slot/sim card itself on my Surface Go.  When looking at the scdaemon.conf
file there is the option to define a specific reader-port, but I couldn't
find a way to ignore specific readers.  Am I missing something, or is this
not an option currently?  Any other suggestions as to prevent this crash
without disabling the Mobile Broadband card?

*With the device enabled:*

PS C:\Users\derek> gpg --card-status
gpg: selecting card failed: End of file
gpg: OpenPGP card not available: End of file
---
2021-08-19 12:02:19 scdaemon[9544.1] DBG: chdir to '/tmp' failed: No such
file or directory
2021-08-19 12:02:19 scdaemon[9544.1] listening on socket
'C:\\Users\\derek\\AppData\\Roaming\\gnupg\\S.scdaemon'
2021-08-19 12:02:19 scdaemon[9544.2] handler for fd -1 started
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 -> OK GNU Privacy
Guard's Smartcard server ready
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 <- GETINFO
socket_name
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 -> D
C:\Users\derek\AppData\Roaming\gnupg\S.scdaemon
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 -> OK
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 <- OPTION
event-signal=290
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 -> OK
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 <- GETINFO version
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 -> D 2.3.1
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 -> OK
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 <- SERIALNO
2021-08-19 12:02:19 scdaemon[9544.2] detected reader 'Microsoft IFD 0'
*2021-08-19 12:02:19 scdaemon[9544.2] detected reader 'Microsoft UICC ISO
Reader 4fc9c139 0'*
2021-08-19 12:02:19 scdaemon[9544.2] DBG: apdu_open_reader: Microsoft IFD 0
2021-08-19 12:02:19 scdaemon[9544.2] DBG: apdu_open_reader: new
device=Microsoft IFD 0
2021-08-19 12:02:19 scdaemon[9544.2] reader slot 0: not connected
2021-08-19 12:02:19 scdaemon[9544.2] DBG: enter: apdu_connect: slot=0
2021-08-19 12:02:19 scdaemon[9544.2] pcsc_connect failed: removed card
(0x80100069)
2021-08-19 12:02:19 scdaemon[9544.2] reader slot 0: not connected
2021-08-19 12:02:19 scdaemon[9544.2] DBG: leave: apdu_connect => sw=0x10008
2021-08-19 12:02:19 scdaemon[9544.2] DBG: chan_0x000002d4 -> S PINCACHE_PUT
0//
2021-08-19 12:02:19 scdaemon[9544.2] DBG: enter: apdu_close_reader: slot=0
2021-08-19 12:02:19 scdaemon[9544.2] DBG: enter: apdu_disconnect: slot=0
2021-08-19 12:02:19 scdaemon[9544.2] DBG: leave: apdu_disconnect => sw=0x0
2021-08-19 12:02:19 scdaemon[9544.2] DBG: leave: apdu_close_reader => 0x0
(close_reader)


*2021-08-19 12:02:19 scdaemon[9544.2] DBG: apdu_open_reader:
(null)2021-08-19 12:02:19 scdaemon[9544.2] DBG: apdu_open_reader: new
device=(null)*
-------

*With the device disabled in device manager:*

PS C:\Users\derek> gpg --card-status
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device
---
2021-08-19 12:14:20 scdaemon[7468.1] DBG: chdir to '/tmp' failed: No such
file or directory
2021-08-19 12:14:20 scdaemon[7468.1] listening on socket
'C:\\Users\\derek\\AppData\\Roaming\\gnupg\\S.scdaemon'
2021-08-19 12:14:20 scdaemon[7468.2] handler for fd -1 started
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> OK GNU Privacy
Guard's Smartcard server ready
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 <- GETINFO
socket_name
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> D
C:\Users\derek\AppData\Roaming\gnupg\S.scdaemon
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> OK
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 <- OPTION
event-signal=290
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> OK
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 <- GETINFO version
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> D 2.3.1
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> OK
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 <- SERIALNO
2021-08-19 12:14:20 scdaemon[7468.2] detected reader 'Microsoft IFD 0'
2021-08-19 12:14:20 scdaemon[7468.2] DBG: apdu_open_reader: Microsoft IFD 0
2021-08-19 12:14:20 scdaemon[7468.2] DBG: apdu_open_reader: new
device=Microsoft IFD 0
2021-08-19 12:14:20 scdaemon[7468.2] reader slot 0: not connected
2021-08-19 12:14:20 scdaemon[7468.2] DBG: enter: apdu_connect: slot=0
2021-08-19 12:14:20 scdaemon[7468.2] pcsc_connect failed: removed card
(0x80100069)
2021-08-19 12:14:20 scdaemon[7468.2] reader slot 0: not connected
2021-08-19 12:14:20 scdaemon[7468.2] DBG: leave: apdu_connect => sw=0x10008
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> S PINCACHE_PUT
0//
2021-08-19 12:14:20 scdaemon[7468.2] DBG: enter: apdu_close_reader: slot=0
2021-08-19 12:14:20 scdaemon[7468.2] DBG: enter: apdu_disconnect: slot=0
2021-08-19 12:14:20 scdaemon[7468.2] DBG: leave: apdu_disconnect => sw=0x0
2021-08-19 12:14:20 scdaemon[7468.2] DBG: leave: apdu_close_reader => 0x0
(close_reader)
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> ERR 100696144
No such device <SCD>
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 <- RESTART
2021-08-19 12:14:20 scdaemon[7468.2] DBG: chan_0x000002d0 -> OK


*Version info:*
gpg --version
gpg (GnuPG) 2.3.1
libgcrypt 1.9.3

scdaemon --version
scdaemon (GnuPG) 2.3.1
libgcrypt 1.9.3
libksba 1.5.1

--
- Derek C Hoffmann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210819/688b9049/attachment-0001.html>


More information about the Gnupg-users mailing list