Segfault with gpg 1.2.1

Fabrice Medio fab at rhapsodyk.net
Fri Apr 25 16:27:02 CEST 2003


Hello ! This is a bug report.

I get segfaults when trying to sign/encrypt any file with a given set
of options (the one used by emacs mailcrypt).

gdb says : 

(gdb) run
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 <fab at rhapsodyk.net>"
1024-bit DSA key, ID 57D752AD, created 2001-09-26

Enter passphrase:
                  
Program received signal SIGSEGV, Segmentation fault.
0x0fed74e4 in memset () from /lib/libc.so.6
(gdb) bt
#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)
    at encode.c:729
#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)
    at iobuf.c:1314
#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
(gdb) 

The segfault actually happens with any file. I keep the testcase file
I used handy ; in case you need it, just drop me a line, since the mlm
may not like attachments. 

Fabrice





More information about the Gnupg-devel mailing list