after OS update I can't use my OpenPGP card anymore

Matthias Apitz guru at unixarea.de
Tue Sep 26 07:04:53 CEST 2023


El día martes, septiembre 26, 2023 a las 09:35:52a. m. +0900, NIIBE Yutaka escribió:

> Matthias Apitz <guru at unixarea.de> wrote:
> > $ gdb /usr/local/libexec/scdaemon
> > ...
> > r --debug-all --verbose --verbose --server
> > ...
> > OK GNU Privacy Guard's Smartcard server ready
> > SERIALNO
> > [New LWP 101967 of process 2622]
> >
> > Thread 2 "pipe-connection" received signal SIGSEGV, Segmentation fault.
> > Address not mapped to object.
> > [Switching to LWP 101959 of process 2622]
> > 0x0000000800434a57 in ?? () from /usr/local/lib/libgpg-error.so.0
> > (gdb) bt
> > #0  0x0000000800434a57 in ?? () from /usr/local/lib/libgpg-error.so.0
> > #1  0x00000008004314ef in ?? () from /usr/local/lib/libgpg-error.so.0
> > #2  0x00000008004304e4 in ?? () from /usr/local/lib/libgpg-error.so.0
> > #3  0x000000080042fdad in ?? () from /usr/local/lib/libgpg-error.so.0
> > #4  0x000000080042d5e3 in ?? () from /usr/local/lib/libgpg-error.so.0
> > #5  0x00000008004343ad in ?? () from /usr/local/lib/libgpg-error.so.0
> > #6  0x0000000800432bef in gpgrt_log_info ()
> >    from /usr/local/lib/libgpg-error.so.0
> > #7  0x00000000002436e8 in ?? ()
> 
> It looks like SEGV when debug output.  Does it work when it's invoked
> without --verbose?

Bingo! I removed --verbose from the cmd line and from the file
scdaemon.conf. A test on shell show now:

/usr/local/libexec/scdaemon --debug-all --verbose --verbose --server
scdaemon[2131]: reading options from '/home/guru/.gnupg-ccid/scdaemon.conf'
scdaemon[2131.a884ac12000]: reading options from '[cmdline]'
scdaemon[2131.a884ac12000]: enabled debug flags: mpi crypto memory cache memstat hashing ipc card cardio reader app
OK GNU Privacy Guard's Smartcard server ready
SERIALNO
S SERIALNO D27600012401020100050000532B0000
OK

And also decryption with the OpenPGP card works fine after providing the
card's PIN:

pass web/test1
bla
foo

One should file a bug PR.

Thanks

	matthias
-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub



More information about the Gnupg-users mailing list