Segfault with gpg 1.2.1
Hello ! This is a bug report I sent to the gnupg people, but I thought
you might be interested, since this happens on powerpc unstable and
can't be reproduced on i386.
I get segfaults when trying to sign/encrypt any file with a given set
of options (the one used by emacs mailcrypt).
gdb says :
Starting program: gpg --recipient "******@laposte.net" --local-user 0x654271E957D752AD --sign --comment 'Processed by Mailcrypt gpg <http://mailcrypt.sourceforge.net/>' --armor --textmode --always-trust --encrypt ~/try.txt
You need a passphrase to unlock the secret key for
user: "Fabrice Medio <firstname.lastname@example.org>"
1024-bit DSA key, ID 57D752AD, created 2001-09-26
Program received signal SIGSEGV, Segmentation fault.
0x0fed74e4 in memset () from /lib/libc.so.6
#0 0x0fed74e4 in memset () from /lib/libc.so.6
#1 0x100be648 in secmem_free (a=0x30016bc8) at secmem.c:409
#2 0x100bdbd0 in m_free (a=0x30016bc8) at memory.c:551
#3 0x100b3d10 in mpi_free_limb_space (a=0x30016bc8) at mpiutil.c:189
#4 0x100b3eec in mpi_free (a=0x101066a8) at mpiutil.c:261
#5 0x10047834 in write_pubkey_enc_from_list (pk_list=0x10108c18, dek=0x300165c8, out=0x10106760)
#6 0x100474fc in encrypt_filter (opaque=0x7ffff268, control=4, a=0x10106760, buf=0x10109090 "",
ret_len=0x7ffff0cc) at encode.c:659
#7 0x100c2898 in iobuf_flush (a=0x10108b98) at iobuf.c:1604
#8 0x100c1ae8 in iobuf_push_filter2 (a=0x10108b98, f=0x1000daec <compress_filter>, ov=0x7ffff1f8,
rel_ov=0) at iobuf.c:1330
#9 0x100c1a50 in iobuf_push_filter (a=0x10108b98, f=0x1000daec <compress_filter>, ov=0x7ffff1f8)
#10 0x1004a050 in sign_file (filenames=0x10102018, detached=0, locusr=0x10101ff0, encryptflag=1,
remusr=0x10102070, outfile=0x0) at sign.c:766
#11 0x10007684 in main (argc=1, argv=0x7ffff584) at g10.c:2070
#12 0x0fe70e24 in __libc_start_main () from /lib/libc.so.6
Bug is #146 on bugs.gnupg.org. Testcase is attached to the PR.