Page MenuHome GnuPG

Segmentation fault in gpgme when searching keyservers for some keywords
Closed, ResolvedPublic

Description

This has been reported as a kleopatra bug when searching for some generic
keywords on the keyserver.

Using the keys.gnupg.net pool you can trigger the crash with the following keywords:

dyson
Gael
cacert
Lefebvre
McCoy
pål

You can reproduce it with run-keylist from the gpgme tests folder.
./run-keylist --extern dyson

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
gpg_keylist_preprocess (line=<optimized out>, r_line=0x7fffffffd5e8) at
engine-gpg.c:2197
2197 *dst++ = '\\';
(gdb) bt
#0 gpg_keylist_preprocess (line=<optimized out>, r_line=0x7fffffffd5e8) at
engine-gpg.c:2197
#1 0x00007ffff7bb8a91 in read_colon_line (gpg=0x605a10) at engine-gpg.c:1239
#2 colon_line_handler (opaque=<optimized out>, fd=<optimized out>) at
engine-gpg.c:1303
#3 0x00007ffff7ba9714 in _gpgme_run_io_cb (an_fds=0x607628,
checked=checked@entry=0, op_err=op_err@entry=0x7fffffffd6a0)

at wait.c:218

#4 0x00007ffff7ba9f4c in _gpgme_wait_on_condition (ctx=ctx@entry=0x605590,
cond=cond@entry=0x6069a0, op_err_p=op_err_p@entry=0x0)

at wait-private.c:116

#5 0x00007ffff7bb104e in gpgme_op_keylist_next (ctx=0x605590,
r_key=r_key@entry=0x7fffffffd768) at keylist.c:987
#6 0x0000000000401347 in main (argc=<optimized out>, argv=<optimized out>) at
run-keylist.c:156

Event Timeline

aheinecke set External Link to https://bugs.kde.org/show_bug.cgi?id=336392 https://bugs.kde.org/show_bug.cgi?id=321460 https://bugs.kde.org/show_bug.cgi?id=336392.Jun 5 2015, 1:54 PM
aheinecke added projects: KDE, Bug Report, gpgme.
aheinecke added subscribers: aheinecke, werner.

Oops. Long standing bug.

Fix in commit
0d28a696163677d6b34a802b6beddecd805d0fc7

1.5.5 has been released. Closing.

werner removed a project: Restricted Project.