2.3 --list-keys weirdness

Robert J. Hansen rjh at sixdemonbag.org
Mon Dec 6 09:41:51 CET 2021

> Which version exactly are you using?


> Try attaching gdb to see where it hangs.

(gdb) run
Starting program: /usr/local/bin/gpg --list-keys
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 41865]
Program received signal SIGINT, Interrupt.
0x00007ffff7c70e87 in __libc_recvmsg (fd=fd at entry=4,
     msg=msg at entry=0x7fffffffd490, flags=flags at entry=0)
     at ../sysdeps/unix/sysv/linux/recvmsg.c:28
28	../sysdeps/unix/sysv/linux/recvmsg.c: No such file or directory.
(gdb) backtrace
#0  0x00007ffff7c70e87 in __libc_recvmsg (fd=fd at entry=4,
     msg=msg at entry=0x7fffffffd490, flags=flags at entry=0)
     at ../sysdeps/unix/sysv/linux/recvmsg.c:28
#1  0x00007ffff7c96437 in __assuan_recvmsg (ctx=ctx at entry=0x555555681ec0,
     fd=fd at entry=4, msg=msg at entry=0x7fffffffd490, flags=flags at entry=0)
     at system-posix.c:133
#2  0x000055555556eacf in _assuan_npth_recvmsg (ctx=0x555555681ec0, fd=4,
     msg=0x7fffffffd490, flags=0) at gpg.c:1037
#3  0x00007ffff7c94923 in uds_reader (ctx=0x555555681ec0, buf=<optimized 
     buflen=<optimized out>) at assuan-uds.c:113
#4  0x00007ffff7c8f23f in readline (ctx=ctx at entry=0x555555681ec0,
     buf=buf at entry=0x555555682010 "", buflen=buflen at entry=1002,
     r_nread=r_nread at entry=0x7fffffffd56c, r_eof=r_eof at entry=0x55555568200c)
     at assuan-buffer.c:79
#5  0x00007ffff7c8f419 in _assuan_read_line (ctx=ctx at entry=0x555555681ec0)
     at assuan-buffer.c:151
#6  0x00007ffff7c8ea50 in assuan_client_read_response (
     ctx=ctx at entry=0x555555681ec0, line_r=line_r at entry=0x7fffffffd660,
     linelen_r=linelen_r at entry=0x7fffffffd65c) at client.c:87
#7  0x00007ffff7c8edbb in _assuan_read_from_server (
     ctx=ctx at entry=0x555555681ec0, response=response at entry=0x7fffffffd6b0,
     off=off at entry=0x7fffffffd6b4, convey_comments=convey_comments at entry=0)
     at client.c:209
#8  0x00007ffff7c93f07 in _assuan_connect_finalize (
     ctx=ctx at entry=0x555555681ec0, fd=fd at entry=4, flags=flags at entry=1)
     at assuan-socket-connect.c:125
#9  0x00007ffff7c942e8 in assuan_socket_connect 
(ctx=ctx at entry=0x555555681ec0,
     name=<optimized out>,
     name at entry=0x555555686de0 "/run/user/1000/gnupg/S.keyboxd",
     server_pid=server_pid at entry=0, flags=flags at entry=1)
     at assuan-socket-connect.c:343
#10 0x000055555562004b in wait_for_sock (secs=5,
     did_success_msg=<synthetic pointer>, ctx=0x555555681ec0, verbose=0,
     connect_flags=1, sockname=0x555555686de0 
     module_name_id=13) at asshelp.c:358
#11 start_new_service (r_ctx=r_ctx at entry=0x7fffffffd930,
     module_name_id=module_name_id at entry=13,
     errsource=errsource at entry=GPG_ERR_SOURCE_GPG,
     program_name=<optimized out>, opt_lc_ctype=opt_lc_ctype at entry=0x0,
     opt_lc_messages=opt_lc_messages at entry=0x0, session_env=0x0, 
     verbose=0, debug=0, status_cb=0x0, status_cb_arg=0x555555684b70)
     at asshelp.c:548
#12 0x000055555562025c in start_new_keyboxd 
(r_ctx=r_ctx at entry=0x7fffffffd930,
     errsource=errsource at entry=GPG_ERR_SOURCE_GPG,
     keyboxd_program=<optimized out>, autostart=<optimized out>,
     verbose=<optimized out>, debug=<optimized out>, status_cb=0x0,
     status_cb_arg=0x555555684b70) at asshelp.c:635
#13 0x000055555558a0ba in create_new_context (r_ctx=0x5555556850d8,
     ctrl=0x555555684b70) at call-keyboxd.c:143
#14 open_context (r_kbl=0x555555684c70, ctrl=0x555555684b70)
     at call-keyboxd.c:219
#15 keydb_new (ctrl=ctrl at entry=0x555555684b70) at call-keyboxd.c:277
#16 0x00005555555b28fb in list_all (ctrl=ctrl at entry=0x555555684b70,
     secret=secret at entry=0, mark_secret=0) at keylist.c:527
--Type <RET> for more, q to quit, c to continue without paging--c
#17 0x00005555555b2f34 in public_key_list 
(ctrl=ctrl at entry=0x555555684b70, list=0x0, locate_mode=0, no_local=0) at 
#18 0x000055555556acf2 in main (argc=<optimized out>, argv=<optimized 
out>) at gpg.c:4638

More information about the Gnupg-users mailing list