Page MenuHome GnuPG

Segfaults while encoding/signing any file
Closed, ResolvedPublic

Description

Release: gnupg 1.2.1

Environment

linux-2.4.20 ppc (debian)

Description

Here is a gdb backtrace :
(gdb) run
Starting program: gpg --recipient "**@laposte.net" --local-user 0x654271E957D752AD --sign --comment 'Proc\
essed 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@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

How To Repeat

  • See options in the gdb session.
  • Key of the recipient attached to this PR

Fix

Unknown

Event Timeline

Please rerun the test with the recent release candidate:
gnupg-1.2.2rc2.tar.gz found at ftp.gnupg.org/gcrypt/alpha/gnupg

No feedback received - assuming it has been fixed.

werner removed a project: Restricted Project.