GNU gdb (Gentoo 7.7.1 p1) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnux32". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ../../g10/gpg2...done. (gdb) set args --homedir . --quiet --yes --no-permission-warning --import ./pubdemo.asc (gdb) run Starting program: /var/tmp/portage/app-crypt/gnupg-2.0.25/work/gnupg-2.0.25/g10/gpg2 --homedir . --quiet --yes --no-permission-warning --import ./pubdemo.asc warning: linux_ptrace_test_ret_to_nx: Cannot PTRACE_PEEKUSER: Input/output error warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? Program received signal SIGSEGV, Segmentation fault. 0xf73204e4 in _gcry_mpi_free_limb_space (a=0x568530b0, nlimbs=1972393536) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/mpi/mpiutil.c:142 142 wipememory (a, len); (gdb) bt #0 0xf73204e4 in _gcry_mpi_free_limb_space (a=0x568530b0, nlimbs=1972393536) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/mpi/mpiutil.c:142 #1 0xf73207bb in _gcry_mpi_free (a=0x56853090) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/mpi/mpiutil.c:219 #2 0xf7315428 in _gcry_mpi_sub (w=0x56853050, u=0x56852f70, v=0x56852ff0) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/mpi/mpi-add.c:219 #3 0xf7317f21 in _gcry_mpi_invm (x=0x56852960, a=0x568528e0, n=0x56852920) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/mpi/mpi-inv.c:246 #4 0xf72e163b in verify (r=0x56852840, s=0x568528e0, input=0x56851ea0, pkey=0xffffd310) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/cipher/dsa.c:669 #5 0xf72e2afc in dsa_verify (s_sig=0x56852790, s_data=0x56852750, s_keyparms=0x56852bc0) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/cipher/dsa.c:1102 #6 0xf7259bf0 in _gcry_pk_verify (s_sig=0x56852790, s_hash=0x56852750, s_pkey=0x56852510) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/cipher/pubkey.c:462 #7 0xf723fb8f in gcry_pk_verify (sigval=0x56852790, data=0x56852750, pkey=0x56852510) at /usr/src/debug/dev-libs/libgcrypt-1.6.1-r1/libgcrypt-1.6.1/src/visibility.c:981 #8 0x565a3e37 in pk_verify (algo=17, hash=0x56851e60, data=0x56851438, pkey=0x56851070) at pkglue.c:172 #9 0x5659d875 in do_check (pk=0x56851000, sig=0x56851400, digest=0x56852010, r_expired=0x0, r_revoked=0x0, ret_pk=0x0) at sig-check.c:336 #10 0x5659e6cd in check_key_signature2 (root=0x568511d0, node=0x56851470, check_pk=0x0, ret_pk=0x0, is_selfsig=0x0, r_expiredate=0x0, r_expired=0x0) at sig-check.c:662 #11 0x5659df2f in check_key_signature (root=0x568511d0, node=0x56851470, is_selfsig=0x0) at sig-check.c:516 #12 0x565c9a4a in chk_self_sigs (fname=0xffffdd71 "./pubdemo.asc", keyblock=0x568511d0, pk=0x56851000, keyid=0xffffd660, non_self=0xffffd60c) at import.c:1493 #13 0x565c7cb0 in import_one (fname=0xffffdd71 "./pubdemo.asc", keyblock=0x568511d0, stats=0x5684ccd0, fpr=0x0, fpr_len=0x0, options=8, from_sk=0, filter=0x0, filter_arg=0x0) at import.c:837 #14 0x565c6230 in import (inp=0x5684cd20, fname=0xffffdd71 "./pubdemo.asc", stats=0x5684ccd0, fpr=0x0, fpr_len=0x0, options=8, filter=0x0, filter_arg=0x0) at import.c:268 #15 0x565c5f53 in import_keys_internal (inp=0x0, fnames=0xffffdb60, nnames=1, stats_handle=0x0, fpr=0x0, fpr_len=0x0, options=8, filter=0x0, filter_arg=0x0) at import.c:200 #16 0x565c6088 in import_keys (fnames=0xffffdb60, nnames=1, stats_handle=0x0, options=8) at import.c:232 #17 0x56565d03 in main (argc=1, argv=0xffffdb60) at gpg.c:3716